Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 12-29-2019, 12:11 PM   #31
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 9,812
Karma: 17500002
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
You'll probably also want to switch to the powersave CPU scheduler. It probably won't help all that much, but, eh.
NiLuJe is offline   Reply With Quote
Old 12-29-2019, 04:13 PM   #32
mattzz
Member
mattzz began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2014
Device: pw, pw2
Quote:
Originally Posted by Junket View Post
PW4 has a 1500 mAh battery, PW/2/3 are usually said to be 1420 - 1470 mAh. If you can suspend a significant amount of time as several posters suggest is possible to set (above, here) & minimize wifi use, a month or more on battery should be an attainable goal.
The math still does not check out, even if you spend a considerable amount in STR (like ~90%).

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:
Creating the header below should forestall aggressive checks for firmware updates when wifi is enabled:
touch /var/local/system/SKIP_UPDATE_CHECK
Does this also work for an old PW running 5.4.3.2?
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.
mattzz is offline   Reply With Quote
Advert
Old 12-29-2019, 04:58 PM   #33
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 9,812
Karma: 17500002
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
"things" should be fairly tame for a clock, I wouldn't expect that to be a net loss (for this specific use-case).
NiLuJe is offline   Reply With Quote
Old 12-29-2019, 05:55 PM   #34
handyguy
Connoisseur
handyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to behold
 
handyguy's Avatar
 
Posts: 52
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 05:57 PM.
handyguy is offline   Reply With Quote
Old 12-29-2019, 06:09 PM   #35
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 55,442
Karma: 51439620
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by handyguy View Post
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.
Why not set the clock to go off all night when you are asleep?
JSWolf is online now   Reply With Quote
Advert
Old 12-29-2019, 11:15 PM   #36
Junket
Nil adsuetudine maius
Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.
 
Junket's Avatar
 
Posts: 276
Karma: 400000
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.
Junket is online now   Reply With Quote
Old 12-30-2019, 02:41 AM   #37
handyguy
Connoisseur
handyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to behold
 
handyguy's Avatar
 
Posts: 52
Karma: 11789
Join Date: Dec 2019
Device: PW4
Quote:
Originally Posted by JSWolf View Post
Why not set the clock to go off all night when you are asleep?
It's a compromise, might be up late, need the time... Hopefully the suspend etc. will more than make up for it.
handyguy is offline   Reply With Quote
Old 12-30-2019, 06:46 PM   #38
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,221
Karma: 234567890
Join Date: Dec 2011
Location: USA
Device: Oasis 2, PW3
Quote:
Originally Posted by handyguy View Post
It's a compromise, might be up late, need the time... Hopefully the suspend etc. will more than make up for it.
Or a sufficiently large enough powerbank. Then you can afford to update every minute even at night.
DuckieTigger is offline   Reply With Quote
Old 12-30-2019, 08:58 PM   #39
rem736
purpose priority passion
rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.
 
Posts: 543
Karma: 2446378
Join Date: Jan 2010
Location: socal, usa
Device: koa2 wifi, b&n ngp, sony dpt-s1, sony prs-350
Quote:
Originally Posted by DuckieTigger View Post
Or a sufficiently large enough powerbank. Then you can afford to update every minute even at night.
i have no issue with keeping it plugged in 24/7. so i'm not worried about power saving at all. as it is, e-ink screens are the least power hungry screens available.

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).
rem736 is offline   Reply With Quote
Old 12-30-2019, 11:10 PM   #40
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,221
Karma: 234567890
Join Date: Dec 2011
Location: USA
Device: Oasis 2, PW3
I see. Also survives a power outage — the other reason to reset clocks.
DuckieTigger is offline   Reply With Quote
Old 01-01-2020, 03:20 PM   #41
handyguy
Connoisseur
handyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to behold
 
handyguy's Avatar
 
Posts: 52
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.
Attached Files
File Type: zip clock.zip (109.4 KB, 24 views)

Last edited by handyguy; 01-01-2020 at 04:46 PM.
handyguy is offline   Reply With Quote
Old 01-01-2020, 03:50 PM   #42
Junket
Nil adsuetudine maius
Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.
 
Junket's Avatar
 
Posts: 276
Karma: 400000
Join Date: Nov 2019
Location: US
Device: PW4
So that settles the question in post no. 1
Thanks for sharing.
Junket is online now   Reply With Quote
Old 01-02-2020, 01:42 PM   #43
handyguy
Connoisseur
handyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to behold
 
handyguy's Avatar
 
Posts: 52
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 02:43 AM.
handyguy is offline   Reply With Quote
Old 01-09-2020, 02:13 AM   #44
handyguy
Connoisseur
handyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to behold
 
handyguy's Avatar
 
Posts: 52
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.
handyguy is offline   Reply With Quote
Old 01-22-2020, 04:53 PM   #45
rem736
purpose priority passion
rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.
 
Posts: 543
Karma: 2446378
Join Date: Jan 2010
Location: socal, usa
Device: koa2 wifi, b&n ngp, sony dpt-s1, sony prs-350
Quote:
Originally Posted by handyguy View Post
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.
would this work on any kindle? or just the PW?
rem736 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-900 PRS-900 Clock Hack? Dahak Sony Reader 13 06-18-2010 04:33 AM
clock hack for EBW 1150??? the7gerbers Fictionwise eBookwise 1 02-18-2009 11:32 AM
Sony Reader hack: clock in status bar vvv Sony Reader 20 04-26-2007 07:11 PM


All times are GMT -4. The time now is 12:59 PM.


MobileRead.com is a privately owned, operated and funded community.