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.

Linux/AM3354: Screen capture with Qt5

Part Number: AM3354


Tool/software: Linux

Hi

    we are using AM3354 with processor SDK 03.02.00.05 and 04.02.00.09.

    we have a Qt5 application running on a 320x240 LCD screen.

    Now we want to take a screenshot of the current screen.

    But without sucess.

    Here's couple of things i tried:

    1.cat /dev/fb0 > xxx.bmp

    2./usr/bin/screenshot xxx.bmp

    these 2 methods ends up taking a screenshot of our kernel bootup logo.Not the realtime screen display of our running Qt5 app.

   3./usr/libexec/weston-screenshooter

     i don't know how to start this...but it seems it's also some kind of screenshot taker?

   4./usr/share/qt5/examples/widgets/desktop/screenshot

    i can run this application.But it will fail when i try to save the screenshot.

could you help?

thank you

  • Hello semiyd,

    Please use this method to take a screenshot.

    Best regards,
    Kemal

  • Thanks Kemal!
    i will refer to the thread you sent.
  • Hi kemal:

      in that thread.i saw you explained as folloows:

    On Wayland use the MOD+S shortcut to take a screenshot and MOD+R to take a rapid screenshots (video). You can find these command's source codes in weston-<version>/clients/screenshot.c and weston-<version>/src/screenshooter.c files.

      Could you explain it in more detail as to exactly what a re the steps i should take in order to take the screenshot?

      I did found screenshooter.c in my arago build environment:

    /home/yandong/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/weston/1.9.0-r0.arago15.tisdk0/weston-1.9.0/src

      I suppose this is the source file that builds /usr/libexec/weston-screenshooter. Right?

      Here's the steps i took

      1.systemctl stop matrix-gui-2.0.service

      2.systemctl disable matrix-gui-2.0.service

      by now.matrix-gui is stopped.but weston is up and running.

      3.root@am335x-evm:/usr/libexec# /usr/libexec/weston-screenshooter
    weston-screenshooter must be launched by weston.
    Use the MOD+S shortcut to take a screenshot.

     I don't know how to launch weston-screenshooter by weston.Can you tell me?

     i also don't know what's MOD+S means.Is that some kind of keypad combination? what is MOD+s?

    thanks

    yandong

     

     

  • Just attach a keyboard to your board and press MOD+S. You will find the wayland-screenshot.png in board's root directory.