2

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?

bcbc
  • 6,026

2 Answers2

2

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

devGeek
  • 594
1

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").