Screen Shots

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m
(catchg)
 
(18 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[Category:Guides]]
+
__TOC__
 +
 
 +
= Openmoko 2007.2 update =
 +
Press and hold power button, choose Screenshot from menu :)
  
 
=Screen Grab, Screen Snapshot=
 
=Screen Grab, Screen Snapshot=
 
useful for filing bugs etc:
 
useful for filing bugs etc:
==From a Remote Connected Desktop==
 
  
 +
'''Note on Screen orientation''':
  
[[Image:ScreenShotExample.png|left|Example Screenshot]]
+
'''xrandr -o 1''' turns screen to landscape mode (xrandr -o 0 to go back to ordinary portrait):
:On the device: <pre>xhost 192.168.0.200</pre> Where 192.168.0.200 is the IP of your desktop.
+
<pre>xrandr -o 0 # default </pre>
 +
<pre>xrandr -o 1 # landscape - from right side </pre>
 +
<pre>xrandr -o 2 # upside down </pre>
 +
<pre>xrandr -o 3 # landscape - from left side </pre>  
  
  
:On the desktop: <pre>xwd -root -display 192.168.0.202:0 > dump.xwd</pre>  Where 192.168.0.202 is the device IP.
+
==Locally from the device==
  
:The xwd file can be read by the Gimp:
+
You can grab screen shots manually by using the following command on your Neo:
  
 +
# cat /dev/fb0 >myscreenshot_001.raw
  
<br style="clear:both" />
+
You can then convert this on your pc with fb2png by using the following command:
  
'''Note on Screen orientation''':
+
# fb2png myscreenshot_001.raw myscreenshot_001.png 9 480 640 16
  
'''xrandr -o 1''' turns screen to landscape mode (xrandr -o 0 to go back to ordinary portrait):
 
  
*xrandr -o 0 - defalt
+
You can also push a screen capture back onto the display:
*xrandr -o 1 - landscape - from right side
+
 
*xrandr -o 2 - upside down
+
# cat myscreenshot_001.raw >/dev/fb0
*xrandr -o 3 - landscape - from left side
+
 
 +
 
 +
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
 +
 
 +
 
 +
The command
 +
 
 +
# fbgrab filename.png
 +
 
 +
directly creates a PNG on the Neo.
 +
 
 +
Note: You can get the ''fb2png'' binary from [http://www.mandrivaclub.com/xwiki/bin/view/rpms/Package/8/fb2png this] RPM package. The original website seems to be dead and fb2png is not packaged in debian.
 +
 
 +
==From a Remote Connected Desktop==
 +
 
 +
On the device: <pre>xhost 192.168.0.200</pre>  Where 192.168.0.200 is the IP of your desktop.
 +
 
 +
 
 +
On the desktop: <pre>xwd -root -display 192.168.0.202:0 > dump.xwd</pre>  Where 192.168.0.202 is the device IP.
 +
 
 +
The xwd file can be read by the Gimp:
 +
 
 +
[[Image:ScreenShotExample.png|left|Example Screenshot]]
 +
<br style="clear:both" />
 +
 
 +
[[Category:Applications]]
 +
[[Category:Middleware]]
 +
[[Category:Screen]]

Latest revision as of 06:23, 21 July 2009

Contents


[edit] Openmoko 2007.2 update

Press and hold power button, choose Screenshot from menu :)

[edit] 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 


[edit] 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


The command

# fbgrab filename.png

directly creates a PNG on the Neo.

Note: You can get the fb2png binary from this RPM package. The original website seems to be dead and fb2png is not packaged in debian.

[edit] 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

Screen Grab, Screen Snapshot

useful for filing bugs etc:

From a Remote Connected Desktop

Example Screenshot
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:



Note on Screen orientation:

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

  • xrandr -o 0 - defalt
  • xrandr -o 1 - landscape - from right side
  • xrandr -o 2 - upside down
  • xrandr -o 3 - landscape - from left side