I wanted you to run "sleep 2; xscreensaver-command -lock" on the command line in a terminal window. The sleep is there only to not trigger anything when you release the Enter key.
If you are using Unity you cannot expect xscreensaver to work. Unity has explicitly been made to only use its own screen lock functionality and to not be compatible with other general screensaver daemons. You must ask the Unity developers or switch to another desktop environment. I can recommend LDXE (Lubuntu). -- 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/1382775 Title: XScreenSaver doesn't lock screen on suspend Status in “xscreensaver” package in Ubuntu: Incomplete Bug description: XScreenSaver does not lock screen on suspend even with gnome-screensaver removed. With the standard "CTRL-ALT-L" shortcut the screen is NOT locked with xscreensaver; this is solved by setting that shortcut to 'xscreensaver-command -lock'. Even with these "workarounds" the screen is locked using Ubuntu's standard lock screen and not with xscreensaver's one. ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: xscreensaver 5.15-3ubuntu1 ProcVersionSignature: Ubuntu 3.13.0-37.64-generic 3.13.11.7 Uname: Linux 3.13.0-37-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.5 Architecture: amd64 CurrentDesktop: Unity Date: Sat Oct 18 12:03:02 2014 ProcEnviron: LANGUAGE=it PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=it_IT.UTF-8 SHELL=/bin/bash SourcePackage: xscreensaver UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xscreensaver/+bug/1382775/+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