diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-15 12:43:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-15 12:43:19 +0100 |
commit | f9b4edae85ab8d924dc0c537962502f188e95ea9 (patch) | |
tree | 1304dc6757e63e6117bde0082d29e693c9f3ded0 /x11-drivers/nvidia-drivers/files/system-sleep.elogind | |
parent | 9484dba70d365375550e69d84f180d68b2a8a08d (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/system-sleep.elogind')
-rw-r--r-- | x11-drivers/nvidia-drivers/files/system-sleep.elogind | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/files/system-sleep.elogind b/x11-drivers/nvidia-drivers/files/system-sleep.elogind new file mode 100644 index 00000000..d36e2697 --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/system-sleep.elogind @@ -0,0 +1,7 @@ +#!/bin/sh +case ${1-} in + pre) nvidia-sleep.sh suspend;; + # run in background given resume is flaky if elogind did not finish + post) nvidia-sleep.sh resume &;; + *) exit 1;; +esac |