Home Ubuntu How to disable screen locking in Ubuntu 18.04 LTS

How to disable screen locking in Ubuntu 18.04 LTS

by Kiran Kumar
Published: Last Updated on

Those new to Ubuntu 18.04 may be finding it hard to locate the setting to disable screen locking. This applies to people who migrated from Ubuntu Unity desktop environment. It can get confusing because looking for “lock” in the GNOME “Activities” menu and selecting it actually locks the screen immediately unlike in Unity where it used to take you to the setting.

Let’s take a quick look at the GNOME privacy settings where you can enable and disable screen lock feature.

Disabling screen locking in Ubuntu 18.04

You can disable screen locking by two methods including the GUI way and other the command line way from the Terminal. Let’s take a look at both the methods:

Method 1: GUI way

Step 1) Click “Activities” button and look for “Settings”.

Launch Settings

Launch Settings

Step 2) In the Settings App, click on “Privacy” tab.

Settings App in Ubuntu 18.04

Settings App in Ubuntu 18.04

Step 3) You should see “Screen Lock” setting in the right pane. It will be “On” by default settings. Click on it.

Step 4) Toggle the “Automatic Screen Lock” to “OFF” status.

Disable Screen Locking

The screen will no longer lock itself.

Method 2: Command-line Way

The same settings change can also be quickly done by command line from Terminal. To do that follow these steps:

Step 1) Launch “Terminal”.

Step 2) Enter the following command and hit enter.

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

That’s it! The display screen will no longer lock by itself. Although this seems not a great idea for privacy, it makes sense to apply the setting on virtual machines or computers solely used and monitored by you only.

You may also like

8 comments

Phil Cairns June 4, 2018 - 5:39 PM

Hi there, is it possible to lock the screen without the screens turning off? I’m using two 4K screens with a GTX 1080, and 200% scaling. When the screens power down, it makes a mess of the desktop … some apps lose their scaling, and quite frequently, I get crash notifications. Obviously, it would be better to fix the code that crashes, but I can’t do that. I’d be grateful for any advice you have

Reply
Tim December 2, 2018 - 4:56 PM

My Dell Latitude always requires a login to come back after closing the lid. Your solutions do not work. Any suggestions?

Reply
Tim December 2, 2018 - 5:03 PM

I was wrong, you were right. My sincerest apologies. I feel foolish for not reading your explanation carefully enough. I tried to delete my comment, but could not.

Tim

Reply
Tim December 2, 2018 - 5:05 PM

I was wrong, you were right. My apologies. Tried to delete my comment, but could not.

Reply
Ron Spain February 8, 2019 - 1:30 PM

I installed Debian with 3 or 4 different desktops, now screen lock won’t turn off and the touchpad has problems despite much time spent to solve these issues, so now I’m trying the gsettings command in the article for Ubuntu (if I haven’t already). Never install Debian with multiple desktops or you’ll never be able to find all the stupid settings, people. It’s annoying when you keep turning off screen lock in different places, and the screen still locks multiple times per day. What a terrible operating system.

Reply
Lindsay October 29, 2019 - 1:07 PM

It looks as if Ubuntu MATE 18.04 doesn’t have a “Settings” widget with a privacy section, although native menus in Gnome and MATE are such as cluster-f*** that I may be missing it somewhere. The CLI gsettings solutions posted elsewhere may be the only way to go in this case.

Reply
amanda November 6, 2019 - 1:26 AM

the screen lock dont turn off i have tried in some devices

Reply
Prajakta December 7, 2019 - 11:13 PM

When I turn on my pc and after that I try then it don’t work?

Reply

Leave a Reply to Phil Cairns Cancel Reply

fl_logo_v3_footer

ENHANCE YOUR LINUX EXPERIENCE.



FOSS Linux is a leading resource for Linux enthusiasts and professionals alike. With a focus on providing the best Linux tutorials, open-source apps, news, and reviews written by team of expert authors. FOSS Linux is the go-to source for all things Linux.

Whether you’re a beginner or an experienced user, FOSS Linux has something for everyone.

Follow Us

Subscribe

©2016-2023 FOSS LINUX

A PART OF VIBRANT LEAF MEDIA COMPANY.

ALL RIGHTS RESERVED.

“Linux” is the registered trademark by Linus Torvalds in the U.S. and other countries.