View Single Post
Old 01-16-2021, 08:46 AM   #1
sku4l
Junior Member
sku4l began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2021
Device: Kindle
Question K4S / K4NT Silver - Plugged but discharging when running scripts?!

Dear Community,

I have been using the works from here quite extensively and thanks to everyone invovled.

Unfortunately, I come accross a problem for which I couldn't find answers:

I use a Kindle 4 Silver (FW 4.1.4, with the jailbreak 1.8N) that is running a loop script launched via kite to fetch a png image every minute and display it. (the script comes from this project https://github.com/sibbl/hass-lovelace-kindle-4)

What puzzles me is that even though my Kindle is plugged (and the LED is steady Green), it seems to run only on battery and discharges completely after 24 hours. The only way to have it stay alive is to unplug it until the green LED stops emitting, then plug it back in which immediately goes to Orange, showing that it is actually not fully charged. When Orange, it will then charge up to 100% .... and then green which goes back to the starting point where it is actually running on the battery and not on the charger.

So basically it's like the battery management is not working and not detecting that it needs to recharge while running the script. The script is a very basic shell script:
  • launched via kite 2 minutes after the startup
  • Contains a while loop with 60 seconds sleep before fetching the .png image and displaying it
  • that's it

I have confirmed the behavior with a second K4 Silver, behaving exactly the same way.

Is it possible that on the K4S, the script is preventing battery management from working properly?

I have been searching the forum for potential battery management commands (like force charging or force discharging), the only link I found was this thread where knc1 seems to explain that there is a command for battery management but I could never find it.

I also looked in the different folders, found the power_supply and charging folders with different information, but I never managed to find the command which could actually force the battery to charge.

Or maybe there is some sort of command to not "sleep" but actually process OS stuff including battery management?

Apologies if this question has been answered somewhere else, I really tried hard find it but couldn't.

Regards to everyone
sku4l is offline   Reply With Quote