Disable lock screen for ubuntu 20.04

I’m using ubuntu 20.04 virtual machine for test purpose, the default idle time is 300 seconds and lock screen is enabled , it’s a little bit annoy to unlock the screen frequently . We can use command gsettings to disable lock screen or we can change the idle time longer

Disable Lock screen for Gnome

j@ubuntu:~$ gsettings get org.gnome.desktop.lockdown disable-lock-screen
false
j@ubuntu:~$ gsettings set org.gnome.desktop.lockdown disable-lock-screen true

we can see by default “disable-lock-screen” is “false” , so we can just change it to true to disable lock screen

Change gnome session idle delay time

j@ubuntu:~$ gsettings get org.gnome.desktop.session idle-delay
uint32 300
j@ubuntu:~$ gsettings set org.gnome.desktop.session idle-delay 3600
j@ubuntu:~$

Above command changed gnome session idle delay time from 5 minutes to 1 hour.

Leave a Reply

Your email address will not be published. Required fields are marked *