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.
- Install
dconf-editor
withsudo apt install dconf-editor
in 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 -
sleep-inactive-ac-timeout
,sleep-inactive-ac-type
,sleep-inactive-battery-timeout
,sleep-inactive-battery-type
. Theac
andbattery
refers to behaviour when a laptop is plugged in or on battery (if desktop, I assume theac
would apply). If you click one of thetype
options the drop-down menu will display the possible actions - you'll wantsuspend
I think. - The
timeout
option 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.