Categories: Ubuntu

How to disable the screen lock in ubuntu

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.

On the left menu, click on Privacy.

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

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

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

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.

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

Type your password and authenticate.

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

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.

Ubuntu Server Admin

Recent Posts

Advantech AOM-2721 is now Ubuntu Certified

Canonical announces that the Advantech AOM-2721 is officially joining the list of Ubuntu Certified Hardware.…

7 hours ago

Ruby and Rails Performance Roundup: The Backlog Edition

Yet again instead of tweets, a blog post. The backlog got out of hand -…

7 hours ago

How to Deploy OpenProject on Ubuntu VPS

This article provides a guide demonstrating how to deploy OpenProject on Ubuntu VPS. What is…

8 hours ago

Canonical integrates NVIDIA Nemotron 3.5 Lightning with Ubuntu for always-on AI agents

Canonical is pleased to announce that  NVIDIA’s newly introduced NVIDIA Nemotron 3.5 Lightning, an open,…

2 days ago

Xfwl4’s Second Preview Release

I’m pleased to announce the second preview release of xfwl4, Xfce’s Wayland compositor, version 4.21.1.…

2 days ago

How to Install, Secure, and Set Up MySQL on Ubuntu 26.04 LTS

If you have been using an ecommerce store to place online orders or have been…

3 days ago