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 04-06-2019, 06:18 AM   #1
invertebrate
Illiterate
invertebrate began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2019
Device: PW4
Completely shut down a PW4

Greetings, thank you all for your hard work! The following questions have partly been answered for older devices but not specifically for the PW4 (unless I'm blind).


What would happen if I issued a poweroff command from the command line on a jailbroken kindle paperwhite 4 (2018)?

Would doing that entail the risk of bricking the device or losing the jailbreak or other miseries that could be considered harmful/undesirable (like losing data, etc.)?

What would have to be done to start it up again afterwards? Is it even possible? How long would it take?

Does it even make sense to attempt doing that?
invertebrate is offline   Reply With Quote
Old 04-06-2019, 10:22 AM   #2
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by invertebrate View Post
What would happen if I issued a poweroff command from the command line on a jailbroken kindle paperwhite 4 (2018)?
Not sure about poweroff but I use a script I found in the Kindle Dev forum.
Code:
#!/bin/sh

exec shutdown -P now
Device turns off and you a get the boy under tree image with a "Please wait a moment while your Kindle starts up..." message.

Quote:
Originally Posted by invertebrate View Post
Would doing that entail the risk of bricking the device or losing the jailbreak or other miseries that could be considered harmful/undesirable (like losing data, etc.)?
Not that I can tell.

Quote:
Originally Posted by invertebrate View Post
What would have to be done to start it up again afterwards? Is it even possible? How long would it take?
Same as you do when you get a brand new Kindle (press power button for a few seconds) and boot time is just as long.

Quote:
Originally Posted by invertebrate View Post
Does it even make sense to attempt doing that?
Long term storage, sure. For example, I bought extra Kindles that could be jailbroken for backup purposes that are just sitting in a drawer unused for months on end. Makes sense to turn those off.

Normal usage, just stick to standby.
ilovejedd is offline   Reply With Quote
Advert
Old 04-06-2019, 08:26 PM   #3
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
This is intriguing. But before I risk messing things up, can you tell me if my understanding is correct?
  • Connect Kindle to computer via USB
  • Open Terminal window (I'm on Mac)
  • Navigate to Kindle root directory ??
  • Type: #!/bin/sh and hit return ??
  • Type: exec shutdown -P now and hit return ??

This will power down my Kindle completely? Not just sleeping anymore?

And this will work on a non-jailbroken Kindle?

Thank you!
odamizu is offline   Reply With Quote
Old 04-06-2019, 08:51 PM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
*) Yes
*) Yes
+ do you mean to include "Start USB networking" here?
*) Yes
But you need command line access to do that (kTerm, USB networking, ...)
Since the root of the file system is not exported, only the user area is.
*) Not required when do this interactively on the command line.
*) Yes, sort of.
The only way to completely shut down a Kindle is to remove the battery.
There is always some hardware running, for example, what else would read power button presses when the main processor is sleeping?
knc1 is offline   Reply With Quote
Old 04-06-2019, 09:18 PM   #5
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Ah, sorry I wasn't clear enough.

Jailbreak is absolutely required (OP is already jailbroken so I didn't feel the need to mention that in my previous reply). I don't connect to USB. Not really up to doing the research on setting up USB networking in Windows 7.

I found a KUAL add-on on this forum that powers down the kindle. That code above was the contents of the shell script that does the shutdown. I just go to KUAL and select Power OFF Kindle (which launches the above script).
ilovejedd is offline   Reply With Quote
Advert
Old 04-06-2019, 09:20 PM   #6
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,278
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by odamizu View Post
This is intriguing. But before I risk messing things up, can you tell me if my understanding is correct?
  • Connect Kindle to computer via USB
  • Open Terminal window (I'm on Mac)
  • Navigate to Kindle root directory ??
  • Type: #!/bin/sh and hit return ??
  • Type: exec shutdown -P now and hit return ??

This will power down my Kindle completely? Not just sleeping anymore?

And this will work on a non-jailbroken Kindle?

Thank you!
If your kindle is not jailbroken and your mac has a shutdown command, the last command would shutdown your mac.

Without jailbreak, the only terminal access to a kindle is over the serial port.
j.p.s is offline   Reply With Quote
Old 04-06-2019, 09:27 PM   #7
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,278
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by ilovejedd View Post
Ah, sorry I wasn't clear enough.

Jailbreak is absolutely required (OP is already jailbroken so I didn't feel the need to mention that in my previous reply). I don't connect to USB. Not really up to doing the research on setting up USB networking in Windows 7.

I found a KUAL add-on on this forum that powers down the kindle. That code above was the contents of the shell script that does the shutdown. I just go to KUAL and select Power OFF Kindle (which launches the above script).
You could boot KNOPPIX or any other linux live CD and set up USB networking for that. They can be put on USB sticks and set up to have configuration changes persist. The ultimate solution is to come to the light side and run linux.
j.p.s is offline   Reply With Quote
Old 04-06-2019, 10:59 PM   #8
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Okay, thanks all! This is clearly over my head
odamizu is offline   Reply With Quote
Old 04-07-2019, 12:07 AM   #9
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by odamizu View Post
Okay, thanks all! This is clearly over my head
The Kindle does have to be jail broken.
Your Mac already has the ssh client installed as part of its standard system.

There are "Mac specific" directions posted here for USB networking and ... (not sure what else).
knc1 is offline   Reply With Quote
Old 04-07-2019, 01:11 AM   #10
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by j.p.s View Post
You could boot KNOPPIX or any other linux live CD and set up USB networking for that. They can be put on USB sticks and set up to have configuration changes persist. The ultimate solution is to come to the light side and run linux.
I've already got persistent USB sticks with Mint, Kubuntu, Xubuntu and non-persistent Manjaro, Neon and LMDE, plus a multi-boot system with most of the above on a dedicated netbook (i3-3227U, 4GB RAM and 512GB Crucial SSD) which I played with for a couple of months before losing interest. At this point, switching desktop OSes is too much hassle when I'm using an iPad ~80% of the time.

I don't tinker with my Kindle enough to make the effort to setup USB networking. KOReader, LibrarianSync and Screensaver all work so I'm a happy camper.

Last edited by ilovejedd; 04-07-2019 at 01:16 AM.
ilovejedd is offline   Reply With Quote
Old 04-05-2021, 12:44 AM   #11
atonement
Zealot
atonement began at the beginning.
 
Posts: 107
Karma: 10
Join Date: Feb 2015
Location: India
Device: Kindle PW3
I had powered off my jailbroken KPW3 at 96%. Powered it on about a day later and battery is shown at 100%!
atonement is offline   Reply With Quote
Old 04-05-2021, 12:25 PM   #12
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,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Not out of the ordinary. The gauge lies to you all the time: it's designed to avoid your battery dying a horrible death, not giving you accurate information.
NiLuJe is offline   Reply With Quote
Old 04-05-2021, 03:15 PM   #13
atonement
Zealot
atonement began at the beginning.
 
Posts: 107
Karma: 10
Join Date: Feb 2015
Location: India
Device: Kindle PW3
That figures. I try to not charge it beyond 80% but in case I forget and it charges to 100% it falls to 94% or so rather quickly. I wish there was a way to limit charge to say 80%.
atonement is offline   Reply With Quote
Old 04-05-2021, 03:23 PM   #14
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,278
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by NiLuJe View Post
Not out of the ordinary. The gauge lies to you all the time: it's designed to avoid your battery dying a horrible death, not giving you accurate information.
And the percent charge shown on the display might be a lie about the lie reported by the gauge, which can be greater than 100% because of the values used in the math. The firmware will display 100% for values above 100%.
j.p.s is offline   Reply With Quote
Reply

Tags
poweroff, pw4, shutdown


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enjoying reading again with the PW4 sydmalicious Amazon Kindle 20 01-19-2019 02:36 PM
Troubleshooting PW4 Barbara1955 Amazon Kindle 22 12-23-2018 06:56 PM
Chess for PW4 kript96 Kindle Developer's Corner 3 12-03-2018 05:38 AM
Completely shut down WiFi on KP3 medwatt Amazon Kindle 14 01-05-2016 09:47 PM
PW4 ? Scarpad Amazon Kindle 5 11-29-2015 04:51 PM


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


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