Bug#1008296: gdm3: No option to choose between gnome 42 wayland or x11, always goes x11
Weiwen Hu
huww98 at outlook.com
Sun Jun 11 10:12:54 BST 2023
Package: gdm3
Version: 43.0-3
Followup-For: Bug #1008296
X-Debbugs-Cc: huww98 at outlook.com
Hi,
As stated above, the wayland is not disabled just because of modeset. It is
disabled even if /sys/module/nvidia_drm/parameters/modeset gives Y.
I did some more test and confirmed that their are 2 more reasons that wayland
is disabled on my laptop:
- missing suspend support;
- hybrid graphics laptop with vendor NVIDIA driver.
All these restriction is introduced at [1]. I do see some application
(blender) running on NVIDIA GPU broken after suspend. But overall the system is
OK.
So, to fix this, we may need to:
- fix suspend. Ubuntu provide file "/usr/bin/nvidia-sleep.sh" and friends in
package "nvidia-kernel-common-510" or similar [2]. I think we can do the
similar.
- Find out why hybrid graphics laptop is not supported. I cannot see the
reason.
[1]: https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/171
[2]: https://packages.ubuntu.com/jammy/amd64/nvidia-kernel-common-510/filelist
Below is the changes I made to 61-gdm.rules in order to get wayland option
back.
--- 61-gdm.rules 2023-06-11 14:13:53.858268221 +0800
+++ /lib/udev/rules.d/61-gdm.rules 2023-06-11 15:21:58.097221687 +0800
@@ -52,6 +52,7 @@
ACTION!="add", GOTO="gdm_nvidia_end"
RUN+="/usr/bin/touch /run/udev/gdm-machine-has-vendor-nvidia-driver"
+GOTO="gdm_nvidia_end"
# Check if suspend/resume services necessary for working wayland support is
available
TEST{0711}!="/usr/bin/nvidia-sleep.sh", GOTO="gdm_disable_wayland"
TEST{0711}!="/usr/lib/systemd/system-sleep/nvidia", GOTO="gdm_disable_wayland"
@@ -89,7 +90,6 @@
TEST!="/run/udev/gdm-machine-is-laptop",
GOTO="gdm_hybrid_nvidia_laptop_check_end"
TEST!="/run/udev/gdm-machine-has-hybrid-graphics",
GOTO="gdm_hybrid_nvidia_laptop_check_end"
TEST!="/run/udev/gdm-machine-has-vendor-nvidia-driver",
GOTO="gdm_hybrid_nvidia_laptop_check_end"
-GOTO="gdm_disable_wayland"
LABEL="gdm_hybrid_nvidia_laptop_check_end"
# Disable wayland in situation where we're in a guest with a virtual gpu and
host passthrough gpu
-- System Information:
Debian Release: 12.0
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-9-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gdm3 depends on:
ii accountsservice 22.08.8-6
ii adduser 3.134
ii dbus [default-dbus-system-bus] 1.14.6-1
ii dbus-bin 1.14.6-1
ii dbus-daemon 1.14.6-1
ii dconf-cli 0.40.0-4
ii dconf-gsettings-backend 0.40.0-4
ii debconf [debconf-2.0] 1.5.82
ii gir1.2-gdm-1.0 43.0-3
ii gnome-session [x-session-manager] 43.0-1
ii gnome-session-bin 43.0-1
ii gnome-session-common 43.0-1
ii gnome-settings-daemon 43.0-4
ii gnome-shell 43.4-1
ii gnome-terminal [x-terminal-emulator] 3.46.8-1
ii gsettings-desktop-schemas 43.0-1
ii libaccountsservice0 22.08.8-6
ii libaudit1 1:3.0.9-1
ii libc6 2.36-9
ii libcanberra-gtk3-0 0.30-10
ii libcanberra0 0.30-10
ii libgdk-pixbuf-2.0-0 2.42.10+dfsg-1+b1
ii libgdm1 43.0-3
ii libglib2.0-0 2.74.6-2
ii libglib2.0-bin 2.74.6-2
ii libgtk-3-0 3.24.37-2
ii libgudev-1.0-0 237-2
ii libkeyutils1 1.6.3-2
ii libpam-modules 1.5.2-6
ii libpam-runtime 1.5.2-6
ii libpam-systemd [logind] 252.6-1
ii libpam0g 1.5.2-6
ii librsvg2-common 2.54.5+dfsg-1
ii libselinux1 3.4-1+b6
ii libsystemd0 252.6-1
ii libx11-6 2:1.8.4-2
ii libxau6 1:1.0.9-1
ii libxcb1 1.15-1
ii libxdmcp6 1:1.1.2-3
ii polkitd 122-3
ii procps 2:4.0.2-3
ii systemd-sysv 252.6-1
ii ucf 3.0043+nmu1
ii x11-common 1:7.7+23
ii x11-xserver-utils 7.7+9+b1
Versions of packages gdm3 recommends:
ii at-spi2-core 2.46.0-5
ii desktop-base 12.0.6
ii gnome-session [x-session-manager] 43.0-1
ii x11-xkb-utils 7.7+7
ii xserver-xephyr 2:21.1.7-3
ii xserver-xorg 1:7.7+23
ii zenity 3.44.0-1
Versions of packages gdm3 suggests:
pn libpam-fprintd <none>
ii libpam-gnome-keyring 42.1-1+b2
pn libpam-pkcs11 <none>
pn libpam-sss <none>
ii orca 43.1-1
-- debconf information:
* shared/default-x-display-manager: gdm3
gdm3/daemon_name: /usr/sbin/gdm3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ?? 2023-06-11 16-32-33.png
Type: image/png
Size: 425855 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20230611/d850fc21/attachment-0001.png>
More information about the pkg-gnome-maintainers
mailing list