[gdm/nvidia-hybrid-fix: 8/8] data: Fix wayland disabling on hybrid nvidia machines
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/nvidia-hybrid-fix: 8/8] data: Fix wayland disabling on hybrid nvidia machines
- Date: Wed, 8 Sep 2021 14:18:43 +0000 (UTC)
commit c6cb49042258f023e6a99fe7994bcd6d3d8df75c
Author: Ray Strode <rstrode redhat com>
Date: Tue Sep 7 16:11:41 2021 -0400
data: Fix wayland disabling on hybrid nvidia machines
commit 9ecf839913846211ffe10e1243a360c3cb66ff61 was supposed
to make sure vendor nvidia users on hybrid systems kept getting
Xorg by default.
Unfortunately, I misunderstood the scope of environment changes,
and so the rules don't work as designed.
This commit drops the use of environment and instead just checks
for /sys/module/nvidia_drm directly.
data/61-gdm.rules.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/61-gdm.rules.in b/data/61-gdm.rules.in
index 8566bf55e..61d287840 100644
--- a/data/61-gdm.rules.in
+++ b/data/61-gdm.rules.in
@@ -1,10 +1,10 @@
# disable Wayland on Hi1710 chipsets
ATTR{vendor}=="0x19e5", ATTR{device}=="0x1711", RUN+="@libexecdir@/gdm-runtime-config set daemon
WaylandEnable false"
-# disable Wayland on hybrid systems with vendor nvidia driver
# default to Xorg on single gpu vendor nvidia systems
-DRIVER=="nvidia", ENV{GDM_HAS_VENDOR_NVIDIA_DRIVER}="1"
DRIVER=="nvidia", RUN+="@libexecdir@/gdm-runtime-config set daemon PreferredDisplayServer xorg"
-SUBSYSTEM=="drm", KERNEL=="card[1-9]*", ENV{GDM_HAS_NVIDIA_DRIVER}=="1",
RUN+="@libexecdir@/gdm-runtime-config set daemon WaylandEnable false"
+# disable Wayland on hybrid systems with vendor nvidia driver
+SUBSYSTEM=="drm", KERNEL=="card[1-9]*", TEST=="/sys/module/nvidia_drm",
RUN+="@libexecdir@/gdm-runtime-config set daemon WaylandEnable false"
+# disable Wayland on systems with vendor nvidia driver but modesetting disabled
ACTION=="add", SUBSYSTEM=="module", KERNEL=="nvidia_drm", ATTR{parameters/modeset}=="N",
RUN+="@libexecdir@/gdm-runtime-config set daemon WaylandEnable false"
# disable Wayland if modesetting is disabled
IMPORT{cmdline}="nomodeset", RUN+="@libexecdir@/gdm-runtime-config set daemon WaylandEnable false"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]