Do terminal:
Suspender e acordar após 60 seg:
sudo rtcwake -m disk -s 60
Suspenda e acorde hoje às 16h
sudo rtcwake -m no -l -t "$(date -d 'today 16:00:00' '+%s')"
Suspender e acordar amanhã 10.00:
sudo rtcwake -m no -l -t $(date +%s -d 'tomorrow 10:00')
Suspender e acordar data e hora específicas:
sudo rtcwake -m no -l -t "$(date -d '2017-04-25 16:00:00' '+%s')"
Para desligar para uso de manutenção:
sudo shutdown -P +60 "The system is going DOWN to maintenance mode in 60 minutes!"
sudo shutdown -P 22:10 "The system is going DOWN to maintenance mode at 22:10!"
Usando o Autopoweroff:
Download do Autopoweroff:
wget https://github.com/deragon/autopoweroff/releases/download/3.0.0/autopoweroff-3.0.0-1.noarch.deb
Instalar o autopoweroff:
sudo dpkg -i autopoweroff-3.0.0-1.noarch.deb
sudo apt-get install -f