Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Once I disabled the screen lock using a command that I can't remember.

Now I want to re-enable the screen lock (via Ctrl+Alt+L) but I don't know how.

If I look at System SettingsBrightness and Lock the Lock switcher is dimmed, how to enable it?

share|improve this question
Which one was it @coanor ?? – Rinzwind Jan 28 '13 at 9:59
@Rinzwind: tag=12.10 – coanor Jan 28 '13 at 16:38
up vote 7 down vote accepted
  • Command line you should be able to control this option with...

    gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'
  • This will lock the screen from command line

    gnome-screensaver-command -l

    If it says command not found you found your answer: you probably removed gnome-screensaver so the option became invalid. (sudo apt-get install gnome-screensaver to re-install).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.