On GNOME the screen locks when I suspend, and I find that a bit annoying (no one else in the house uses ubuntu anyway haha). What can I do to stop this?

link|improve this question

feedback

6 Answers

up vote 7 down vote accepted
+150

For 11.10

What worked for me on Ubuntu 11.10 is to execute the following in a terminal:

gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'

You can also install dconf-tools and use dconf-editor to set the same setting manually.

link|improve this answer
1  
this also disables the manual lock with ctrl+alt+L. Any ways to disable only the automatic lock? – brillout.com Oct 25 '11 at 0:36
1  
None that I currently know. It's either all or nothing... :-/ – Florian Echtler Oct 26 '11 at 14:35
1  
In order to be able using the manual lock functionality after this fix, you can assign in System Settings -> Keyboard -> Shortcuts, Custom the Ctrl+Alt+L combination to this command: gdmflexiserver -xnest. Note: I've found the command here: ubuntuforums.org/showthread.php?t=1030073, I'm not sure if on my computer gdm coexists with lightdm, but for me it works. – alexef Dec 8 '11 at 13:11
it appears that the command ships with lightdm (apt-file search /usr/lib/lightdm/lightdm/gdmflexiserver), so the suggestion is safe. Jorge, can you please update your answer? – alexef Dec 8 '11 at 13:29
FYI, this also works for 12.04 (as of the beta at least). That is, both the answer and alexef's fix (except I had to use the command /usr/lib/lightdm/lightdm/gdmflexiserver -xnest rather than just gdmflexiserver -xnest since apparently I have gdm installed too). – greggory.hz Mar 28 at 2:02
feedback

For 11.04 and earlier:

  • Edit your acpi-support file by pressing Alt + F2 and pasting

    gksu gedit /etc/default/acpi-support

  • Find the line that says LOCK_SCREEN=true and comment it out to disable screen locking on resume.
    alt text

link|improve this answer
thanks :D I will try this one – Roland Taylor Dec 13 '10 at 19:59
This has no effect on my laptop for some reason. I have to modify gconf-editor entries, as detailed by Jeffrey. – Scaine Jan 14 '11 at 21:40
feedback

For 11.04 and earlier:

Run gconf-editor, then under /apps/gnome-power-manager/lock uncheck the suspend checkbox.

link|improve this answer
Been using this method for years, although I actually just tick the "Use Screensaver property" instead, then I can control it with the screensaver gui in system/preferences/screensaver. – Scaine Jan 14 '11 at 21:39
feedback

For 11.04 and earlier:

Did you verify that the option in the screen-saver about LOCKING the PC is off. Go to System > Preferences > Screensaver

Verify that Lock Screen when Screensaver is active is turned off. Also verify that Activate Screensaver when computer is idle is off too.

Looking around i found that you can also edit several Power Management options via the gconf-editor.

Press ALT+F2 and type gconf-editor

Go to: Apps > Gnome-Power-Manager > Lock

Check the option use screensaver settings This way it checks for the option you put in the screensaver window.

There might be other options there that will help you like gnome_keyring_hibernate and gnome_keyring_suspend (If they use the keyring they might be the ones asking for the password when locked)

This are EXTREME cases please let me know if they work so i can copy them here and make a reference:

First do this: http://ubuntuforums.org/showpost.php?p=9509427&postcount=10

Then do this: http://ubuntuforums.org/showpost.php?p=9756347&postcount=11

link|improve this answer
I already have it off on both. It only does it on suspend. – Roland Taylor Dec 13 '10 at 1:13
Updated post with another option that might help you. – Luis Alvarado Dec 13 '10 at 1:18
I tried the updated info (sadly still nothing :'( – Roland Taylor Dec 13 '10 at 11:38
Update again with 2 posts from ubuntuforum. Please let me know if they work so i can put them here as an easier explanation. – Luis Alvarado Dec 13 '10 at 13:28
I tried another option, I'll update when I can. (that option is to use the screensaver preferences). – Roland Taylor Dec 13 '10 at 14:59
feedback

For 11.04 and earlier:

If you disable the screen lock by setting /desktop/gnome/lockdown/disable_lock_screen, you will not need to unlock the screensaver when you resume from suspend.

gconftool -s /desktop/gnome/lockdown/disable_lock_screen -t bool true

This works for me on Ubuntu 10.04.

link|improve this answer
feedback

I have since found out that it seems to be a bug/feature? of the system indicator. If I use the normal shutdown dialog it works (puzzling). I guess I'll just have to report a bug :(.

Thanks to everyone for trying to help, turns out there is nothing I can do about it until the bug? is fixed.

Update:
This no longer occurs in 12.04.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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