58

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
  • 583
  • 1
  • 4
  • 5

4 Answers4

71

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.

  • Thanks for your response. I followed your directions. The result was true. I put in the command you provided and it responded command not found

    Did I do something wrong?

    – Rookie Apr 29 '18 at 20:19
  • @Rookie Don't put in the $ that represents what your display is asking you to enter. I modified the answer to reduce confusion. If this works for you don't forget to accept the answer so others know it works. As a new user you may not be away you can click the check mark beside the answer. – WinEunuuchs2Unix Apr 29 '18 at 20:20
  • thank you this works.when you press windows key (super) and l it will lock the system so you can lock it after this. – Dummyxl Jun 30 '18 at 21:17
  • 3
    Thank you so much been trying to figure this for months :) – Jinxzy Jul 03 '18 at 22:37
  • 1
    hmm. This didn't work for me on ubuntu 18.10. The commands described above didn't seem to have any problem. The first returned a true, I changed it to false, ran the first again and it returned false. I still have to type in my password when I wake the computer up from a blanked screen. – Selwyn Polit Feb 06 '19 at 03:22
  • @WinEunuuchs2Unix same for ubuntu 19.04. does not change. – tatsu Apr 19 '19 at 16:23
  • 2
    Works for 18.04. I'm surprised it didn't require sudo. – isapir Jun 23 '19 at 00:38
  • 1
    works for 18.04. Thanks a lot! – Yossarian42 Oct 01 '19 at 21:20
  • mine is false but I still have to type password after suspend? – Lost Crotchet Apr 22 '20 at 00:07
19

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

12

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,303
  • 1
  • 39
  • 49
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,036