|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#16 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
3) Define your use of the word: "external" If you mean "external to the software" - the answer is "yes". If you mean "external to the device" - the answer is "no". Software requires a computer processor to make use of it. If you turn off the processor, what is going to execute the software? Duh.... If you look at the kernel messages associated with the processor resuming operation, you can see that some of the hardware was still running - the messages include how many seconds the processor was shut down. So there are resources external to the halted processor on the Kindle device. 4) You do not claim that what you post is the limit to what things you may try next. Since you include powering down the Wifi (one of the things a system suspend does anyway), there is no telling from your post what other strange things you might try. Hence, a bit of warning that the devices are not indestructible. |
|
![]() |
![]() |
![]() |
#17 |
Member
![]() Posts: 17
Karma: 10
Join Date: May 2013
Device: PaperWhite
|
I thought the standby mode only lowered the processor power, that's why I was hoping to do it in a "software" way.
You're right about the warning, never useless. Thanks. |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
There is a KUAL button for that purpose - it copies (and clears) the kernel's ring buffer to a text document that you can view on the Kindle. Document names are a date-time stamp, so you can keep the messages in order if split between two or more text documents. |
|
![]() |
![]() |
![]() |
#19 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2013
Device: Kindle 4
|
I'm trying to get this to work in a K4, but when I selected 'update your kindle' I got the message 'Update was NOT successful' and then after the reboot I'm not seeing a scripts directory in the user partition. (I am new to the Kindle, jailbroken today, but I'm assuming the user partition is what I see when I attach the Kindle to the computer?)
|
![]() |
![]() |
![]() |
#20 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2013
Device: Kindle 4
|
If it's useful: the error code displayed at "Update was NOT successful" was U006.
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
https://wiki.mobileread.com/wiki/K4_Index#Update_Fails |
|
![]() |
![]() |
![]() |
#22 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2013
Device: Kindle 4
|
That link for the U006 error message is specific to a different screensaver hack/update. I did try it anyway but to no effect.
|
![]() |
![]() |
![]() |
#23 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
U006 is a failure of the system image to match the system manifest. Which **should not** be checked by installing one of our install *.bin files. Did you select: "restart" rather than "update" your Kindle? Use: menu -> settings -> menu -> update **ONLY** do not use "restart" And do you have one of the Amazon system Update-*-.bin files in the user storage? THAT type of file can fail with error U006. Last edited by knc1; 06-27-2013 at 02:15 PM. |
|
![]() |
![]() |
![]() |
#24 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,501
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
ERR_UPDATE_FAILED=U006
That's the catchall, fallback error if something unspecific went wrong. Which, indeed, usually means something in the update script itself returned a non 0 exit code. Which, given the fact that, according to the OP, this was only tested on a Touch/PW, is potentially expected ![]() |
![]() |
![]() |
![]() |
#25 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 6672
Join Date: Apr 2011
Device: kindle
|
Is there a way to set an event on unmount, when the kindle is disconected from the computer ?
|
![]() |
![]() |
![]() |
#26 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 6672
Join Date: Apr 2011
Device: kindle
|
I see that I could modify your code with (I am putting wrong code here, but I am looking for what I would replace it with if it exist):
Code:
mkdir -p /mnt/us/scripts/startup /mnt/us/scripts/suspend /mnt/us/scripts/resume /mnt/us/script/unmount execute() { echo $1 for file in /mnt/us/scripts/$1/*; do if [[ -f "$file" ]]; then echo "... $file" $file & fi done } execute startup lipc-wait-event -m com.lab126.powerd goingToScreenSaver,outOfScreenSaver,usbunmount | while read event; do case "$event" in goingToScreenSaver*) execute suspend;; outOfScreenSaver*) execute resume; usbUnmount*) execute unmount; esac done; |
![]() |
![]() |
![]() |
#27 |
Member
![]() Posts: 11
Karma: 10
Join Date: Feb 2014
Device: Kindle Paperwhite
|
Not working on Paperwhite 2
When I try to install the Event handler on Paperwhite 2, 'update your kindle' greys out. Can you help me with this?
Firmware version - 5.4.2.1 Thanks, |
![]() |
![]() |
![]() |
#28 |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
sowmya
Rebuild with KindleTool 1.6.2.20: Last edited by kaznelson; 09-21-2014 at 12:15 PM. |
![]() |
![]() |
![]() |
#29 |
Member
![]() Posts: 11
Karma: 10
Join Date: Feb 2014
Device: Kindle Paperwhite
|
Works just fine! Thank you very much.
Last edited by sowmya; 03-30-2014 at 07:20 PM. |
![]() |
![]() |
![]() |
#30 |
Member
![]() Posts: 11
Karma: 10
Join Date: Feb 2014
Device: Kindle Paperwhite
|
I tried to run a script on start up, so i added a file run.sh in startup folder, but it does not execute it when i reboot the kindle. The homepage shows up. Am I missing something?
|
![]() |
![]() |
![]() |
Tags |
events, k5 tools, kindle, kite, screensaver |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
is it possible to run k5 launchpad scripts on k5 | techiemonkey | Kindle Developer's Corner | 3 | 07-30-2012 09:10 AM |
Kite on K3G launches scripts randomly on boot or unplug | jmseight | Kindle Developer's Corner | 0 | 03-23-2012 01:55 PM |
Kindle tries to run C/++ applications like sh scripts? | dnR | Kindle Developer's Corner | 1 | 01-09-2011 07:45 AM |