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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
6,080 次查看
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 项奖励
1 解答
6,069 次查看
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 项奖励
3 回复数
6,050 次查看
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,334 次查看
Apurvagajjar
Contributor I

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

0 项奖励
6,070 次查看
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 项奖励