diff options
author | Ray Strode <rstrode@redhat.com> | 2022-03-04 11:51:57 -0500 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2022-03-23 14:21:09 +0000 |
commit | 95a384a6464f4aca8cdb2a8cc03adc2d1e050e94 (patch) | |
tree | c8657b73f213f446e2e6712ea365c956e2d8bd73 /data/61-gdm.rules.in | |
parent | 2e89c7ed7ad0836419923a3f6a5499bd46780470 (diff) | |
download | gdm-95a384a6464f4aca8cdb2a8cc03adc2d1e050e94.tar.gz |
data: Disable wayland if there are multiple virtual gpus
Mutter doesn't seem to work with multiple guest gpus right now,
so disable that.
Diffstat (limited to 'data/61-gdm.rules.in')
-rw-r--r-- | data/61-gdm.rules.in | 7 |
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, |