diff options
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 |