10

One thing I like for MacBooks is that they are usable within a second after opening their lid when they were on stand by.

Ubuntu always requires me to enter my password when I resume from suspend, which can be very annoying.
How can I disable this?

Related bugs
It turns out that this really is undesired behavior, and there are several bugs related to this issue.
Bug #553646 on launchpad
Bug #643036 on GNOME bugzilla

Ingo
  • 6,348

6 Answers6

7

Start gconf-editor (press ALT-F2, then type gconf-editor).

Seach down to Apps/gnome-power-manager, then click on "lock".

You have two choices : either untick "suspend", or tick "use_screensaver_settings" (of course, you'd then have to go to screensaver preferences and remove the "lock screen" option.

alt text

And :

alt text

Scaine
  • 11,229
6

This will disable the locking, altogether, so you won't be able to lock the screen even if you wish to, but if you don't care, just enter these commands. The first commands just gets your current setting, which is likely false:

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

regards,

Elijah Lynn
  • 3,928
Dirk B.
  • 283
2

As mentioned in the comments, the solution mentioned above doens't work for Ubuntu 11.10. Please see How do I stop the screen from being locked on suspend? to 'fix' the issue on 11.10.

iGadget
  • 883
1

Here is a solution for Ubuntu / Lubuntu / Xubuntu 18.10.

First let's switch away from light-locker and xscreensaver to the default gnome-screensaver as used in Ubuntu:

sudo apt remove light-locker
sudo apt remove xscreensaver xscreensaver-data
sudo apt install gnome-screensaver

Now for gnome-screensaver, there is a nice setting to disable lock on suspend that is permanently configured this way:

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false

To see the other possible settings for gnome-screensaver:

gsettings list-keys org.gnome.desktop.screensaver

Finally, log out from the X11 session and log in again to make the changes effective. The computer will now be usable within a second after resuming from suspend. Great to save energy in my off-grid home in winter :-)

tanius
  • 6,610
  • 2
  • 42
  • 52
0

I wanted to shut down monitor ("lock") and come back without asking for password.

Im using Ubuntu 18.04. After I tired every related settings:

  • gnome-control-center
    • users
    • power
    • privacy
  • dconf-editor
    • disable-lock-screen
    • ubuntu-lock-on-suspend
    • /org/gnome/desktop/screensaver/

I ended up crating a new hotkey (lets say Super+K) that runs this command:

gnome-screensaver-command -a

which "activates the screensaver" in my case it is blank and turns off the monitor.

So I can decide whether I would like to activate basic or password protected lock.

Note Super+L activates lock by default:

gnome-screensaver-command -l
0

There is more work to do, beyond unticking “use screensaver settings”.

See Advanced preferences for GNOME Power Manager