64

How can I disable password request after suspend in Ubuntu 18.04? I have already turned off the screen lock but that didn't fix it.

I am new Ubuntu user. There seems to be lots of information on how to fix this in older versions.

Rookie
  • 643

4 Answers4

76

Type the following in the terminal after the $ prompt:

gsettings get org.gnome.desktop.screensaver ubuntu-lock-on-suspend

If the result displayed is true then set it to false using:

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

NOTE: The above question and this answer is for Ubuntu 18.04. Works on Ubuntu 24 LTS as well. Tested on April the 2nd 2025.

21

Disable screen lock after suspend by installing dconf-editor

sudo apt install dconf-editor

then navigate to

org/gnome/desktop/screensaver and turn off ubuntu-lock-on-suspend.

enter image description here

13

In Ubuntu 19.04, there is finally a method to configure this without executing commands:

  1. Open the "Settings" program, or start it with gnome-control-center.

  2. Navigate to "Privacy" and click on "Screen locking".

  3. Disable "Lock the screen in standby".

Internally, it has just the same effect as the command mentioned in another answer here:

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false
tanius
  • 6,610
  • 2
  • 42
  • 52
7

You can disable the password from suspend in 18.04 by going into Settings -> Privacy -> Screen Lock -> [Click he Slider from On to Off]

L. D. James
  • 25,444