From owner-freebsd-x11@freebsd.org Thu Dec 21 15:46:41 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0CFAE9EA68 for ; Thu, 21 Dec 2017 15:46:41 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x236.google.com (mail-wr0-x236.google.com [IPv6:2a00:1450:400c:c0c::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2DEC76B0A5; Thu, 21 Dec 2017 15:46:41 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x236.google.com with SMTP id p69so16687545wrb.8; Thu, 21 Dec 2017 07:46:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=q9Vq/s2qcasHUg9fZR248mmSHt1IAgZKkgCU1Ta4WIA=; b=tmN20gMoy/EGYuyU3Tk3J9Vr+hvDCPmcBuXrUpauOhV6o6wKfcLQvo3MOpGWRi1yTJ aKRvOw2Lre4toSt5ch6U6UMuxUsGyZL6qqF+dYT0UJUdgVEEbEwVnwFe0ozxhYPytV7y j2vs/vQE/iN1H1e1SQqwXrxuDk7wI2PiIAkON8ySSc0YEGbHIFTfhwOR2c52CkXC0zdd FH52fRAkN7dEsQH1KmF+06IDsvuXz8f3MOAtodDbAmGRmtRP/zYxUdwwnp81QVVacp4p ZSG7KA+GkMuPl1F9VYfEQE4TEig23VD2Zygp6UyW33ITuPQRy4ZkTI3XzxFXM/vp4++r rJog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=q9Vq/s2qcasHUg9fZR248mmSHt1IAgZKkgCU1Ta4WIA=; b=llfNj/SeKit5BTHkQlVBOgMvOSoaZKs700/sekEbW/V5h1DrMpFq73AM84c+0HZYgj vN7PLD3b80VTTUsE2Ia2DiszpfI4G/pfZ7bkO+uE4ovzD9p27L32Z5WOPUYgacaVipfZ PLmKM6R0lul4t+2Xc6Je2Q3heS6J3VthbJIWIuS+S7XkytOC1Bag8fS1hgdcwZdl1Ozv PqFBYEmw3F3gBhEzl5xmFjUYbGEJ+lNe8H3+QgNlfnV4wV/K9SaRL6L5Vexjuz8AOVlW RXv9O+E3E22FgWe3RzMwl7+Ox+tk59aK3yIi18TeodjTwENMBveXVg6gfhkB30T3l408 wDPA== X-Gm-Message-State: AKGB3mJJdwgPAuyagG5rCuuoPdt6MQ26gGfSmv5/DwaJT1IV+JFOssLz 0mRgrhnpFrUFGESaSCThX6B7mA== X-Google-Smtp-Source: ACJfBoumo5k+3tvTBgpOpbKwV41HosGqDfGkVETUeOKRGTWHMDLRvgmGSzax+curv1UApxIT6crqXA== X-Received: by 10.223.160.161 with SMTP id m30mr12928002wrm.91.1513871198724; Thu, 21 Dec 2017 07:46:38 -0800 (PST) Received: from ernst.home (p5B0238CC.dip0.t-ipconnect.de. [91.2.56.204]) by smtp.gmail.com with ESMTPSA id i33sm17796914wri.90.2017.12.21.07.46.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Dec 2017 07:46:37 -0800 (PST) Date: Thu, 21 Dec 2017 16:46:35 +0100 From: Gary Jennejohn To: Tommi Pernila Cc: Tijl Coosemans , freebsd-x11@freebsd.org Subject: Re: Vote: making wayland=on default (also posted to ports@) Message-ID: <20171221164635.7a348ad0@ernst.home> In-Reply-To: References: <20171220132717.0eb5777d@ernst.home> <20171220180106.0224107c@kalimero.tijl.coosemans.org> <0cadf450-ce6b-f9bc-bdbd-99f89c4dec6f@unrelenting.technology> <20171221113800.4b3acf10@kalimero.tijl.coosemans.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2017 15:46:41 -0000 On Thu, 21 Dec 2017 14:03:02 +0200 Tommi Pernila wrote: > On Thu, Dec 21, 2017 at 12:38 PM, Tijl Coosemans wrote: > > > On Thu, 21 Dec 2017 02:55:06 +0300 Greg V > > wrote: > > > On 12/20/2017 20:01, Tijl Coosemans wrote: > > >> On Wed, 20 Dec 2017 12:53:20 +0000 Johannes Lundberg < > > johalun0@gmail.com> wrote: > > >>>> Can you guarantee this? I seem to have mesa-libs stuff installed > > >>>> even though I use the nvidia-driver. May be that pkg just > > >>>> installed mesa-libs as a dependency for some other package. > > >>>> > > >>>> I'm using the AMD Ryzen which has no on-board graphics, so I'm > > >>>> happily using my NVIDIA GPU and have absolutely no desire to > > >>>> change because someone enables wayland by default. > > >>> x11-toolkits/gtk30 will get some added dependencies: > > >>> libwayland-client.so:graphics/wayland \ > > >>> libwayland-egl.so:graphics/mesa-libs \ > > >>> libxkbcommon.so:x11/libxkbcommon > > >>> > > >>> Is this a problem for Nvidia users? > > >> The older nvidia drivers don't have libEGL, but if libwayland-egl.so > > >> isn't actually used at runtime it's probably ok. > > > It's not used when you're on X11, because X11 is not Wayland :) > > > > But is libEGL loaded into memory? > > _______________________________________________ > > > > Hi, > > Nvidia and Wayland is an issue currently. > > TL:DR; > 1. > Pure Wayland application with the binary Nvidia drivers do work, > Currently normal desktop usage is quite limited. > E.g. Browsers do not work correctly, > X-applications do not work with XWayland on Nvidia's drivers > 2. > Nouveau driver isn't currently supported in FreeBSD. > > and here is the looong version > > 1. > X-applications do not work with xWayland. > > Why? > It is because XWayland uses GBM and it does not have support for Nvidia___s > proprietary driver. > All opensource drivers are supporting GBM. > > GBM (Generic Buffer Management) is an API which provides a mechanism > for allocating buffers for graphics rendering tied to Mesa. > > How did we get here? > > Nvidia first wanted to do an easy solution from their point-of-view > and have everyone (meaning all window managers) write in support for the > EGL streams. > https://lists.freedesktop.org/archives/wayland-devel/2017- > January/032722.html > > Most developers were not really excited on this proposal. > KDE developer: > https://blog.martin-graesslin.com/blog/2017/10/ > plasmawayland-and-nvidia-2017-edition/ > > Sway developer: > https://drewdevault.com/2017/10/26/Fuck-you-nvidia.html > > Nvidia then publicly apologize for the EGL stream proposal > and also proposed a better way of solving the problem > https://lists.freedesktop.org/archives/mesa-dev/2017-November/177632.html > > Name for the new project initially was "Device Memory Allocator Project" > Nvidia's newer tentative name is *Generic Device Memory Allocator* > and *liballoc* as the allocator library name. > > The project has some prototype code in Github, but it hasn't seen much > activity. > https://github.com/cubanismo/allocator > I'm hoping something will eventually come out from this not-so-ideal > situation. > > > 2. > Only way to get Nvidia hardware running Wayland is currently with the > Nouveau open source drivers. > Nouveau drivers do not have a working port in FreeBSD, > this was dropped from the ports tree in 2014 with this commit message: > > 2014-01-31 x11-drivers/xf86-video-nouveau: Not supported, missing kernel > support. use the nvidia driver > > > Wayland can fully work on FreeBSD with Nvidia hardware when: > > A/ > Nouveau driver works on FreeBSD. > I have no idea how difficult it would be to report Nouveau back to FreeBSD? > > or > > B/ > Nvidia has their new Generic Device Memory Allocator project in a working > state. > This might take a long time, a year or two? > Well, as long as reason reigns and X11 uncontaminated by Wayland remains in ports or as a pkg, there shouldn't be a problem. If the eventual goal is to eliminate pure X11 and only offer the crap being put into the Linux kernel, then there will be lots of unhappy campers. Not all the world wants to use Intel or AMD graphics. -- Gary Jennejohn