12-04-2014, 02:06 PM | #1 |
Fanatic
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
|
Shutting down / Rebooting Kindle Linux
Guys I was just wondering...
Ok, I have got the usbnet hack and I am now on the command line. Cool. But what happens now if I issue a "reboot" command? Or a "shutdown -h now" command? Will the kindle restart correctly? From the user layer I know the PW2 can be rebooted. I then assume that the system is able to come up from zero power to functional state, therefore I expect a "reboot" to work. But I don't know what happens if I tell it to shutdown. Will the power button act as a "start" button even when the system is powered off? |
12-04-2014, 10:45 PM | #2 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I usually use "poweroff" or "reboot", but yeah.
Fun fact -- this is pretty much the only way to actually shutdown the Kindle entirely. |
Advert | |
|
12-05-2014, 02:21 AM | #3 | |
Fanatic
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
|
Quote:
The second reason was I am curious. So if you issue the "poweroff" command - maybe via Kterm - the kindle shuts down gracefully and stays off until you press the power button? |
|
12-05-2014, 03:28 AM | #4 |
Linux devotee
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
Yes, exactly.
The power consumption is (close to) zero then. It's a good habit to power off Kindle you don't use to protect the battery (Li-Ion and Li-Pol batteries suffer from staying in discharged state for a long time). |
12-05-2014, 03:32 AM | #5 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
It has a prioritized, dependency aware, system initialization that also gets triggered for shutting down the system. "shutdown -h ..." is the most general of the *nix commands - The others mentioned are lower level hooks into it. You can even go into the /sys tree, in the sub-tree about power management and force the specific end condition. But yeah, it will not self-destruct. To do that, you have to un-plug the battery while the indexer is still running. |
|
Advert | |
|
12-05-2014, 06:39 AM | #6 |
Fanatic
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
|
Went for it. It works!
Too bad before powering off it changes the screen to the "Hang on, Kindle is starting" which is actually not true. But it stays off, it doesn't react to the magnet too, that's what matters the most. |
12-05-2014, 08:48 AM | #7 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
It has been that way forever.
There isn't any "Shutdown Completed" screen, so what you are seeing is the: "expected behavior". I.E: You got it right - it is as dead now as it gets without disconnecting the battery. Last edited by knc1; 12-05-2014 at 08:52 AM. |
12-05-2014, 09:12 AM | #8 | |
Fanatic
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
|
Quote:
By the way, which init method does the Kindle Linux use? Sys 5, BSD, or what? |
|
12-05-2014, 09:30 AM | #9 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
The series 5.x firmware is using upstart.
Models prior to that used SYS-V. I think you have it, that screen is the default screen when upstart doesn't have anything else to do (either before start-up or after shut-down). Since the Kindle (normally) **never** shuts down - they probably don't see any reason to change it. For other readers: The Kindle's main processor does a "suspend to RAM" and then the RAM is powered down into a "keep alive" mode. Another note: The above is not strictly related to when it shows a screen saver, it can and sometimes will, suspend between page turns. Last edited by knc1; 12-05-2014 at 09:34 AM. |
12-05-2014, 09:57 AM | #10 |
Force-Aware Elf
Posts: 4,757
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
|
knc1: I did the poweroff command a while ago and I had to plug it in to an external power source to power it back on, the power button wasn't working.
|
12-05-2014, 07:54 PM | #11 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HDX Kindle Fire HDX Rebooting while Reading | Anthem | Kindle Fire | 0 | 09-08-2014 05:10 PM |
Kindle Paperwhite rebooting and loosing ebooks | rjalex | Devices | 3 | 06-23-2013 12:41 PM |
Kindle 4 NT constantly rebooting | takedown | Amazon Kindle | 2 | 04-22-2012 06:38 PM |
Kindle 3 Keeps Freezing/Rebooting | gandro | Amazon Kindle | 11 | 08-07-2011 04:34 AM |
Yet another infinitely rebooting Kindle | Leeron | Kindle Developer's Corner | 4 | 07-01-2011 09:25 AM |