View Single Post
Old 01-03-2013, 07:47 PM   #1
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Take screenshot from Kobo

Thanks to this link: http://www.cnx-software.com/2010/07/...er-screenshot/
we can make screenshot from our Kobo screen.

* requires telnet

run this command:
Code:
cat /dev/fb0 > screen.raw
get the screen.raw via ftp to you local computer that's running PERL.

Create a new perl script with this contents:

Code:
#!/usr/bin/perl -w

$w = shift || 240;
$h = shift || 320;
$pixels = $w * $h;

open OUT, "|pnmtopng" or die "Can't pipe pnmtopng: $!\n";

printf OUT "P6%d %d\n255\n", $w, $h;

while ((read STDIN, $raw, 2) and $pixels--) {
   $short = unpack('S', $raw);
   print OUT pack("C3",
      ($short & 0xf800) >> 8,
      ($short & 0x7e0) >> 3,
      ($short & 0x1f) << 3);
}

close OUT;
Chmod +x FILE.sh

after that run this:
change the resolution to your Kobo screen (I have a kobo Glo)
Code:
./FILE.SH 1024 758 < screen.raw > screen.png
And there you go, screen.png contains you Kobo Sreenshot.

Last edited by koenieee; 01-04-2013 at 05:37 AM.
koenieee is offline   Reply With Quote