View Single Post
Old 06-25-2013, 09:40 PM   #3129
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: 4,494
Karma: 4440187
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
@PoP: Okay! My favorite kind of seemingly random issue, then!

I'm done with the K2i, so my K3g is my next guinea pig for the next version, I'll try to take a closer look at what happens on mine, see if I can catch it misbehaving... (Which might happen sooner than I later, I just woke it up after its 4 months of slumber to find it in a semi broken usbnet state... >_<").

One of the things I did not test on legacy devices is whether this plays nice with Active Content (whether official, or custom Kindlets), so, if you do use some, that might be a hint.

Anyway, a few things to check over SSH:

* Look at the output of ps faux, and confirm that the three watchdogs are up (cover-watchdog, screensaver-watchdog & userstore-watchdog), and that each of them are still running their own lipc-wait-event & *-watchdog-helper instance

* Follow the log with showlog -f while opening books, see if you can spot the output from the hack


> Expected ps faux snippet:
Code:
root      1226  0.0  0.2   2656   768 ?        Ss   04:03   0:00 /bin/sh /mnt/us/linkss/bin/cover-watchdog
root      1386  0.0  0.1   1572   476 ?        S    04:03   0:00  \_ /mnt/us/linkss/bin/inotifywait -m -e modify --format %e /mnt/base-us/system/com.amazon.ebook.booklet.reader/reader.pref
root      1387  0.0  0.2   2656   756 ?        S    04:03   0:00  \_ /bin/sh /mnt/us/linkss/bin/cover-watchdog-helper
root      1239  0.0  0.2   2656   768 ?        Ss   04:03   0:00 /bin/sh /mnt/us/linkss/bin/screensaver-watchdog
root      1533  0.0  0.4  19316  1076 ?        Sl   04:03   0:00  \_ lipc-wait-event -m -s 0 com.lab126.powerd goingToScreenSaver
root      1534  0.0  0.2   2656   756 ?        S    04:03   0:00  \_ /bin/sh /mnt/us/linkss/bin/screensaver-watchdog-helper
root      1247  0.0  0.2   2656   768 ?        Ss   04:03   0:00 /bin/sh /mnt/us/linkss/bin/userstore-watchdog
root      1469  0.0  0.4  19316  1076 ?        Sl   04:03   0:00  \_ lipc-wait-event -m -s 0 com.lab126.volumd userstoreAvailable
root      1470  0.0  0.2   2656   756 ?        S    04:03   0:00  \_ /bin/sh /mnt/us/linkss/bin/userstore-watchdog-helper
> What the hack might inject in the logs:

* Processing a new book:
Code:
130626:042959 system: I cover-watchdog-helper:def:reader settings changed, trying to extract the cover
130626:043000 system: I cover-extract:def:file extension is valid
130626:043000 system: I cover-extract:def:trying to extract cover for /mnt/us/documents/The Hunt-asin_B006JJPFU6-type_EBOK-v_0.azw3 . . .
130626:043012 system: I cover-extract:def:trying to convert /mnt/us/linkss/cover_cache/cover_raw_B006JJPFU6.jpeg . . .
130626:043023 system: I cover-extract:def:using B006JJPFU6 cover as active screensaver
130626:043024 system: I cover-watchdog-helper:def:reader settings changed, trying to extract the cover
130626:043024 system: I cover-extract:def:last read file didn't change, don't do anything
130626:043024 system: I cover-watchdog-helper:def:reader settings changed, trying to extract the cover
130626:043024 system: I cover-extract:def:last read file didn't change, don't do anything
130626:043024 system: I cover-watchdog-helper:def:reader settings changed, trying to extract the cover
130626:043025 system: I cover-extract:def:last read file didn't change, don't do anything
* A cache hit when switching books:

Code:
130626:043258 system: I cover-watchdog-helper:def:reader settings changed, trying to extract the cover
130626:043259 system: I cover-extract:def:file extension is valid
130626:043259 system: I cover-extract:def:trying to extract cover for /mnt/us/documents/The Hunt-asin_B006JJPFU6-type_EBOK-v_0.azw3 . . .
130626:043301 system: I cover-extract:def:cache hit for B006JJPFU6 :)
130626:043301 system: I cover-watchdog-helper:def:reader settings changed, trying to extract the cover
130626:043301 system: I cover-extract:def:last read file didn't change, don't do anything
130626:043301 system: I cover-watchdog-helper:def:reader settings changed, trying to extract the cover
130626:043301 system: I cover-extract:def:last read file didn't change, don't do anything
130626:043301 system: I cover-watchdog-helper:def:reader settings changed, trying to extract the cover
130626:043301 system: I cover-extract:def:last read file didn't change, don't do anything

Last edited by NiLuJe; 06-25-2013 at 10:09 PM.
NiLuJe is online now   Reply With Quote