pm-utils & GUI tools qshutdown/autopoweroff
Posted: Mon 27 Feb 2017, 13:12
https://www.cyberciti.biz/faq/linux-com ... etbook-pc/
Ubuntu has pm-utils installed by default.
You can invoque suspend with : $ sudo pm-suspend
or invoque hibernation with : $ sudo pm-hibernate
You can suspend or hibernate at a precise time with (30 minutes) :
echo 'pm-suspend' | at now + 30 minutes
For systemd, there is another set of commands (link for more info) :
echo 'systemctl suspend' | at now + 30 minutes
You can shutdown laptop desktop with :
$ sudo shutdown now -h -P (OS will halt and power off immediately)
Or alternatively, at a precise time :
$ sudo shutdown 5:30 -h -P
OS will shutdown at 5:30 AM.
Making aliases may help you shorten the above commands to a simple letter.
Ubuntu has pm-utils installed by default.
You can invoque suspend with : $ sudo pm-suspend
or invoque hibernation with : $ sudo pm-hibernate
You can suspend or hibernate at a precise time with (30 minutes) :
echo 'pm-suspend' | at now + 30 minutes
For systemd, there is another set of commands (link for more info) :
echo 'systemctl suspend' | at now + 30 minutes
You can shutdown laptop desktop with :
$ sudo shutdown now -h -P (OS will halt and power off immediately)
Or alternatively, at a precise time :
$ sudo shutdown 5:30 -h -P
OS will shutdown at 5:30 AM.
Making aliases may help you shorten the above commands to a simple letter.