Is possible to shutdown Ubuntu Desktop 21.10 after some time of inactivity ? In settings is only option to auto suspend.
Regards
Is possible to shutdown Ubuntu Desktop 21.10 after some time of inactivity ? In settings is only option to auto suspend.
Regards
Source: https://ubuntuhandbook.org/index.php/2021/06/automatic-shutdown-hibernate-on-idle-ubuntu/
Search for
dconf editor
in Ubuntu Software or in GNOME Software, install, then open it.Go to /org/gnome/settings-daemon/plugins/power
Scroll down to the bottom.
sleep-inactive-battery-type
is for shutdown when on battery andsleep-inactive-ac-type
is for shutdown, when charging. Set the value to 'shutdown' for witch do you prefer.E. G. if you want to only shutdown, when on battery, only set the
sleep-inactive-battery-type
to 'shutdown'.sleep-inactive-battery-timeout
is the (shutdown) timeout when on battery in seconds, and obviouslysleep-inactive-ac-timeout
is for the timeout when charging.After you made the changes click the check mark, close Dconf Editor, and now you're done!