ah right..
as I have more than one kindle...
I grabbed the project and amended the ssh-screenshot.sh to allow for multiple devices
PHP Code:
#!/bin/sh -xe
name=root
device=$1
#device=192.168.1.whatever
test -z "$name" && name=/tmp/kindle
landscape=`ssh root@$device cat /sys/module/eink_fb_hal_broads/parameters/bs_orientation`
ssh root@$device dd if=/dev/fb0 > $name.fb
ls -al $name.fb
./fb2pgm.pl $name.fb $landscape && display $name.fb.pgm
and I call it like
ssh-screenshot.sh kindle5
or
ssh-screenshot.sh 192.168.1.100
etc...
Hope that helps...