Comment 1 for bug 1238839

Revision history for this message
Barra (barra78) wrote :

on Maguro it capture only black screen:

barra@Saucy:~/Scrivania$ ./cattura -d 111.jpg
+ shift
+ true
+ shift
+ break
+ [ 1 -eq 0 ]
+ DST=111.jpg
+ check_prerequisites
+ cmds=adb convert
+ okay=1
+ type adb
+ type convert
+ [ 1 -ne 1 ]
+ depth=8
+ get_mode
+ adb shell head -1 /sys/devices/virtual/graphics/fb0/modes
+ cut -d: -f2
+ cut -d p -f1
+ size= cannot o
+ echo cannot o
+ grep -qE ^[0-9]+x[0-9]+$
+ get_device
+ adb shell getprop ro.cm.device
+ device=maguro
+ echo maguro
+ tr -d \r
+ device=maguro
+ size=720x1280
+ echo 720x1280
+ size=720x1280
+ [ -z 720x1280 ]
+ CONVERTOPTS=-alpha off -resize 50% -depth 8 -size 720x1280
+ echo I: Dumping fb0 ...
I: Dumping fb0 ...
+ adb shell kill -SIGSTOP $(pidof unity8)
+ adb pull /dev/fb0 /tmp/cattura.1JtyUs/fb
5828 KB/s (16777216 bytes in 2.811s)
+ adb shell kill -SIGCONT $(pidof unity8)
+ convert -alpha off -resize 50% -depth 8 -size 720x1280 rgba:/tmp/cattura.1JtyUs/fb[0] 111.jpg
+ echo I: Done
I: Done
+ cleanup
+ [ -d /tmp/cattura.1JtyUs ]
+ rm -Rf /tmp/cattura.1JtyUs