After upgrading gdm to gnome-base/gdm-40.0 my session now defaults to wayland every time using the nvidia-drivers and this causes certain functionality not to work (reverse prime is one of the items; being unable to use external monitors). It also gives problems using google-chrome and a variety of other applications. Reproducible: Always Steps to Reproduce: 1. Wait until gdm is loaded after upgrading to gnome-base/gdm-40.0 2. Login to the system (gnome) with nvidia-drivers installed 3. Try using external monitors in a reverse prime situation (with wayland loaded) Actual Results: Having non-working monitors using nvidia-drivers with reverse prime Expected Results: Having my external monitors work in a reverse prime situation If nvidia-drivers are detected on the system, gdm should fall back to a xorg-x11 session by default. This resolves all the mentioned issues.
/lib/udev/61-gdm.rules nvidia override is still there and seems to work for me on a stable system with gdm-40 (defaults to X) # disable Wayland when using the proprietary nvidia driver DRIVER=="nvidia", RUN+="/usr/libexec/gdm-runtime-config set daemon WaylandEnable false" Can only guess multi-gpu/prime is messing with the detection for you, but I unfortunately don't have the right hardware to test this and propose a solution.
That reminds me that I needed to manually set Wayland to false for GDM on one workstation I maintain... will check when I am able to... but, location of the rules file looks wrong to me, I think it should be under the rules.d subdirectory
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85362b50368869a96875161b162316db4506c1ca commit 85362b50368869a96875161b162316db4506c1ca Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2021-06-12 08:07:03 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2021-06-12 08:07:03 +0000 gnome-base/gdm: Fix udev rules.d installation path Closes: https://bugs.gentoo.org/794136 Thanks-to: nvaert1986 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Pacho Ramos <pacho@gentoo.org> gnome-base/gdm/gdm-40.0-r1.ebuild | 215 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+)