Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 794136 - gnome-base/gdm-40.0 defaults to wayland with nvidia-drivers causing external monitors not to work with reverse prime
Summary: gnome-base/gdm-40.0 defaults to wayland with nvidia-drivers causing external ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-04 09:53 UTC by nvaert1986
Modified: 2021-06-12 08:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nvaert1986 2021-06-04 09:53:08 UTC
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.
Comment 1 Ionen Wolkens gentoo-dev 2021-06-05 09:02:35 UTC
/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.
Comment 2 Pacho Ramos gentoo-dev 2021-06-08 17:36:43 UTC
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
Comment 3 Larry the Git Cow gentoo-dev 2021-06-12 08:07:08 UTC
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(+)