View Single Post
Old 02-06-2016, 03:50 PM   #43
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Hmm...
Let me do a quick check here -

This firmware (most certainly not the same version or model as yours) has two clocks in the /sys tree, rtc0 and rtc1.
rtc1 is the only one with a bunch of exposed functions:
Code:
[root@kindle rtc1]# ls -l
-r--r--r--    1 root     root          4096 Oct  7 01:50 date
-r--r--r--    1 root     root          4096 Oct  7 01:50 dev
lrwxrwxrwx    1 root     root             0 Oct  7 01:50 device -> ../../../pmic_rtc.1
-rw-r--r--    1 root     root          4096 Oct  7 01:50 max_user_freq
-r--r--r--    1 root     root          4096 Oct  7 01:50 name
drwxr-xr-x    2 root     root             0 Oct  7 01:50 power
-r--r--r--    1 root     root          4096 Oct  7 01:50 since_epoch
lrwxrwxrwx    1 root     root             0 Oct  7 01:50 subsystem -> ../../../../../class/rtc
-r--r--r--    1 root     root          4096 Oct  7 01:50 time
-rw-r--r--    1 root     root          4096 Oct  7 01:50 uevent
-rw-r--r--    1 root     root          4096 Oct  7 01:50 wakealarm

[root@kindle rtc1]# cat wakealarm

[root@kindle rtc1]# cat time
18:34:34

[root@kindle rtc1]# pwd
/sys/class/rtc/rtc1
wakealarm is marked r/w for 'root' -
but I do not get anything back from it either.

= = = = =

There was a post or two around here in a thread about someone trying to use the timer.

I think they posted that it only accepted a value during the 'ready to sleep' kernel state.
Some thread searching might turn it up.
knc1 is offline   Reply With Quote