I have a headless server running Ubuntu Server Edition 14.04.
I have tested pm-suspend-hybrid and it works. I am able to manually put the server into suspend-hybrid through command line.
I am also successfully able to resume the server through WoL from another machine.
What I would like to do is get the server to automatically go into suspend-hybrid when not in use for at least 30 mins.
By use I mean:
- remote machines are accessing NFS shares on the server over the network
- my TV is accessing DLNA content over the network
If it is too complicated to determine when a machine is idle, alternatively I would like to set the server to go into suspend-hybrid from 01:00 AM every day.
Is there any tutorial or step by step process I can use to get this working?
info
, then parse the logs and see whether there was no activity for 30 minutes and then usepm-suspend-hybrid.
(I would run the script every 5 minutes usingcron
.