Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have flashed Ubuntu Touch on my Motorola Razr GSM (umts_spyder), and would like to take screenshots, but I don't know how. Is there a way to do that?

share|improve this question

2 Answers 2

I don't think there is currently a UI to take screenshots. It is possible to do so from the command line though.

On newer Mir based builds

The phablet-screenshot command found in the phablet-tools package can take screenshots from an Ubuntu device attached via USB cable.

phablet-screenshot foo.png
I: Dumping fb0 ...
2656 KB/s (3932160 bytes in 1.445s)
I: Done

On older Surface Flinger based builds

If you've installed openssh-server on your phone, then ssh in. Otherwise, you can get a shell by plugging the phone in via USB and running adb shell. From the command line, you can take the screenshot with the following command:

/system/bin/screencap -p filename.png

If you place the screenshot in /home/phablet/Pictures, it should show up in the gallery application. If you want to get the screenshot off the phone, you can use scp or sftp (if you installed an SSH server), or adb pull (if accessing it via USB).

share|improve this answer
    
This does not seem to work anymore for the default read-only images. –  David Planella Oct 14 '13 at 11:45
    
Yep. The screencap tool comes from the Android side and works with Surface Flinger. The answer needs updating with a Mir equivalent. –  James Henstridge Oct 14 '13 at 14:00
    
here is workaround at least for now... bugs.launchpad.net/phablet-tools/+bug/1238839 –  Majster-pl Oct 14 '13 at 21:37
    
Interestingly if you are using a device with multi-boot it somehow only captures the multi-boot screen - some how that is the only thing it will take a picture of when using Mir with it, (using nexus7), also screencap is missing from later versions, so you can revert to surfaceflinger and copy over screencap from a android install. –  Mateo_ Nov 1 '13 at 16:52

Run this Script: http://people.canonical.com/~j-lallement/touch/mirfbdump

~$ chmod +x script.sh ~$ sh ./script.sh

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.