Black Screen after waking up from suspend state (NVIDIA GPU ONLY)
possibly useful info:
--> I use startx to run my desktop.
Installing "nvidia-utils" a script is placed at "/lib/elogind/system-sleep/nvidia" with the content
#!/bin/sh
case "$1" in
post)
/usr/bin/nvidia-sleep.sh "resume"
;;
esac
This script does not resume/wake-up the system properly. after wake-up i get a black screen, i cannot change to any of the tty's. the only way i can proceed is by killing Xorg by ssh-ing into the system from my laptop and running "pkill Xorg" which throws me back to tty1 on my main display/monitor.
After some trial and error i was able to modify the above script and now everytime i wake-up my system i get the intended display output.
This is the modified script
#!/bin/sh
case "$1" in
pre)
/usr/bin/nvidia-sleep.sh "suspend"
sleep 2
;;
post)
(sleep 2; /usr/bin/nvidia-sleep.sh "resume";)&
;;
esac
my takeaways:
1. the gpu needs to be put into the suspend state before the system itself suspends.
2. after elogind has finished it's wake-up executions the gpu needs to be put in to the resume state. ( hence the sleep 2 and '&', so that it does not block elogind's execution)
my issue is everytime the package "nvidia-utils" is upgraded the script gets overwritten and i have to make the changes again.
So i would like to know how i can bring this to the package maintainers attention. Unless there is something else that can ( or was supposed to ) be done.
Thank You
Abh15h3k