xuyuan / autosuspend

Auto suspend / power off linux machine when idle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto Suspend / Power off when system is idle

installation

sudo apt-get install bc

sudo cp autosuspend.sh /usr/local/sbin/
sudo cp autosuspend.conf /etc/

# setup cron, example of checking every 15 minutes
echo "*/15 * * * * root /usr/local/sbin/autosuspend.sh" | sudo tee -a /etc/crontab

troubleshooting

# check logs 
cat /var/log/syslog | grep AutoSuspend

reference

About

Auto suspend / power off linux machine when idle


Languages

Language:Shell 100.0%