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.
解決済! 解決策の投稿を見る。
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.
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.
Can you give me that qt example how to take screenshot in wayland display?
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.