18

I've just installed Ubuntu 18.04 and I want to disable the lock screen. I don't want to see it at all, neither on power-on nor after suspension.

I tried:

Settings -> Privacy -> Screen Lock -> and changed 'Automatic Screen Lock' to 'Off'.

The lock screen still appears after suspension.
Any suggestions?

  • 7
    None of the answers seem to actually completely turn off that slider screen that appears when idle. – tresf Feb 9 at 4:14
  • 1
    @tresf I got rid of the slider with the command from this answer – if it helps you as well please upvote it so it rises! – dessert Oct 8 at 12:18
20

You can disable the lock screen permanently. This not only means when waking from suspend but also due to inactivity.

First use this command to discover current settings:

$ gsettings get org.gnome.desktop.lockdown disable-lock-screen
false

Now set it to true using this command:

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

If you are unhappy with the new setting you can reverse it using:

gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'
  • 1
    Sounds very promising, but doesn't make any difference for me. I've changed the setting to true but the "privacy" screen still comes over the desktop after a period of time. Turning off locking in the system settings means I don't have to re-enter my password, but I still need to swipe the screen up to get back to where I was. Fresh Ubuntu Desktop 18.04.1 install. – Heath Raftery Sep 14 at 2:33
  • @HeathRaftery There is another option to try as listed below: gsettings set org.gnome.desktop.screensaver lock-enabled false – WinEunuuchs2Unix Sep 15 at 15:58
  • 1
    @HeathRaftery On my system, you can hit escape instead of swiping up with the mouse. Still annoying, but perhaps not as awful as the swipe gesture. And +1 to the thought that this answer isn't a solution to the problem, unfortunately. – James Moore Sep 29 at 16:30
  • Well lock-enabled did the trick, but now I can't undo it! – Heath Raftery Oct 2 at 6:34
  • You mean it doesn't "stick" when you use gsettings set org.gnome.desktop.screensaver lock-enabled true? Or you mean the setting is accepted but has no effect? – WinEunuuchs2Unix Oct 2 at 10:52
5

Try this approach:

  1. Launch terminal
  2. Run gsettings set org.gnome.desktop.screensaver lock-enabled false

This is a solution from this FOSSLinux source.

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