4

I am on 13.04 and waking from suspend takes me straight to desktop without a password prompt even though it is set to ask for a password in the brightness and lock settings.

Also I recently tried to lock my computer,going to the power menu in the top right corner and hitting lock,it does not do anything,I am still on the desktop..(just tried crtl alt l to lock,it does work) but not the way i did it though,but that is not important to me ,I need the password prompt after suspend..

Password prompts works only when booted from a shutdown...

mark
  • 43

3 Answers3

5

On ubuntu 13.10, macbookair 5.2, gnome-shell 3.8 I've had the same issue.

These have been the system settings:

  • gnome-control-center > brightness & lock > lock on and require password when waking from suspend enabled
  • dconf-editor > org/gnome/desktop/lockdown/disable-lock-screen disabled
  • dconf-editor > org/gnome/desktop/screensaver/lock-enabled enabled
  • dconf-editor > org/gnome/desktop/screensaver/ubuntu-lock-on-suspend enabled

This had no effect/didn't give any clues:

This made my day:

  • switching all the above mentioned keys in dconf-editor twice

So why? dconf bug? Or a combination of libnss-myhostname/gnome-screensaver/dconf? ... Didn't (want to) reproduce the problem and solution.


Edit:

After a reboot, the non-locking behavior showed up again. I found out that after locking the screen either by keyboard shortcut (set via gnome-control-center) or by console (gnome-screensaver-command -l) the locking was restored. So adding gnome-screensaver & to startup applications solved the problem. Check ps -A | grep gnome-screen if gnome-screensaver is running.

setempler
  • 510
4

I had the same problem with Ubuntu 13.10 and Gnome 3.8. Found the solution in this post.

Gnome 3.8 no longer uses gnome-screensaver, but relies on gdm for screensaver functionalities, so you should install and use that instead of lightdm:

sudo apt-get install gdm

and select GDM when prompted. If GDM is already installed:

sudo dpkg-reconfigure gdm
rotolof
  • 41
3

Install gnome-screensaver

sudo apt-get install gnome-screensaver

sakirk
  • 146