AnsweredAssumed Answered

How to reduce power button hold time for power off in imx6sl board?

Question asked by Sujay S on Sep 15, 2019
Latest reply on Sep 16, 2019 by igorpadykov

I'm using an imx6slevk board with yocto bsp and I've observed that I need to hold down the power button (on our custom keypad) for 5 seconds to power off the device, Is there anyway I can reduce this time to 1 second? will reducing this effect other functionalities like waking the lcd console when it enters into blank state after 15 minutes of inactivity?

 

I've found a logind.conf file in systemd (/etc/systemd/logind.conf) 

where these two lines caught my eye 

 

#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff

 

I changed the delay to 1 but there is no change in the power off time

Is there any driver file I need to modify to achieve this?

Outcomes