In Ubuntu and Mint, I can tweak the default inactive time before the screen turns off and my computer is locked. How do i change the default time of inactivity after which the screen gets locked?
Open system settings > power There you can find everything about turning off the screen, adjusting sleep mode, ect.
sudo apt install dconf-editorin a terminal.
- Navigate to org/gnome/settings-daemon/plugins/power using the panel on the left.
- There are four entries that are of interest to you -
batteryrefers to behaviour when a laptop is plugged in or on battery (if desktop, I assume the
acwould apply). If you click one of the
typeoptions the drop-down menu will display the possible actions - you'll want
timeoutoption is how long a period of inactivity (in seconds) is required before the action is carried out. Simply click on the number there at present (probably 0), and replace with the desired value.