Comment 3 for bug 1054299

Revision history for this message
Tormod Volden (tormodvolden) wrote : Re: screensaver doesn't hide screen during unsuspend

I can confirm this on xscreensaver 5.21 on Debian unstable with xfce as well. The problem is that the xscreensaver daemon is told to lock the screen only after the computer has woken up. Using xscreensaver -debug I can see that it receives the THROTTLE ClientMessage before the sleep, but the LOCK ClientMessage after the sleep.

/etc/acpi/sleep_suspend.sh calls /usr/share/acpi-support/screenblank (which runs "xscreensaver-command -throttle" then "xscreensaver-command -lock" in the background) just before running pm-suspend. Since the locking is done in background it opens up for a race with pm-suspend, which is faster nowadays.

Simply removing the backgrounding "&"'s in /usr/share/acpi-support/screenblank solves the problem. The suspend process will now take a bit longer of course, but resuming is faster.