Hi, when my laptop resumes after suspend, the desktop session crashes and a new one is started. So I lose each time all open applications and unsaved data!
The expected behavior would be obviously to restore the suspended session.
I had a look through log files and found that Xorg.0.log ends with the following error lines:
[ 6004.019] (II) NVIDIA(0): Setting mode "NULL"
[ 6004.026] (EE) modeset(G0): failed to set mode: No space left on device
[ 6004.026] (EE)
Fatal server error:
[ 6004.026] (EE) EnterVT failed for gpu screen 0
[ 6004.027] (EE)
[ 6004.027] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 6004.027] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 6004.027] (EE)
[ 6004.065] (EE) Server terminated with error (1). Closing log file
Hi, I followed your advice and did upgrade my laptop’s bios. Everything was looking fine for a while, but then it happened again. The same message was shown in the file Xorg.0.log:
(EE) modeset(G0): failed to set mode: No space left on device
With nvidia enabled, the longer it sleeps the more likely it crashes. If it is suspended for at least a hour or so, then it is almost certain it will crash.
I also tried a couple of times with intel selected, and it didn’t crash even after a few hours sleeping.
That sounds rather like a hardware failure. Should be consistent no matter how long the system was suspended. You could check if modifying /lib/modprobe.d/nvidia-kms.conf changing
modeset=1
to
modeset=0
and running
sudo update-initramfs -u
works around it.