
To install dconf-editor on Debian, Ubuntu or Linux Mint: $ sudo apt-get install dconf-tools To disable screen lock: $ dconf write /org/gnome/desktop/screensaver/lock-enabled falseĪlternatively, you can use dconf-editor, a GUI-frontend for dconf command.

To activate screensaver and lock the screen after 10 minutes: $ dconf write /org/gnome/desktop/session/idle-delay 600 If you want to control screen lock from the command line, here is how to do it. Also, you can enable or disable screen locking. In this setting, you can set screen inactivity period and screen lock delay. Go to System Settings -> Brightness and Lock. In this tutorial, I am going to show how to configure screen lock settings in various Linux desktop environments. Also, in case you want prevent your screen from going off and locked down for an extended period of time (e.g., when watching a movie), you probably want to disable screen lock feature. You may want to adjust these settings based on your typical work environment. The default screensaver is typically configurable, and you can change settings like inactivity period or screen lock delay.

How to adjust screen lock settings on Linux desktopĮvery major Linux desktop nowadays comes with a screensaver program by default (e.g., xscreensaver), which then can be used to lock the screen for security purposes.
