This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I take a screenshot on the AM335x EVM

I want to try and get a screenshot of an issue I'm seeing on the LCD. The software I'm running is the tisdk-rootfs-image-am335x-evm.tar.gz

I found in the tool set an application called screenshot, and I tried to use that:

root@am335x-evm:/# ./usr/bin/screenshot
usage: screenshot filename
root@am335x-evm:/# ./usr/bin/screenshot /home/root/qt_shot
Screen Info
vinfo.bits_per_pixel 32
vinfo.xres 800
vinfo.yres 480
screen_size 1536000
Line Length 3200
Physical Address 8d900000
Buffer Length 3072000
root@am335x-evm:/#

When the script completed the new file qt_shot was created in /home/root/ however it could not be opened... so clearly there's more to it. How do I properly use this tool to capture a screen shot on the device?

If this tool doesn't do what I thought, how could I capture a screen shot of the device?

Thanks.
-Mike

  • Looks like this app is just dumping the contents of /dev/fb0 framebuffer into a bit map file (here is the source).  Have you tried opening it with an image viewer?  You could try "eog" on your ubuntu host to view it quickly and it should figure out the file type for you.

  • jelliott said:

    Looks like this app is just dumping the contents of /dev/fb0 framebuffer into a bit map file (here is the source).  Have you tried opening it with an image viewer?  

    Yeah I saw that too, so I tried opening it with an image viewer and the image viewer just said "unknown file type" or "invalid file" which is why I thought I was missing a step

    jelliott said:

    You could try "eog" on your ubuntu host to view it quickly and it should figure out the file type for you.

    eog <file_name>

    worked. Thanks.

  • If you name the file with a bitmap extension (i.e. filename.bmp) then it will be recognized and opened correctly by Image Viewer in Ubuntu as well as Windows Photo Viewer.

    Side note: I didn't realize we even shipped this utility with the SDK so thanks for pointing it out, Mike!