commit:     5fd3fa3e9bf3ea053703ad48c2a7a0a3fb47dc04
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  7 11:49:01 2026 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Mar  7 11:50:43 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fd3fa3e

x11-drivers/nvidia-drivers: drop redundant nvidia-595.conf option

The default for Preserve is a "automatic" mode which checks if Notifiers
are usable and, in the event they are not, letting it get disabled is
safer given we no longer enable the systemd/elogind services/script.

I've heard the Temporary file path is also not needed, but looking at
sources I'm not convinced that it is always unused and we do not want
to use the default /tmp given it is often tmpfs and too small.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-drivers/nvidia-drivers/files/nvidia-595.conf | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/x11-drivers/nvidia-drivers/files/nvidia-595.conf 
b/x11-drivers/nvidia-drivers/files/nvidia-595.conf
index 163c37589a1f..e166611781d9 100644
--- a/x11-drivers/nvidia-drivers/files/nvidia-595.conf
+++ b/x11-drivers/nvidia-drivers/files/nvidia-595.conf
@@ -13,11 +13,10 @@ blacklist nova_core
 # need to troubleshoot issues, and re-enable if unrelated.
 #options nvidia-drm fbdev=0
 
-# Suspend options. Note that Allocations=1 either requires Notifiers=1
-# or manually using /proc/driver/nvidia/suspend (formerly done by systemd
-# services which are no longer provided).
+# Suspend options. Notifiers=1 implies NVreg_PreserveVideoMemoryAllocations=1
+# which is needed to avoid issues when resuming from suspend esp. on wayland
+# (former systemd suspend services are not needed with kernel notifiers).
 options nvidia \
-       NVreg_PreserveVideoMemoryAllocations=1 \
        NVreg_UseKernelSuspendNotifiers=1 \
        NVreg_TemporaryFilePath=/var/tmp
 

Reply via email to