bb090eb
From a0f3d7108f688d48ad8653c380dba575fcd2fc3f Mon Sep 17 00:00:00 2001
bb090eb
From: Ray Strode <rstrode@redhat.com>
bb090eb
Date: Mon, 15 Apr 2019 10:53:25 -0400
bb090eb
Subject: [PATCH] data: disable wayland if modesetting is disabled
bb090eb
bb090eb
wayland requires working modesetting, so don't even
bb090eb
bother trying it if modesetting is disabled.
bb090eb
bb090eb
This is more efficient and side-steps a bug in the fallback
bb090eb
logic if start up is unreasonably slow.
bb090eb
---
bb090eb
 data/61-gdm.rules.in | 2 ++
bb090eb
 1 file changed, 2 insertions(+)
bb090eb
bb090eb
diff --git a/data/61-gdm.rules.in b/data/61-gdm.rules.in
bb090eb
index ad5b87d4c..ebdbfe9c1 100644
bb090eb
--- a/data/61-gdm.rules.in
bb090eb
+++ b/data/61-gdm.rules.in
bb090eb
@@ -1,6 +1,8 @@
bb090eb
 # disable Wayland on Cirrus chipsets
bb090eb
 ATTR{vendor}=="0x1013", ATTR{device}=="0x00b8", ATTR{subsystem_vendor}=="0x1af4", ATTR{subsystem_device}=="0x1100", RUN+="@libexecdir@/gdm-disable-wayland"
bb090eb
 # disable Wayland on Hi1710 chipsets
bb090eb
 ATTR{vendor}=="0x19e5", ATTR{device}=="0x1711", RUN+="@libexecdir@/gdm-disable-wayland"
bb090eb
 # disable Wayland when using the proprietary nvidia driver
bb090eb
 DRIVER=="nvidia", RUN+="@libexecdir@/gdm-disable-wayland"
bb090eb
+# disable Wayland if modesetting is disabled
bb090eb
+IMPORT{cmdline}="nomodeset", RUN+="@libexecdir@/gdm-disable-wayland"
bb090eb
-- 
bb090eb
2.20.1
bb090eb