Ubuntu – Xubuntu doesn’t lock screen anymore

lock-screenxubuntu

It was working and one day it decided not to work anymore. I can click on the lock screen button or use Ctrl+Alt+Del but no reaction. How to fix that?

I am using Xubuntu 14.04

Best Answer

Lock is a function of the screensaver. It will stop working if your screensaver is not running - for example, if it gets removed your start-up applications.

Go to: Settings > Session and Start-Up > Application Autostart

And check: [x] screensaver.

Otherwise, it may not be likely your screensaver would stop working unless it has actually been removed. It is operated by the script called xflock4, which you will find in the directory /usr/bin/. It checks for three different possible screensavers and will run whichever one happens to be there: xscreensaver, light-locker or gnome-screensaver. To rule out the possibility that your problem is that you somehow lost your screensaver, simply attempt to install one (e.g. with the command 'sudo apt-get install xscreensaver'). If the program is already installed, it will tell you so. It seems the xfce4 panel button to 'lock screen' runs xflock4. It should also be set to operate by keyboard shortcut (CTRL-shift-L), which you can see by going: Settings > Keyboard > Application Shortcuts.