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

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: 3,691
Karma: 9002853
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, 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
Old 04-06-2019, 08:26 PM   #3
odamizu
maniac
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: 816
Karma: 1831442
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, 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
99.44/100% On Holiday
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: 16,693
Karma: 17654500
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: 3,691
Karma: 9002853
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, 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
Old 04-06-2019, 09:20 PM   #6
j.p.s
Wizard
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: 1,964
Karma: 31726854
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 online now   Reply With Quote
Old 04-06-2019, 09:27 PM   #7
j.p.s
Wizard
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: 1,964
Karma: 31726854
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 online now   Reply With Quote
Old 04-06-2019, 10:59 PM   #8
odamizu
maniac
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: 816
Karma: 1831442
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, 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
99.44/100% On Holiday
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: 16,693
Karma: 17654500
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: 3,691
Karma: 9002853
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, iPad 9.7, 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
Reply

Tags
poweroff, pw4, shutdown

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:28 PM.


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