Add phablet-screenshot script
Bug #1238839 reported by
Michael Hall
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phablet Tools |
Fix Released
|
Undecided
|
Unassigned | ||
phablet-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Now that the phablet images have switched to using Mir by default, the /system/
lp:~jibel/+junk/phone-tools in directory misc/mirfbdump
I have confirmed that it works on mako with build 92.
Related branches
lp:~jibel/phablet-tools/lp1238839_phablet-screenshot
- PS Jenkins bot: Approve (continuous-integration)
- Sergio Schvezov: Approve
- Ricardo Salveti (community): Approve
- Alan Pope 🍺🐧🐱 🦄: Pending (test) requested
-
Diff: 247 lines (+222/-0)3 files modifieddebian/control (+1/-0)
phablet-screenshot (+220/-0)
setup.py (+1/-0)
Changed in phablet-tools: | |
status: | New → Confirmed |
description: | updated |
Changed in phablet-tools: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
on Maguro it capture only black screen:
barra@Saucy: ~/Scrivania$ ./cattura -d 111.jpg virtual/ graphics/ fb0/modes 1JtyUs/ fb cattura. 1JtyUs/ fb[0] 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/
+ 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.
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/
+ echo I: Done
I: Done
+ cleanup
+ [ -d /tmp/cattura.1JtyUs ]
+ rm -Rf /tmp/cattura.1JtyUs