Enable Wayland by default with NVIDIA version 510 and above
Resolves: #2043056
This commit is contained in:
parent
68396f167c
commit
a843ea6e35
41
0001-gdm.rules-Prefer-Wayland-with-NVIDIA-510.patch
Normal file
41
0001-gdm.rules-Prefer-Wayland-with-NVIDIA-510.patch
Normal file
@ -0,0 +1,41 @@
|
||||
From 69260becaa948988ab515595f137ac032b54d3ae Mon Sep 17 00:00:00 2001
|
||||
From: Olivier Fourdan <ofourdan@redhat.com>
|
||||
Date: Thu, 20 Jan 2022 15:36:36 +0100
|
||||
Subject: [PATCH] gdm.rules: Prefer Wayland with NVIDIA >= 510
|
||||
|
||||
NVIDIA driver version 510 and above have support for GBM, use Wayland by
|
||||
default with NVIDIA proprietary driver version 510 and above.
|
||||
|
||||
For versions between 470 and 510, prefer Xorg as before.
|
||||
---
|
||||
data/61-gdm.rules.in | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/data/61-gdm.rules.in b/data/61-gdm.rules.in
|
||||
index bbc6a00e..e9c72697 100644
|
||||
--- a/data/61-gdm.rules.in
|
||||
+++ b/data/61-gdm.rules.in
|
||||
@@ -10,7 +10,9 @@ IMPORT{cmdline}="nomodeset", GOTO="gdm_disable_wayland"
|
||||
LABEL="gdm_nomodeset_end"
|
||||
|
||||
# Disable wayland when nvidia modeset is disabled or when drivers are a lower
|
||||
-# version than 470, in any case always prefer Xorg
|
||||
+# version than 470,
|
||||
+# For versions above 470 but lower than 510 prefer Xorg,
|
||||
+# Above 510, prefer Wayland.
|
||||
KERNEL!="nvidia_drm", GOTO="gdm_nvidia_drm_end"
|
||||
SUBSYSTEM!="module", GOTO="gdm_nvidia_drm_end"
|
||||
ACTION!="add", GOTO="gdm_nvidia_drm_end"
|
||||
@@ -18,6 +20,9 @@ ACTION!="add", GOTO="gdm_nvidia_drm_end"
|
||||
ATTR{parameters/modeset}!="Y", GOTO="gdm_disable_wayland"
|
||||
# disable wayland for nvidia drivers versions lower than 470
|
||||
ATTR{version}=="4[0-6][0-9].*|[0-3][0-9][0-9].*|[0-9][0-9].*|[0-9].*", GOTO="gdm_disable_wayland"
|
||||
+# For nvidia drivers versions Above 510, keep Wayland by default
|
||||
+ATTR{version}=="[5-9][1-9][0-9].*", GOTO="gdm_end"
|
||||
+# For nvidia drivers versions 470-495, prefer Xorg by default
|
||||
GOTO="gdm_prefer_xorg"
|
||||
LABEL="gdm_nvidia_drm_end"
|
||||
|
||||
--
|
||||
2.34.1
|
||||
|
8
gdm.spec
8
gdm.spec
@ -24,6 +24,10 @@ Source5: default.pa-for-gdm
|
||||
|
||||
Source6: gdm.sysusers
|
||||
|
||||
# Enable Wayland by default with NVIDIA version 510 and above
|
||||
# https://fedoraproject.org/wiki/Changes/WaylandByDefaultOnNVIDIA
|
||||
Patch1: 0001-gdm.rules-Prefer-Wayland-with-NVIDIA-510.patch
|
||||
|
||||
# Downstream patches
|
||||
Patch80001: 0001-Honor-initial-setup-being-disabled-by-distro-install.patch
|
||||
Patch90001: 0001-data-add-system-dconf-databases-to-gdm-profile.patch
|
||||
@ -299,6 +303,10 @@ fi
|
||||
%{_libdir}/pkgconfig/gdm-pam-extensions.pc
|
||||
|
||||
%changelog
|
||||
* Thu Jan 20 2022 Olivier Fourdan <ofourdan@redhat.com> - 1:41.3-3
|
||||
- Enable Wayland by default with NVIDIA version 510 and above
|
||||
Resolves: #2043056
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:41.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user