Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
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
Old 01-16-2021, 12:07 PM   #2
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: 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
FWIW, I seem to recall that mine behaves the same way, to some extent at least.

(And that's with nothing but the stock OS running).

It may be related to either being connected with the usbnet gadget loaded and/or being connected to an SDP charger (e.g., a PC). It might not happen when connected to a CDP (e.g., wall charger).

This may be more prominent in diags mode (that, or the same bug exists on the PW1 in diags mode only, or something).

Last edited by NiLuJe; 01-16-2021 at 12:11 PM.
NiLuJe is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running bash scripts from Kobo browser pipcat Kobo Developer's Corner 1 06-29-2016 05:41 AM
Fontfix hack works on my K4S, but not my K4B sneakyspider Kindle Developer's Corner 6 06-24-2013 03:12 PM
Amazon now selling K4S next to K4B xendula Amazon Kindle 8 11-20-2012 02:36 PM
The Idiot's Guide to running Igorsk's Python Scripts Nate the great Workshop 9 05-22-2010 12:17 PM
Problem running scripts from ContentLister Fellball iRex 1 03-13-2009 08:16 PM


All times are GMT -4. The time now is 12:50 AM.


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