Ubuntu never shuts down or hibernates even after a long time in suspend mode. I always have to turn on and off my laptop. Is there a way to automatically turn it off after a certain amount of time like under Windows?
Download dconf editor and edit /org/gnome/settings-daemon/plugins/power/. Change sleep-inactive-ac-timeout, sleep-inactive-ac-type, sleep-inactive-battery-timeout, sleep-inactive-battery-type as you want.
Download dconf editor and edit
/org/gnome/settings-daemon/plugins/power/
. Changesleep-inactive-ac-timeout
,sleep-inactive-ac-type
,sleep-inactive-battery-timeout
,sleep-inactive-battery-type
as you want.You can alternatively try these. https://www.ostechnix.com/auto-shutdown-reboot-suspend-hibernate-linux-system-specific-time/