How to do it...

In this recipe, we will set a wake-up time to 1 minute in advance and put the system to sleep:

  1. Log in to any Linux system that has an RTC clock—any Linux laptop can work. Unfortunately, Raspberry Pi does not have an onboard RTC, and cannot be woken up without additional hardware.
  1. Get root permissions using sudo:
$ sudo bash
#
  1. Instruct RTC to wake up the system in 1 minute:
# date '+%s' -d '+1 minute' > /sys/class/rtc/rtc0/wakealarm
  1. Put the system to sleep:
# echo freeze > /sys/power/state
  1. Wait for a minute. Your system will wake up.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.205.123