You are not logged in.
How can I make my computer automatically suspend to ram at midnight, and resume at 6AM?
Offline
A shell script using rtcwake should do the trick. Check out the Man pages.
Offline
rtcwake looks good, but how do I get it to reset after each wake?
Offline
rtcwake looks good, but how do I get it to reset after each wake?
Reset? You mean to run again the next day? There are plenty of ways, the fasted and easiest is a continuously running shell script something like:
rtcwake -s 21600
sleep 64800
Then run it at midnight tonight (or write another script to do that for you if you want it to be more exact) with
nohup mysleepscript.sh &
Like I said there are many ways to do this, but that's just the easiest IMO.
Offline
... Or start it with a cron job at midnight
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline