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)

ソリューションへジャンプ
916件の閲覧回数
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 解決策
838件の閲覧回数
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 返答(返信)
839件の閲覧回数
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. 

838件の閲覧回数
sujay1
Contributor V

Thanks james,

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

0 件の賞賛
返信