View Single Post
Old 07-03-2011, 01:06 AM   #3
TedN
Junior Member
TedN began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: Kindle
Quote:
Originally Posted by dasmoover View Post
What level is it initializing at? Perhaps the timing causes the flags to be reset by the system itself.
Well, as I understand it, runlevel 5 is the standard "fully operating" level, so (simplifying a little) I have an S99 script in rc5.d which runs

=====================CUT==========
#!/bin/sh
#
# set alarm for $1 seconds in the future
#
trap "" 1

echo "" > /sys/class/rtc/rtc0/wakealarm
echo "+${1}" > /sys/class/rtc/rtc0/wakealarm
==================END===============

with an arg of 900 (15 min). This should give the kindle time to boot and then (assuming I don't fool with the UI) go to sleep by itself with the wakeup coming later. However, it doesn't seem to wake up.
TedN is offline   Reply With Quote