|  07-20-2014, 05:25 PM | #406 | |
| Wizard            Posts: 3,489 Karma: 2914715 Join Date: Jun 2012 Device: kobo touch | Quote: 
 The reason why one has to kill nickel is, that nickel does not give the user any option to exit it, the only "regular" way to exit nickel is to power off. Koreader and Coolreader, on the other hand let the user exit them. Therefore, there is no need to kill them. | |
|   |   | 
|  07-20-2014, 06:18 PM | #407 | |
| Enthusiast  Posts: 28 Karma: 10 Join Date: Jul 2014 Device: Kobo Aura HD | Quote: 
   | |
|   |   | 
| Advert | |
|  | 
|  07-24-2014, 02:53 PM | #408 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			Is it possible to create a screenshot from KSM with this command? If it is, could a script be created such that it can be called from nickel (by opening an image, like exit_nickel, etc.) and it takes a screenshot after some delay?
		 | 
|   |   | 
|  07-24-2014, 03:25 PM | #409 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | 
			
			If the Kobo fb is a standard 16bpp fb, fbgrab should do the trick. I only have Kindle builds on hand, though.
		 | 
|   |   | 
|  07-24-2014, 06:06 PM | #410 | |
| Wizard            Posts: 3,489 Karma: 2914715 Join Date: Jun 2012 Device: kobo touch | Quote: 
 Since several FW updates nickel rotates the screen. Under older FWs, I converted the screenshots made on a Kobo Touch by using the values 800x1280, this resulted in an acceptable image, but with a huge black border on one side; or using the values 800x600 with results in an acceptable image without additional border. (This is at least how I seem to remember it.) Now, with recent FWs, I convert with the values 608x1792 (I find these values with fbset). This results in an acceptable image, but with an even huger black border as before. So this should somehow be improved. I did not yet really look into this. Making screenshots by executing a script file via fmon, is not very convenient, because of the timing problem. It is much easier do make it via telnet. If you really want to do it via fmon, try this. KSM provides the scriptfile .kobo\kbmenu\fmonsh\run_test_script.sh, which is associate with kbmenupngs\run_test_script.png. The script file is empty, as its purpose is to be ready for tests. For simplicity let us use it now. The new content for .kobo\kbmenu\fmonsh\run_test_script.sh is Code: #!/bin/sh kbmenudir=/mnt/onboard/.kobo/kbmenu sh $kbmenudir/scripts/screenshot.sh & Code: #!/bin/sh targetfile=/mnt/onboard/screen_$(date +%Y%m%d_%H%M%S).raw sleep 30 cat /dev/fb0 > $targetfile Edit: Later we could try using the screen saver package to make screenshots with the power slider instead of fmon. This should be much more convenient. Last edited by tshering; 07-28-2014 at 03:39 AM. | |
|   |   | 
| Advert | |
|  | 
|  07-25-2014, 04:00 AM | #411 | |
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			Thank you for the explanation, I'll try the script when I get the chance. Quote: 
 How can I use telnet (or ssh)? Can it be done through wifi or must I use usbnet? Just point me to some post/webpage that works with 3.5.0 and KSM, if there is such thing   | |
|   |   | 
|  07-25-2014, 04:38 AM | #412 | ||
| Wizard            Posts: 3,489 Karma: 2914715 Join Date: Jun 2012 Device: kobo touch | Quote: 
 Quote: 
 @NiLuJe, thank you for pointing to fbgrab. | ||
|   |   | 
|  07-25-2014, 01:37 PM | #413 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | 
			
			@tshering: I'm fairly certain this won't be that useful compared to the upstream version since Kobo uses 16bpp fb, but here's the tweaked version I came up with to handle the whole range of weird Kindle fbs   (If you do end up needing to tweak the code, I'd be happy to merge those changes). | 
|   |   | 
|  07-25-2014, 02:46 PM | #414 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			This is my first screenshot, using the script. Strangely, two files were created with 5 seconds of difference in the filename (they were identical). For the conversion I used 1014x768. The black pixels in the bottom right corner are invisible in the device (even under the bezel), and they make the "usable" screen 1014x758. Still, when setting the offsets for KSM (some posts above) I had to assume the screen height is 1024, not 1014. (The "header" is coded in the book, the footer generated by nickel (patched).) EDIT: And the device is actually full-color  (I didn't see further double screenshots, so it must have been a glitch or a double-tap). Last edited by Jellby; 07-25-2014 at 03:05 PM. | 
|   |   | 
|  07-25-2014, 07:19 PM | #415 | |
| Wizard            Posts: 3,489 Karma: 2914715 Join Date: Jun 2012 Device: kobo touch | Quote: 
 Without nickel running the settings are: Code: [root@(none) ~]# fbset
mode "800x600-0"
        # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
        geometry 800 600 800 1280 16
        timings 0 0 0 0 0 0 0
        accel false
        rgba 5/11,6/5,5/0,0/0
endmodeCode: [root@(none) ~]# fbset
mode "600x800-0"
        # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
        geometry 600 800 608 1792 16
        timings 0 0 0 0 0 0 0
        accel false
        rgba 5/11,6/5,5/0,0/0
endmodeI attach two screenshots made with fbgrab, and two of the same screens with cat /dev/fb0 and conversion with ffmpeg. I do not know about the other models, but on the Kobo Touch I need to convert the screenshots of Kobo Start Menu applications with -s 800x600; and the screenshots of nickel with -s 608x800, I have additionally to cut off the 8 pixel on the right border (-vf crop=600:800:0:0). | |
|   |   | 
|  07-25-2014, 08:07 PM | #416 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | 
			
			@tshering: Ha, it shouldn't take much to fix that   . Part of it is similar to what I had to tweak for the K5  . I can take a look at it if you both provide me with the output of fbgrab -v, and a raw fb0 dump in those two cases? | 
|   |   | 
|  07-26-2014, 09:28 AM | #417 | 
| Wizard            Posts: 3,489 Karma: 2914715 Join Date: Jun 2012 Device: kobo touch | 
			
			I was hoping that you will say this. Thank you for looking into it.
		 | 
|   |   | 
|  07-26-2014, 12:41 PM | #418 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | 
			
			@tshering: Thanks, I'll take a look at it   . Quick question: are you rebuilding it or using a Kindle binary? Because I can't reproduce the 'green' issue w/ your dumps (at least on x86, will check on ARM later). | 
|   |   | 
|  07-26-2014, 01:09 PM | #419 | 
| Wizard            Posts: 3,489 Karma: 2914715 Join Date: Jun 2012 Device: kobo touch | |
|   |   | 
|  07-26-2014, 02:51 PM | #420 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | 
			
			@tshering: Hmm. Strange, I couldn't reproduce it on ARM either. (EDIT: Which binary did you use? The K5 one should be the closest one, although softfp, not that it matters that much here). [EDIT²: Meh, my bad, I only put a single binary in there. Keep the previous comment in mind for when I'll update the package, though]. Well, the good news is, it was slightly off in every cases anyway, so I ended up porting KOReader's maths (again ;p). I'm making sure that I didn't break anything in Kindle-land, and I'll update the post  . Last edited by NiLuJe; 07-26-2014 at 03:22 PM. | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| kobo menu and message | tshering | Kobo Developer's Corner | 26 | 01-15-2014 09:18 AM | 
| Kobo WiFi - Battery indicator outside menu? | Cyberman tM | Kobo Reader | 1 | 03-06-2013 04:42 AM | 
| Kobo constantly crashes back to Reading menu | avalanches | Kobo Reader | 0 | 04-11-2011 09:35 PM | 
| main menu, section menu, css for calibre mobipocket output | naisren | Calibre | 2 | 08-23-2010 11:42 PM | 
| Calibre start menu icon | Cy1clown | Calibre | 1 | 02-06-2010 02:10 PM |