Black Screen After Resume From Suspend or Hibernate
Intro
Sometimes, when waking up from suspend (to memory) or hibernate (to disk), the system shows a black screen with the mouse pointer only, but no clicks or keyboard shortcuts do anytyhing (shortcut to change to a TTY, like kbd:[Ctrl+Shift+F2] work, though), requiring the user to either restart the graphical display or rebooting the system.
With Xfce4 on Xorg and NVidia dirvers 580x this happens about 40% of the times I wake the system up.
Following are somethings worth trying.
xfwm4 blank_mode
Sometimes Xfce’s window manager may fail to redraw the desktop after resume
Check if xfwm4 blank_mode is set, and if not set it to xpresent:
$ xfconf-query -c xfwm4 -p /general/vblank_mode
(prints nothing)
$ xfconf-query -c xfwm4 \
-p /general/vblank_mode \
-t string \
-s "xpresent" \
--create
$ xfconf-query -c xfwm4 -p /general/vblank_mode
xpresent
NVdia parameters
DRM modeset
$ sudo cat /sys/module/nvidia_drm/parameters/modeset
Y