commit:     153367194a0cbacdcb70c4c25a8bc351e1c3d29e
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 21 18:42:12 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Jul 21 19:42:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15336719

x11-drivers/nvidia-drivers: extend USE=wayland warnings a bit

Can't test this myself, but adding the warning for
Reverse PRIME to be on the safe side, plus a note
about gdm.

Closes: https://bugs.gentoo.org/803209
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-drivers/nvidia-drivers/files/nvidia-450.conf           | 2 +-
 x11-drivers/nvidia-drivers/files/nvidia-470.conf           | 2 +-
 x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild | 7 ++++++-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/x11-drivers/nvidia-drivers/files/nvidia-450.conf 
b/x11-drivers/nvidia-drivers/files/nvidia-450.conf
index fe162045a13..d9b1e7d7010 100644
--- a/x11-drivers/nvidia-drivers/files/nvidia-450.conf
+++ b/x11-drivers/nvidia-drivers/files/nvidia-450.conf
@@ -6,7 +6,7 @@
 blacklist nouveau
 
 # Kernel Mode Setting (needed for PRIME offloading, and EGLStream/Wayland)
-# This may need to be disabled if using SLI (Scalable Link Interface).
+# Enabling may possibly cause issues with SLI and Reverse PRIME.
 #options nvidia-drm modeset=1
 
 # Suspend options.

diff --git a/x11-drivers/nvidia-drivers/files/nvidia-470.conf 
b/x11-drivers/nvidia-drivers/files/nvidia-470.conf
index 2c1ffd715f0..51127be44e7 100644
--- a/x11-drivers/nvidia-drivers/files/nvidia-470.conf
+++ b/x11-drivers/nvidia-drivers/files/nvidia-470.conf
@@ -6,7 +6,7 @@
 blacklist nouveau
 
 # Kernel Mode Setting (needed for PRIME offloading, and EGLStream/Wayland)
-# This may need to be disabled if using SLI (Scalable Link Interface).
+# Enabling may possibly cause issues with SLI and Reverse PRIME.
 #options nvidia-drm modeset=1
 
 # Suspend options. Allocations=0 recommended over =1 unless enable nvidia's

diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild 
b/x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild
index a972835bc8a..78c29cdf3b6 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild
@@ -449,7 +449,12 @@ pkg_postinst() {
                elog "in compositors that support it) and PRIME offloading."
                elog
                elog "If you experience issues, please comment out the option 
from nvidia.conf."
-               elog "It is notably known to cause problems with SLI (Scalable 
Link Interface)."
+               elog "Of note, may possibly cause issues with SLI and Reverse 
PRIME."
+               if has_version "gnome-base/gdm[wayland]"; then
+                       elog
+                       elog "This also cause gnome-base/gdm to use a wayland 
session by default,"
+                       elog "select 'GNOME on Xorg' if you wish to continue 
using it."
+               fi
        fi
 
        # Try to show this message only to users that may really need it

Reply via email to