summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/61-gdm.rules.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/61-gdm.rules.in b/data/61-gdm.rules.in
index 5351e0be..5bc9941c 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,