![]() |
#31 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You'll probably also want to switch to the powersave CPU scheduler. It probably won't help all that much, but, eh.
|
![]() |
![]() |
![]() |
#32 | ||
Member
![]() Posts: 19
Karma: 10
Join Date: Feb 2014
Device: pw, pw2
|
Quote:
I am using the Kindle as a clock device only (I know, sounds weird - but hey...) which updades the display every minute and does nothing else. The device will be in STR state for ~55 seconds each minute and active for about 3-5 seconds. 5 seconds consuming 100mA for 60 times an hour results in ~8mAh. So IN THEORY the best we can get is a runtime of ~200 hours. And that is not taking account for any wifi reconnects/updates. So even in best case I think we are far away from a attaining a runtime of a month. Different story for an hourly update (~50 days runtime) but I guess for a clock the user acceptance factor would drop quite severly. ;-) So from my understanding the 1440 rtc wakups per day are killing the idea of a long life battery clock. Quote:
I added todo-g7g.amazon.com to my /etc/hosts, pointing at 127.0.01... Better yet to stop the todo process next to lab123_gui and other processes that are not needed in my case. Setting the cpu governor to powersave also reduces current draw (from ~110mA with "ondemand" to 50-80mA with "powersave" according to gasgauge-info) but things will take longer then. |
||
![]() |
![]() |
Advert | |
|
![]() |
#33 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
"things" should be fairly tame for a clock, I wouldn't expect that to be a net loss (for this specific use-case).
|
![]() |
![]() |
![]() |
#34 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 11789
Join Date: Dec 2019
Device: PW4
|
I actually slow the updates down at night to every 10 minutes - nobody's around to see the clock anyways... Also, wifi connect/ntpupdate could be slowed to weekly without ill effect on a clock that is only displaying minutes and not seconds.
Last edited by handyguy; 12-29-2019 at 04:57 PM. |
![]() |
![]() |
![]() |
#35 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why not set the clock to go off all night when you are asleep?
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Nil adsuetudine maius
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
|
There are an endless number of power-centric optimizations that could be made. Do you sync the time once an hour, four times a day, once a day, etc? Do you need the clock to always be spot on or are you insensitive to a few minutes drift? Power save scheduler, perhaps you are willing to halt updates outside of an active hours schedule e.g. when sleeping as suggested earlier.
If your Kindle will be serving as a clock at a fixed location one could have a motion detector trigger the clock to update only when someone walks into or is active in a room. The motion detector could drive an electromagnet to trigger the hall effect sensor (same as a smart case). Are you willing to set the Kindle in a cradle where power use is no longer an issue? And so on. There are scenarios where you might only get 5 or 7 days on battery. And others where a month should be possible. And enough variables that you might as well do some empirical testing to get accurate run time figures. |
![]() |
![]() |
![]() |
#37 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 11789
Join Date: Dec 2019
Device: PW4
|
|
![]() |
![]() |
![]() |
#38 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
|
![]() |
![]() |
![]() |
#39 | |
purpose priority passion
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 645
Karma: 9002000
Join Date: Jan 2010
Location: socal, usa
Device: sony prs-350, b&n ngp, rM2, kindle scribe, boox poke5
|
Quote:
as an alternative, i currently use an old android phone with a clock app set with always on display. there's no sim card and it's connected to my home wifi. it's also constantly plugged in for power. i use "Big Digital Clock" by andreas1724 (free on the google play store and currently at version 1.1.1) for this purpose. it's also ad free. no more adjusting any clock in the house twice a year to get the time right. i'm not the developer nor am i promoting this app in any way. i just like it because 1. it's free 2. it's ad free 3. display color is completely customizable (not limited to a few pre-determined colors) 4. it's simple (just displays the time, 12/24 hour with or without seconds). 5. it will also prevent the screen from going to sleep (blacking out). |
|
![]() |
![]() |
![]() |
#40 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
I see. Also survives a power outage — the other reason to reset clocks.
![]() |
![]() |
![]() |
![]() |
#41 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 11789
Join Date: Dec 2019
Device: PW4
|
clock code
Here's my current version of the Kindle clock. It does not have any Kindle power optimization yet.
To make it work: 1) Unzip and copy the files to /mnt/us/extensions/clock. 2) Update the email info in emailbat.py if you want to be notified of low battery 3) Update the fonts in c2.py to something on your device and un-comment out the emailbat.py code section Press the new Clock button in KUAL or from the command line: python c2.py I don't pretend to be the greatest coder, but the code is relatively modular and commented. Last edited by handyguy; 01-01-2020 at 03:46 PM. |
![]() |
![]() |
![]() |
#42 |
Nil adsuetudine maius
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
|
So that settles the question in post no. 1
Thanks for sharing. |
![]() |
![]() |
![]() |
#43 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 11789
Join Date: Dec 2019
Device: PW4
|
oops, forgot to mention I manually disable the screensaver:
Code:
lipc-set-prop com.lab126.powerd preventScreenSaver 1 Last edited by handyguy; 01-04-2020 at 01:43 AM. |
![]() |
![]() |
![]() |
#44 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 11789
Join Date: Dec 2019
Device: PW4
|
I have changed from using python sleep to using rtcwake; battery is now lasting an estimated 8 days (from 3+ with sleep.) Still not the order of magnitude improvement I was hoping for. I will be fine tuning the code, but that is not likely going to get me to the 2-4 weeks I would like. Will report back.
|
![]() |
![]() |
![]() |
#45 | |
purpose priority passion
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 645
Karma: 9002000
Join Date: Jan 2010
Location: socal, usa
Device: sony prs-350, b&n ngp, rM2, kindle scribe, boox poke5
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-900 PRS-900 Clock Hack? | Dahak | Sony Reader | 13 | 06-18-2010 03:33 AM |
clock hack for EBW 1150??? | the7gerbers | Fictionwise eBookwise | 1 | 02-18-2009 10:32 AM |
Sony Reader hack: clock in status bar | vvv | Sony Reader | 20 | 04-26-2007 06:11 PM |