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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
333 Views
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 Kudos
1 Solution
255 Views
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. 

View solution in original post

2 Replies
256 Views
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. 

255 Views
sujay1
Contributor V

Thanks james,

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

0 Kudos