summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/files/nvidia-470.conf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-15 12:43:19 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-15 12:43:19 +0100
commitf9b4edae85ab8d924dc0c537962502f188e95ea9 (patch)
tree1304dc6757e63e6117bde0082d29e693c9f3ded0 /x11-drivers/nvidia-drivers/files/nvidia-470.conf
parent9484dba70d365375550e69d84f180d68b2a8a08d (diff)
x11-drivers/nvidia-drivers : use PreserveVideoMemoryAllocations=1
* https://gitweb.gentoo.org/repo/gentoo.git/commit/x11-drivers/nvidia-drivers?id=a0f953fc4720a191288b7e28c1df4ab50eb9a598 * https://bugs.gentoo.org/693384 * https://bugs.gentoo.org/873160 * https://github.com/gentoo/gentoo/pull/38482
Diffstat (limited to 'x11-drivers/nvidia-drivers/files/nvidia-470.conf')
-rw-r--r--x11-drivers/nvidia-drivers/files/nvidia-470.conf8
1 files changed, 5 insertions, 3 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-470.conf b/x11-drivers/nvidia-drivers/files/nvidia-470.conf
index a20f2a19..1ba489dd 100644
--- a/x11-drivers/nvidia-drivers/files/nvidia-470.conf
+++ b/x11-drivers/nvidia-drivers/files/nvidia-470.conf
@@ -11,10 +11,12 @@ alias nouveau off
# 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
-# systemd sleep services (nvidia-hibernate, nvidia-resume, nvidia-suspend).
+# Suspend options. Note that Allocations=1 requires suspend hooks currently
+# only used when either systemd or elogind is used to suspend. If using
+# neither or have issues, try Allocations=0 (revert if it does not help
+# as =0 is not recommended).
options nvidia \
- NVreg_PreserveVideoMemoryAllocations=0 \
+ NVreg_PreserveVideoMemoryAllocations=1 \
NVreg_TemporaryFilePath=/var/tmp
# !!! Security Warning !!!