This short tutorial explains how to disable the screen lock in Ubuntu, which is enabled by default.

Below you’ll find instructions to turn off the screen lock from Gnome settings and the command line using the gsettings cli. You’ll also find instructions to disable the screen lock at boot, allowing automatic login.

How to Disable / Turn Off the automatic Lock Screen in Ubuntu

To turn off the automatic screen lock from Gnome,  first, click on the top right corner and press Settings, as shown in the screenshot below.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/disable-screen-lock-ubuntu-01.png" data-lazy- height="689" src="data:image/svg xml,” width=”939″>

On the left menu, click on Privacy.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/disable-screen-lock-ubuntu-02.png" data-lazy- height="679" src="data:image/svg xml,” width=”939″>

Press ScreenLock in the left menu and disable the option Automatic Screen Lock.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/disable-screen-lock-ubuntu-03.png" data-lazy- height="666" src="data:image/svg xml,” width=”939″>

After disabling Automatic Screen Lock, your system won’t be locked again. From those settings, you can also configure the Blank Screen Delay timing. If you enable the Screen Lock, you can define the timing in the option below Automatic Screen Lock Delay. This is useful if, instead of disabling the screen lock, you want to delay it. You also can select Never, and the screen lock will not show up.

That’s all; the following video shows the whole sequence to disable the screen lock in Ubuntu Linux.

Disabling the screen lock in ubuntu using the command line

You can also disable the screen lock from the command line using gsettings, a command-line interface to manage Gnome settings.

From the command line run:

gsettings set org.gnome.desktop.screensaver lock-enabled false

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/disable-screen-lock-ubuntu-04-2.png" data-lazy- height="224" src="data:image/svg xml,” width=”939″>

If you want to enable the screen lock back from the command line. execute the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/disable-screen-lock-ubuntu-05.png" data-lazy- height="143" src="data:image/svg xml,” width=”939″>

gsettings set org.gnome.desktop.screensaver lock-enabled true

Now the screen lock is enabled again, to disable it repeat the operation is replacing true with false.

The gsettings command-line interface used in this tutorial allows you to set or monitor changes related to Gnome settings and applications; you can read additional information on it http://manpages.ubuntu.com/manpages/trusty/man1/gsettings.1.html.

Disabling the screen lock at boot

You can also disable the startup lock screen from Gnome settings.

To do it, right-click on the right corner and press Settings like in the previous steps.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/disable-screen-lock-ubuntu-06.png" data-lazy- height="689" src="data:image/svg xml,” width=”939″>

Scroll down the left menu and select Users, and press the button Unlock to allow changes.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/disable-screen-lock-ubuntu-07.png" data-lazy- height="743" src="data:image/svg xml,” width=”939″>

Type your password and authenticate.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/disable-screen-lock-ubuntu-08.png" data-lazy- height="677" src="data:image/svg xml,” width=”939″>

Enable the option Automatic Login, as shown in the image below.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/disable-screen-lock-ubuntu-09.png" data-lazy- height="750" src="data:image/svg xml,” width=”939″>

Conclusion

The tutorial above explains how to disable the screen lock in 3 clicks or a single command showing any user-level can do this simple 5 seconds process.

The screen lock feature provides security to users who share their physical space with more people, granting privacy when they aren’t present. Yet many users who don’t share their physical space or don’t care about privacy from family members don’t like this feature enabled.

The Ubuntu lock screen also allows users to get reports on what happened when they were away from the computer. It also provides information on date and time, battery and network status. From this screen, users can also turn off, suspend a device or switch accounts. If the lock screen is enabled to unlock your computer, just click with your mouse or press Esc/Enter to show the login screen where you need to fill in your username and password to access the system.

If instead of moving your mouse or pressing a key to show the login screen, you start typing your password,  the login screen will process it. This screen may also show notifications of applications, such as email reception. You can also disable these notifications from the Gnome settings menu.

It is important to clarify that the screen lock provides a light security mechanism, if someone has physical access to your device, even with a screen lock, he will be able to gather the information from the disk or to reset the root password, scenarios you can prevent by encrypting your data, you can find instructions to encrypt hard disks and partitions here.

I hope this tutorial was useful. Keep following Linux Hint for more Linux tips and tutorials.

About the author

<img alt="" data-del="avatar" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/06/echo/linuxinstitute_icono-150×150.png60d31be249e1b.jpg" height="112" src="data:image/svg xml,” width=”112″>

Ivan Vanney

Ivan Vanney has over 2 years as writer for LinuxHint, he is co-founder of the freelance services marketplace GIGopen.com where he works as a sysadmin.