[gdm/disable-hybrid-nvidia: 5/5] data: Disable wayland if there are multiple virtual gpus




commit eb194d6fc38b48f9c3497c0efcfbbad6abda5b0b
Author: Ray Strode <rstrode redhat com>
Date:   Fri Mar 4 11:51:57 2022 -0500

    data: Disable wayland if there are multiple virtual gpus
    
    Mutter doesn't seem to work with multiple guest gpus right now,
    so disable that.

 data/61-gdm.rules.in | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/data/61-gdm.rules.in b/data/61-gdm.rules.in
index 5351e0be4..5bc9941c5 100644
--- a/data/61-gdm.rules.in
+++ b/data/61-gdm.rules.in
@@ -100,6 +100,13 @@ TEST!="/run/udev/gdm-machine-has-hardware-gpu", GOTO="gdm_virt_passthrough_check
 GOTO="gdm_disable_wayland"
 LABEL="gdm_virt_passthrough_check_end"
 
+# Disable wayland when there are multiple virtual gpus
+LABEL="gdm_virt_multi_gpu_check"
+TEST!="/run/udev/gdm-machine-has-hybrid-graphics", GOTO="gdm_virt_multi_gpu_check_end"
+TEST!="/run/udev/gdm-machine-has-virtual-gpu", GOTO="gdm_virt_multi_gpu_check_end"
+TEST=="/run/udev/gdm-machine-has-hardware-gpu", GOTO="gdm_virt_multi_gpu_check_end"
+LABEL="gdm_virt_multi_gpu_check_end"
+
 # Disable wayland when nvidia modeset is disabled or when drivers are a lower
 # version than 470,
 # For versions above 470 but lower than 510 prefer Xorg,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]