ee2e046
From 32cabdadde5e272a8f045208fe4af1d47e4c3854 Mon Sep 17 00:00:00 2001
27625e5
From: rpm-build <rpm-build>
3cfc516
Date: Tue, 27 Sep 2022 10:00:11 -0400
ee2e046
Subject: [PATCH] udev: Stick with wayland on hybrid nvidia with vendor driver
27625e5
3cfc516
F36 defaulted to wayland for users with hybrid graphics that
3cfc516
use the vendor nvidia driver.
27625e5
3cfc516
We shouldn't change behavior so close to f37 release, so this
3cfc516
commit brings that behavior back.
27625e5
---
3cfc516
 data/61-gdm.rules.in | 6 ++++--
3cfc516
 1 file changed, 4 insertions(+), 2 deletions(-)
27625e5
27625e5
diff --git a/data/61-gdm.rules.in b/data/61-gdm.rules.in
ee2e046
index a4f841bdf..addfc3119 100644
27625e5
--- a/data/61-gdm.rules.in
27625e5
+++ b/data/61-gdm.rules.in
ee2e046
@@ -82,12 +82,14 @@ ENV{GDM_NUMBER_OF_GRAPHICS_CARDS}=="1", RUN+="/usr/bin/rm -f /run/udev/gdm-machi
ee2e046
 ENV{GDM_NUMBER_OF_GRAPHICS_CARDS}!="1", RUN+="/usr/bin/touch /run/udev/gdm-machine-has-hybrid-graphics"
27625e5
 LABEL="gdm_hybrid_graphics_check_end"
27625e5
 
27625e5
-# If this is a hybrid graphics laptop with vendor nvidia driver, disable wayland
3cfc516
+# If this is a hybrid graphics laptop with vendor nvidia driver default to wayland
3cfc516
+# It gives poor performance for multi-monitor, but Xorg fails some multi-monitor
3cfc516
+# setups too, and this is what we did in F36.
27625e5
 LABEL="gdm_hybrid_nvidia_laptop_check"
27625e5
 TEST!="/run/udev/gdm-machine-is-laptop", GOTO="gdm_hybrid_nvidia_laptop_check_end"
27625e5
 TEST!="/run/udev/gdm-machine-has-hybrid-graphics", GOTO="gdm_hybrid_nvidia_laptop_check_end"
27625e5
 TEST!="/run/udev/gdm-machine-has-vendor-nvidia-driver", GOTO="gdm_hybrid_nvidia_laptop_check_end"
27625e5
-GOTO="gdm_disable_wayland"
3cfc516
+GOTO="gdm_end"
27625e5
 LABEL="gdm_hybrid_nvidia_laptop_check_end"
27625e5
 
27625e5
 # Disable wayland in situation where we're in a guest with a virtual gpu and host passthrough gpu
27625e5
-- 
ee2e046
2.40.0
27625e5