disable screen locking

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.

READ  How to install OpenVPN to connect to NordVPN in Ubuntu
Previous articleHow to upgrade to Ubuntu 18.04 LTS now
Next articleHow to enable/disable color emoji in Ubuntu 18.04 LTS
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

4
Leave a Reply

avatar
2 Comment threads
2 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
TimPhil Cairns Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Phil Cairns
Guest
Phil Cairns

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

Tim
Guest
Tim

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

Tim
Guest
Tim

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

Tim
Guest
Tim

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