File gdm-disable-wayland-for-proprietary-nvidia-machines.patch of Package gdm.11221
From d927fac27e1e40f1519860b39d2ae7d772e558ba Mon Sep 17 00:00:00 2001
From: Chingkai <qkzhu@suse.com>
Date: Fri, 21 Dec 2018 16:02:07 +0800
Subject: [PATCH] data: disable wayland for proprietary nvidia machines
At the moment GLX applications don't work well when the
proprietary nvidia driver is used with a wayland session.
For now, disable wayland on that hardware, and users who
want to opt in can just edit the udev rule.
---
data/61-gdm.rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/data/61-gdm.rules b/data/61-gdm.rules
index 12b0a1d..e6cc48c 100644
--- a/data/61-gdm.rules
+++ b/data/61-gdm.rules
@@ -15,3 +15,6 @@ ATTR{vendor}=="0x102b", ATTR{device}=="0x0538", RUN+="/bin/sh -c '/bin/mkdir /ru
# ASPEED Technology, Inc.
ATTR{vendor}=="0x1a03", ATTR{device}=="0x2000", RUN+="/bin/sh -c '/bin/mkdir /run/gdm ; /usr/bin/printf \"[daemon]\nWaylandEnable=false\" >> /run/gdm/custom.conf'"
+
+# disable Wayland when using the proprietary nvidia driver
+DRIVER=="nvidia", RUN+="/bin/sh -c '/bin/mkdir /run/gdm ; /usr/bin/printf \"[daemon]\nWaylandEnable=false\" >> /run/gdm/custom.conf'"
--
2.16.4