IMX8QMMEK - weston - 5.0.0 - how to take screenshot and screen record

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8QMMEK - weston - 5.0.0 - how to take screenshot and screen record

Jump to solution
5,976 Views
Jino
Contributor I

Hi, I am working with IMX8QMMEK board. I am using xen-linux on the board(linux release 4.14.98-imx). It has the inbuilt wayland 1.16 and weston 5.0.0.

I want to take the screenshot and screen record. the process like "weston-screenshooter" expects "MOD+S" and "MOD+R" shortcut key input, and "vulkan-screenshot" expects "F2" shortcut key input. Unfortunately, I don't have keyboard connected nor my requirement to use keyboard. I want to take screenshot record within the program. So, I tried faking the key with "xte" application, but, weston does not respond at all.

I also tried third party applications to take screenshot, that too does not work. Please let me know any way around.

0 Kudos
1 Solution
5,965 Views
b36401
NXP Employee
NXP Employee

You can use some commandline screenshot program like this:

https://github.com/wayland-project/weston/blob/master/clients/screenshot.c

 

I mean you can call it by a timer or by some signal from a script running in background.

View solution in original post

0 Kudos
3 Replies
5,946 Views
Jino
Contributor I

Hi, Thanks for the reply. We tried an another way to get it done. Since our application is running in Qt, we used the Qt's grabWindow() to achieve the task. It is working fine. Thank you.

2,230 Views
Apurvagajjar
Contributor I

Can you give me that qt example how to take screenshot in wayland display?

0 Kudos
5,966 Views
b36401
NXP Employee
NXP Employee

You can use some commandline screenshot program like this:

https://github.com/wayland-project/weston/blob/master/clients/screenshot.c

 

I mean you can call it by a timer or by some signal from a script running in background.

0 Kudos