The automatic screen lock is a feature provided by all popular desktop operating systems. A standard period of inactivity is set in your system settings, after which your screen is automatically locked and you have to reactivate it either by clicking on a point or by entering your login password. This feature is best for scenarios where you need to be away from your computer for some time and have some important data stored on your system. In the meantime, while you were away from your system, any intruder can break into the system and steal your critical data. This is why an automatic screen lock is very helpful in keeping your data safe.
The automatic screen lock is enabled by default on most operating systems. On the other hand, if you are physically close to your computer and doing other tasks at the same time, this automatic screen lock can prove annoying as you have to re-enter your password after a few minutes of inactivity. In this situation, you may want to consider turning off your system’s lock screen feature for some time and then turning it back on when you are done with your work. Today we are going to show you how to disable / enable the automatic screen lock using the Linux Mint 20 CLI.
Disable lock screen on Linux Mint and Ubuntu
You can easily disable the automatic screen lock from the Linux Mint 20 CLI by running the following command in it:
$ gsettings set org.gnome.desktop.screensaver lock-enabled false
This command will immediately disable the Linux Mint 20’s automatic screen lock and will not produce any output on the terminal as shown in the image below:
Enabling the lock screen on Linux Mint and Ubuntu
You can easily enable the automatic screen lock through the Linux Mint 20 CLI by running the following command in it:
$ gsettings set org.gnome.desktop.screensaver lock-enabled true
This command immediately enables the Linux Mint 20’s automatic screen lock and does not produce any output on the terminal as shown in the image below:
In this article, we have introduced you to the quickest methods to disable / enable the automatic screen lock using the Linux Mint 20 CLI. It is always recommended to keep the automatic screen lock activated. However, if you disable it for some time, you will have to enable it again once you have completed your job of protecting your computer system and the data inside from intruders.