12-01-2010, 11:16 PM | #1 |
Member
Posts: 23
Karma: 22222
Join Date: Oct 2010
Device: kindle3
|
alarm clock on the kindle ?
Just noticed the following entry on the kindle
[root@kindle root]# cat /proc/driver/rtc rtc_time : 04:09:51 rtc_date : 2010-12-02 alrm_time : 05:23:47 alrm_date : 2010-11-25 alarm_IRQ : no alrm_pending : no 24hr : yes and curiously enough, the alarm date is close to when i noticed a spontaneous reboot of the kindle. So i was wondering if there is a way to set the Kindle to wake up at some programmed time ? This is probably more of a linux question... |
03-20-2013, 02:35 PM | #2 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Necro -bump
With a little extra flavour https://www.kernel.org/doc/Documentation/rtc.txt and interestingly... [root@kindle root]# cat /proc/driver/rtc Quote:
EDIT: even more interestingly... 2059-09-19 12:24:31 is not a date that can even be calculated using the onboard busybox... nor ubuntu Mints date calculator... it's too far in the future or something... however using our trusty online companion... http://www.onlineconversion.com/unix_time.htm we can note that would be... 2831199871 - yeah. I can see how they came up with that one .... NOT... (some one's birthday? end of the world?) Let's have a read of https://www.linux.com/learn/docs/672...tc-alarm-clock which looks like fun... Last edited by twobob; 03-20-2013 at 04:35 PM. Reason: 2831199871 = end of the world, you read it here first! |
|
Advert | |
|
03-20-2013, 02:54 PM | #3 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Okay... so we need a helpful date format...
Quote:
[root@kindle root]# echo `date -d "03201924" +%s` 1363807440 <-- Helpful Here's one I tried earlier. [root@kindle root]# echo "1363805893" > /sys/class/rtc/rtc0/wakealarm [root@kindle root]# cat /sys/class/rtc/rtc0/wakealarm [root@kindle root]# cat /proc/driver/rtc Quote:
(need to figure out if alarm management has been nerfed in the kernel code I guess...) at some point... Feel free anyone to chip in with knowledge. I have NONE (as usual) Aaaaaaaaaaaaaand nothing exploded. lol... nor did I note any output in any logs I found yet. nor did it wake from a low power state or vice versa. will dig in the configs Last edited by twobob; 03-20-2013 at 08:19 PM. Reason: added how to get a date |
||
03-20-2013, 03:03 PM | #4 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
[root@kindle root]# zcat /proc/config.gz | grep -i rtc
Quote:
Last edited by twobob; 03-20-2013 at 08:20 PM. |
|
03-20-2013, 03:18 PM | #5 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
possibly some enterprising person might have to do something like.
https://git.kernel.org/cgit/linux/ke...9434822a6c1a73 but for the MXC_MC13892 Currently out of scope for my playtime. But hey. it's a place to start digging. : ) |
Advert | |
|
03-20-2013, 03:57 PM | #6 | |||||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Kernel versions 2.6.22 and newer use /sys/class/rtc/rtc0/wakealarm
[root@kindle root]# uname -a Quote:
Which is interesting if nothing else and may deserve a look. also from http://www.mythtv.org/wiki/ACPI_Wakeup (Which is crammed with intersting stuff on this subject) Disable hwclock updates? Quote:
Let's check if we have a HWCLOCKACCESS=no in our /etc/default/rcS [root@kindle root]# cat /etc/default/rcS Quote:
we use a custom upstart anyways more like ubuntu... so perhaps we could do something in there as outlined on the page I linked to... A cursory glance at /etc/init.d shows a lack of rtc stuffage [root@kindle root]# /etc/init.d/ Quote:
One more thing.. is rtc or rtc-cmos a module? [root@kindle root]# lsmod Quote:
Last edited by twobob; 03-20-2013 at 04:00 PM. |
|||||
03-20-2013, 08:17 PM | #7 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
hmm.... more thoughts...
I feel that the issue is really something to do with the actual state of the system. a shutdown -h now does indeed halt the system (don't try that at home kids) so perhaps a recrafting of what HALT actually "does" and testing if it resumes from that state is in fact in order... might have a look at that. [root@kindle root]# echo `date -d "03210028" +%s` > /sys/class/rtc/rtc0/wakealarm [root@kindle root]# cat /proc/driver/rtc Quote:
Quote:
EDIT: Okay that didnt work to wake it up neither... hmm... maybe I need to load the rtc-cmos module... Last edited by twobob; 03-20-2013 at 08:32 PM. |
||
03-20-2013, 08:30 PM | #8 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
for info on the k5
[root@kindle root]# cat /sys/class/rtc/rtc1/ Code:
/sys/class/rtc/rtc1/date /sys/class/rtc/rtc1/since_epoch /sys/class/rtc/rtc1/dev /sys/class/rtc/rtc1/subsystem/ /sys/class/rtc/rtc1/device/ /sys/class/rtc/rtc1/time /sys/class/rtc/rtc1/max_user_freq /sys/class/rtc/rtc1/uevent /sys/class/rtc/rtc1/name /sys/class/rtc/rtc1/wakealarm /sys/class/rtc/rtc1/power/ Code:
/sys/class/rtc/rtc0/date /sys/class/rtc/rtc0/power/ /sys/class/rtc/rtc0/dev /sys/class/rtc/rtc0/since_epoch /sys/class/rtc/rtc0/device/ /sys/class/rtc/rtc0/subsystem/ /sys/class/rtc/rtc0/max_user_freq /sys/class/rtc/rtc0/time /sys/class/rtc/rtc0/name /sys/class/rtc/rtc0/uevent |
03-20-2013, 11:53 PM | #9 |
Evangelist
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
Love where this is headed! Wakeup from low power! Wish I knew what to do with the info you posted...
|
03-21-2013, 12:23 AM | #10 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
To be honest I knew NOTHING about this 24 hours ago. And I still know ALMOST nothing...
This was all really just to get your clock port somewhere useful. # CONFIG_RTC_DRV_CMOS is not set may be part of the problem. We probably have that module lying around now. I honestly have ZERO idea. As usual. But I never let a lack of understanding get in the way of "Having A Go". : ) |
03-21-2013, 04:47 AM | #11 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
The PMIC (power management IC) has RTC capabilities, including wake-up. So yes, it can wake up from "almost off" mode (i.e. only PMIC powered).
Of course, the Kindle can wake up from it's normal "sleep" state at any time by normal software control. It's still running, after all, though it has nothing to do and the SoC has a quite good low-power idle mode. |
03-21-2013, 05:19 AM | #12 | |
Evangelist
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
Quote:
|
|
03-21-2013, 06:54 AM | #13 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
I know of no user interface to do so, but software can trigger a wake-up -- after all, that's what actually happens upon pressing the power button. I'm sure I've seen the needed commands to wake up the normal user interface framework, too - some call to the lipc framework.
|
03-21-2013, 09:10 AM | #14 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Echo the "memory" power state into /sys/power (Exact commands accepted may depend on which of the three kernels your devices runs - learn those by cat'ing the same entry). Then wait. The above should only depend on the kernel's interface to the hardware it is running on. "Below" any application programs. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting Need help with clock setting , kindle 2 | wayneriette | Amazon Kindle | 15 | 02-15-2011 11:57 AM |
Why no Clock? | OhioCruffler | Ectaco jetBook | 29 | 12-01-2010 07:49 PM |
Does the Kindle have a Clock | markbot | Amazon Kindle | 6 | 09-27-2010 01:20 PM |
Troubleshooting Clock on Kindle 2 is incorrect since update | Big Shirley | Amazon Kindle | 7 | 08-09-2010 09:12 AM |
iPad Alarm | Lotus Esprit | Apple Devices | 0 | 06-14-2010 07:33 AM |