11-01-2013, 03:22 PM | #31 |
Grand Sorcerer
Posts: 12,154
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Surely though there still has to be some process that reads the book's cover to display on the frame buffer, and I've yet to see any evidence of that in tracing
|
11-01-2013, 03:28 PM | #32 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
I am sure you have selected "show current book cover".
|
Advert | |
|
11-01-2013, 03:41 PM | #33 |
Grand Sorcerer
Posts: 12,154
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Nod as I DO see the book cover being displayed (along with the % read info on it)!
|
11-01-2013, 04:22 PM | #34 |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Somewhere in the response to the powerslider event the suspend function or just prior to that there is code to the effect of: If the option is set to display book cover do (what is required to do that) else do (whatever is required to make the display that you see when the covers are not used). In the code to use the cover .png there would be a return value that points to the current cover to use. Would not it be possible to have it always point to a different, user supplied .png?
Luck; Ken Last edited by Ken Maltby; 11-01-2013 at 08:20 PM. |
11-01-2013, 06:25 PM | #35 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
In case somebody would like to try replacing the Mondadori sleep screen images, in FW 2.8.1b likely candidates in nickel are:
249619 (758x1014; 72dpi;4.962 Bytes) 261D5C (758x1024; 72dpi;10.391 Bytes) 270AA2 (600x800; 72dpi; 7.774 Bytes) 27DF32 (1080x1440; 72dpi;7.218 Bytes) Last edited by tshering; 11-02-2013 at 06:23 AM. |
Advert | |
|
11-02-2013, 07:31 PM | #36 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
I tried replacing the mondadori sleep images by custom images. It works of course. However, one is severely restricted by the small file size of the simple mondadori images.
Therefore, I tried to replace the system calls of libnickel, cf. post #28, by a call to a user script which writes to the screen and then initiates the suspend state. It works as far as the sleep screen is concerned. However, after waking he reader up, it falls again sleeping after some seconds if I do not continually touch the screen. |
11-03-2013, 07:55 AM | #37 |
Member
Posts: 13
Karma: 10
Join Date: Oct 2013
Device: prs-650, kobo aura
|
well, at least that seems like the right path. well done, tshering! i hope you can solve that! sounds like a delayed recursive function is checking the waking state. does the device go do sleep normally if you push the sleep button before it auto-sleeps? also, i'd try to change the "go to sleep" time in the options back and forth once, perhaps some variables were messed up. just saying what crossed my mind, you probably tried that already.
i've tried to look for the 2.9.0 that's on the aura, but couldn't find it anywhere. i'm playing with a 2.8.1, but since i don't have a glow or similar, i can't do any tests. btw, i noticed a "slideshow" folder (the one with kraken, etc) in 2.8.1, with some pictures that look like they were intended as sleepscreens. when do those appear? never saw them on the aura Last edited by cosmo666; 11-03-2013 at 08:05 AM. |
11-03-2013, 10:54 AM | #38 | |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
remember it right now. There is a post here that mentions how. I'll edit it in if I can find it. OK; Just type "demo mode on" in the search field, using the Library setting. Tap the slideshow screen to return to the home page. Then while the demo mode is on it plays the slide show instead of sleeping. You need to type in "demo mode off", to return to normal. I'll have to get around to making a set of pictures to replace those in the dragon folder. Maybe someone more energetic could make it so we could select different folders when turning it on. Luck; Ken Last edited by Ken Maltby; 11-03-2013 at 12:03 PM. |
|
11-03-2013, 01:26 PM | #39 |
Member
Posts: 13
Karma: 10
Join Date: Oct 2013
Device: prs-650, kobo aura
|
awesome! that would seem like a great way to circumvent screensaver(if it also locks screen when it auto-enters it, it's just like we wanted. also, if we only keep 1 picture, it should not refresh the page, thus not draining the battery)
unfortunately, for the aura, this does not work. it seems the functionality is still here. when entering demo mode, a blank page is displayed and, as you mentioned, it returns to homescreen when tapped. but, sleeping it manually will still go to the normal screensaver, instead of the slideshow. i asume the slideshow folder is missing in the 2.9.0, but since i can'tget my hands on the fw, i can't say for sure. the screensaver may also appear because there is nothing in the slideshow folder, so it defaults to normal saver. could you please tell me if it enters slideshow upon manually sleeping it (with demo mode on) and if the screen is locked? |
11-03-2013, 02:32 PM | #40 | |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
it is not a mode that is saving power. I was able to put my own pictures in place of the Kobo ones. I just opened one in Gimp2 and made a template from it. Then I make a grayscale image and scale it to 1080x1440 and open a new file in Gimp and select the template. Then it is just a matter of dragging and dropping the image file onto the new template displayed. Luck; Ken Last edited by Ken Maltby; 11-03-2013 at 02:43 PM. |
|
11-03-2013, 02:44 PM | #41 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
I think, I have something.
In libnickel.so.1.0.0, replace Code:
echo %1 > /sys/power/state-extended Code:
sh /mnt/onboard/susptest/susp.sh %1 Code:
echo mem > /sys/power/state Code:
echo "abc"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 In the root of the reader, create a folder "susptest". Put in this folder a script susp.sh with the content Code:
#!/bin/sh # replace /usr/local/Kobo/slideshow/1.gz with the path to your picture sleepPicture=/usr/local/Kobo/slideshow/1.gz if [ $1 == 1 ] && [ -e $sleepPicture ]; then zcat $sleepPicture | /usr/local/Kobo/pickel showpic fi echo $1 > /sys/power/state-extended echo mem > /sys/power/state It is interesting to see, how long it takes for the original kobo screen image to be replaced by the custom image. This seems to indicate how much nickel has to take care of before calling it a day. If you try this, DO IT AT YOUR OWN RISK! I would recommend, using the patcher for modifying libnickel, because there is at least a control, that the patch goes to the correct address and has the correct length. Last edited by tshering; 11-04-2013 at 03:54 AM. |
11-03-2013, 04:27 PM | #43 | |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
Notice the JA one, it appears that a kobo\slideshow exists. Luck; Ken Last edited by Ken Maltby; 11-03-2013 at 04:30 PM. |
|
11-03-2013, 06:07 PM | #44 | |
Member
Posts: 13
Karma: 10
Join Date: Oct 2013
Device: prs-650, kobo aura
|
thanks for the link, tshering!
nop, can't find any slideshow in the 2.9.0. the folder is completely gone,and there seem to be no .png files at all. also, ja seems to be tied more to dictionaries. it's both in the dictionary folder, and ja.conf has adresses mentioning dictionaries. Quote:
one more thing, what do you guys use to see code lines in libnickel.so.1.0.0? i'm using a hexeditor, but the output is far from lines of code such as i see you quoting. |
|
11-03-2013, 06:48 PM | #45 |
Grand Sorcerer
Posts: 12,154
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Somewhere in this forum I posted a script that uses Python and scans through files looking for the signatures associated with zlib compressed sequences.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with custom screensaver hack | HarryPottersWand | Amazon Kindle | 1 | 12-29-2012 05:30 PM |
Hacks K3 custom screensaver w ads | just_jeepin | Amazon Kindle | 0 | 08-31-2012 03:58 PM |
KT with SO + Custom Screensaver 2.0 | kerotan | Amazon Kindle | 1 | 02-04-2012 11:46 PM |
Hacks Corrupted Custom Screensaver (K3) | twowheels | Amazon Kindle | 0 | 01-09-2012 03:34 PM |