1

I would like to get my rtcwake command to wake my computer from sleep at 06:00 the following day.

Here is the command I'm using:

rtcwake -m mem -u -t $(date +\%s -d "tomorrow 06:00")

So far it isn't waking. Any ideas?

  • posted this for me. I have it in a cronjob and the going to sleep part works but it never wakes up. I have to manually wake it and when i do that the computer says the time is still the time that it went to sleep. – basketball Oct 4 '14 at 14:05
  • @basketball I am not sure I get this right, ryanlee posted this for you? – Jacob Vlijm Oct 5 '14 at 7:44
  • @JacobVlijm yes – basketball Oct 5 '14 at 15:02
  • @basketball does the sudo work for you? If not, I'll remove the answer, if it does, would you ask ryanlee to accept the answer? otherwise it will continue to appear as unanswered. – Jacob Vlijm Oct 5 '14 at 15:07
  • @JacobVlijm no it does not work. are you in #ubuntu? – basketball Oct 5 '14 at 15:58
1

Following link already has your answer: Automatically sleep and wake-up at specific times

Also, you can check more about rtcwake using following:

  1. Press, Ctrl+Alt+T.

  2. Type in, $ man rtcwake

  • that didnt work – basketball Oct 12 '14 at 5:18
0

I dont know why but in order for rtcwake to work inside of cronjob, you must run sudo crontab -e and then pastesudo rtcwake -m mem -u -t $(date +\%s -d "tomorrow 06:00").

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.