[ALUG] RTC Alarm Wakeup

Barry Samuels bjsamuels at beenthere-donethat.org.uk
Sat Mar 1 14:28:36 GMT 2008


kernel 2.6.23

I want to be able to start one of my machines with RTC Wakeup Alarm but 
it isn't working and I've just found out why.

If I cd into /sys/class/rtc/rtc0 and set the wakeup time as follows:

echo $(( $(cat since_epoch) + 300 )) > wakealarm

and then look to see what is there:

cat wakealarm

I get something like 2059580189 (which converts to a time in April) 
whereas from 'cat since_epoch' I get someting like 1204369402 (which 
converts to the current date/time. 

Any ideas as to what may be happening here?

-- 
Barry Samuels
http://www.beenthere-donethat.org.uk
The Unofficial Guide to Great Britain





More information about the main mailing list