Disable Lock Screen After Suspend in Ubuntu 11.10
When waking from suspension or hibernation, Ubuntu prompts the current user to unlock the screen by entering their password. You might want to disable this prompt if you want your laptop to be ready to use faster, and don’t need the extra security.
In previous versions of Ubuntu, the lock screen after waking could be disabled in the screen saver settings. In Ubuntu 11.10, the new version of GNOME has changed how this works. GNOME no longer provides any configuration option for this behavior [bug report]. The best workaround seems to be to disable the lock screen entirely, which will not only disable the lock screen after suspend, but also disable the lock screen entirely.
Open a terminal and run this command to disable the lock screen:
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
Running the command again with true
changed to false
will reverse the
change:
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'
Hopefully either Ubuntu or GNOME will bring back an option for this in a future version.
Archived Comments
Tom
That setting only affects the screen lock after a period of inactivity.
Upfront
Thanks Andreas, your answer is exactly what I was looking for. I have my screen to turn off after 30 minutes of inactivity. Now I won’t have to type the password every time I leave my computer for more than 30 minutes.
Rayman
“lock” option in Screen settings didn’t seemed to work for me but Tom’s hint did the trick. It actually disabled also the “lock” button in “off” position.
Zoltan
Works like charm, thanks!
Toby
It still doesn’t work for me.
First I tried “gconf-edit” (was not installed by default, strangely) and changed
a parameter there (should have been “app -> gnome-powermanagement” or
something, but that key didn’t even exist). The key I changed there was “desktop
-> gnome -> lockdown -> disable_lock_sceren”.
Then I tried your line (with and without sudo) which - if I see this correctly -
should do the same trick.
The box is still checked in the GUI version of those settings. But whenever I
wake my netbook from suspend, it asks for the password…
Anonymous
thankyou, worked perfectly!!!
Chris
Finally, after trying 10 other suggestions, this one works. Thank you.
Grigori
Thanks, it worked.
Mike Kolganov
Thanks a lot!
Ern
Works for me, thanks!!!
nic
It doesn’t work for me. It still prompts for pw.
creptil
System Settings—->Screen—>Screen Lock (you can change the option to ‘When screen turns off’ and select ‘never’ under ‘turn off screen after’)
Cheers!
Andreas
There is an option called “lock” in the Screen settings to disable this.