How to use the RTC

Revision as of 11:38, 20 August 2019 by Registered User (Created page with "__TOC__ <br /> ==Purpose== This article describes how to use RTC. The RTC overview is described in RTC overview article. <br/> == How to set a hardware clock thanks to h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


1. Purpose[edit source]

This article describes how to use RTC. The RTC overview is described in RTC overview article.

2. How to set a hardware clock thanks to hwclock tool[edit source]

3. How to set an alarm[edit source]

# disable the alarm #
 echo 0 > /sys/class/rtc/rtc0/wakealarm
# calculate alarm with 1 minute later #
 wakeuptime=`date -d "1 minute" +%s`
# set the alarm #
 echo $wakeuptime > /sys/class/rtc/rtc0/wakealarm


4. How to set an alarm and go into a system sleep state with rtcwake tool[edit source]

5. References[edit source]


Template:ArticleMainWriter