O'Reilly logo

Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition by Paul Hudson, Andrew Hudson, Matthew Helmke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using rtcwake to Wake Your Computer from Sleep Automatically

Some of us keep our computers running 24/7. Perhaps you don’t want to do so, but you need to have your system up and running at a certain time every day, and you can’t guarantee that you will be able to be present to turn it on. It is possible to use rtcwake to place the computer in sleep or suspend mode instead of turning it off and then wake up the computer later. To do this, you must have sudo permissions. Here is an example:

matthew@seymour:~$ sudo rtcwake -m mem -s -3600

The command above tells the computer to suspend to RAM, or sleep, which means to save the current state of the computer in memory and shut everything else down, and then to wake the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required