Screen Shots

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m
m (local screen shot)
Line 17: Line 17:
 
==Locally from the device==
 
==Locally from the device==
  
 +
You can grab screen shots manually by using the following command on your Neo:
  
 +
# cat /dev/fb0 >myscreenshot_001.raw
  
 +
You can then convert this on your pc with fb2png by using the following command:
 +
 +
# fb2png myscreenshot_001.raw myscreenshot_001.png 9 480 640 16
 +
 +
 +
You can also push a screen capture back onto the display:
 +
 +
# cat myscreenshot_001.raw >/dev/fb0
 +
 +
 +
If you want to show a sequence of screens in an animation you can use convert. Once you have all your screen shots as .pngs try:
 +
 +
# convert -delay 25 -dispose Background +page myscreenshot_*.png -loop 0 animated_test.gif
  
 
==From a Remote Connected Desktop==
 
==From a Remote Connected Desktop==

Revision as of 23:25, 20 August 2007


Contents


Screen Grab, Screen Snapshot

useful for filing bugs etc:

Note on Screen orientation:

xrandr -o 1 turns screen to landscape mode (xrandr -o 0 to go back to ordinary portrait):

xrandr -o 0 # default 
xrandr -o 1 # landscape - from right side 
xrandr -o 2 # upside down 
xrandr -o 3 # landscape - from left side 


Locally from the device

You can grab screen shots manually by using the following command on your Neo:

# cat /dev/fb0 >myscreenshot_001.raw

You can then convert this on your pc with fb2png by using the following command:

# fb2png myscreenshot_001.raw myscreenshot_001.png 9 480 640 16


You can also push a screen capture back onto the display:

# cat myscreenshot_001.raw >/dev/fb0


If you want to show a sequence of screens in an animation you can use convert. Once you have all your screen shots as .pngs try:

# convert -delay 25 -dispose Background +page myscreenshot_*.png -loop 0 animated_test.gif

From a Remote Connected Desktop

On the device:
xhost 192.168.0.200
Where 192.168.0.200 is the IP of your desktop.


On the desktop:
xwd -root -display 192.168.0.202:0 > dump.xwd
Where 192.168.0.202 is the device IP.
The xwd file can be read by the Gimp:
Example Screenshot


Personal tools

Contents


Screen Grab, Screen Snapshot

useful for filing bugs etc:

Note on Screen orientation:

xrandr -o 1 turns screen to landscape mode (xrandr -o 0 to go back to ordinary portrait):

xrandr -o 0 # default 
xrandr -o 1 # landscape - from right side 
xrandr -o 2 # upside down 
xrandr -o 3 # landscape - from left side 


Locally from the device

You can grab screen shots manually by using the following command on your Neo:

# cat /dev/fb0 >myscreenshot_001.raw

You can then convert this on your pc with fb2png by using the following command:

# fb2png myscreenshot_001.raw myscreenshot_001.png 9 480 640 16


You can also push a screen capture back onto the display:

# cat myscreenshot_001.raw >/dev/fb0


If you want to show a sequence of screens in an animation you can use convert. Once you have all your screen shots as .pngs try:

# convert -delay 25 -dispose Background +page myscreenshot_*.png -loop 0 animated_test.gif

From a Remote Connected Desktop

On the device:
xhost 192.168.0.200
Where 192.168.0.200 is the IP of your desktop.


On the desktop:
xwd -root -display 192.168.0.202:0 > dump.xwd
Where 192.168.0.202 is the device IP.
The xwd file can be read by the Gimp:
Example Screenshot