Under "Screensaver" make sure you have the "Lock screen after" setting set to 0.
Confirmed works as you describe with command: > xscreensaver-command -activate I've noticed various power management tools interfere with the xscreensaver default xlock. This could be why you're experiencing difficulty. > xscreensaver-command -version XScreenSaver 5.30 ** Changed in: xscreensaver (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xscreensaver in Ubuntu. https://bugs.launchpad.net/bugs/1494454 Title: Lock screen on wakeup from screensaver - feature request Status in xscreensaver package in Ubuntu: Invalid Bug description: It would be really good if there could be a way of setting it so that during the time that the screensaver is on, if there is any interaction which wakesup the machine happens, for it to automatically ask for the password like it can do after a set time if set. So that if the screensaver turns on, and say somebody wiggles the mouse to wake it up, it requests for the password before it allows them to log in. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xscreensaver/+bug/1494454/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp