View Single Post
Old 08-29-2025, 02:42 AM   #134
FalconFour
Member
FalconFour began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2018
Device: Kindle 7th Gen
Some great progress. I found so far that the script loses control over sleep quite often - a handful of bugs/issues in state management. It can overrun its retry counter and get stuck forcibly going to sleep without setting a future RTC timer. It regularly (once a day or more) gets stuck in WiFi "NA" state and needs help getting unwedged. Resolved to allow the script to fully wake the screen, then send it back to sleep, when it encounters such a "wedge".

As a result, my Kindle Basic (7th gen, "PW2") has been serving the HA display, regularly updated (8-minute during the day, 30-minute at night), all day - and the battery is at 77%. Might need to be charged once a week at this rate.

The code is fairly log-chatty due to debugs, thus I don't think it's quite apt to post it yet without some cleanup. Testing is slow going, and I just got to the point where it hasn't "wedged" itself all day. It's fairly precarious because there's only *one* RTC wake timer, and the framework itself tends to love overriding it with its own ambitions - which can be much further in the future than our own (thus a propensity for "wedging").

(Funny, this ole' board doesn't do inline images... 2005 throwbacks, haha. Well, I have the HA webhook battery-gauge enabled, and it's posting battery state to HA - producing a pretty run-down chart of the battery from 97% at 2:00AM last night, to 77% at 11:45pm tonight)

If all continues to go well, I'll be sure to post the code in the next day or two. Odd to keep so many forks and variations though...
FalconFour is offline   Reply With Quote