How to spcify key press as an event and prevent idle action in logind.conf(systemd)

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

How to spcify key press as an event and prevent idle action in logind.conf(systemd)

跳至解决方案
724 次查看
sujay1
Contributor V

I'm working on an imx6slevk board with yocto bsp and running qt5 applications.

To enable screen blanking I made following changes in /etc/systemd/logind.conf

IdleAction=suspend

IdleActionSec=30Sec

the console now turns off after 30 screen when the app is running.

but when I press a key in the matrix keypad the timer doesn't reset, for example if I press a key 29 sec after the previous suspend the board goes to suspend 1s later. I'm assuming that the key press is not registered as an activity by the board,

what changes should I make in systemd to enable key press as an event?

0 项奖励
1 解答
646 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello,

I suggest that you ask this question in a QT5 forum, since the handling of the events depend on the GUI and this case, you are using QT5 as platform. 

在原帖中查看解决方案

2 回复数
647 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello,

I suggest that you ask this question in a QT5 forum, since the handling of the events depend on the GUI and this case, you are using QT5 as platform. 

646 次查看
sujay1
Contributor V

Thanks james,

i guess you're right it would be better to modify our qt app

0 项奖励