[gdm/disable-hybrid-nvidia: 11/13] data: Disable wayland if there are multiple virtual gpus
- From: Ray Strode <halfline src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gdm/disable-hybrid-nvidia: 11/13] data: Disable wayland if there are multiple virtual gpus
 
- Date: Fri,  4 Mar 2022 19:13:13 +0000 (UTC)
 
commit 467aa7d9086cf8febd7725459a7bedbd1e3f087f
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 c7328da8a..def0a55c9 100644
--- a/data/61-gdm.rules.in
+++ b/data/61-gdm.rules.in
@@ -95,6 +95,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]