2

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?

1 Answers1

1

Adding on to what @Daniel said:

The following will make the computer pm-suspend-hybrid every day at 1 A.M.:

0 1 * * * pm-suspend-hybrid >/dev/null 2>&1

Add this line to your crontab (You can access your crontab by running sudo crontab -e)

Grammargeek
  • 2,792