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
add comment

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 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).

On newer Mir based builds

There isn't yet a good solution for the new images so far. You can follow bug 1238839 to track the progress of producing a new tool though.

There is a script linked from the bug that can capture screenshots on some supported devices by bypassing Mir and directly reading the pixel data from the frame buffer that you could try.

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
add comment

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

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

share|improve this answer
add comment

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.