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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,417 Views
sujay1
Contributor V

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?

0 Kudos
Reply
1 Solution
1,245 Views
igorpadykov
NXP Employee
NXP Employee

Hi Sujay

ONOFF pin behaviour is described in sect.10.5 ONOFF (Button)

i.MX 6SoloLite Applications Processor Reference Manual

"Button presses greater than 5 seconds, when the SoC is powered, results in a direct
hardware power down request signal to the power IC..".

Unfortunately there is no option to change time.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
1,246 Views
igorpadykov
NXP Employee
NXP Employee

Hi Sujay

ONOFF pin behaviour is described in sect.10.5 ONOFF (Button)

i.MX 6SoloLite Applications Processor Reference Manual

"Button presses greater than 5 seconds, when the SoC is powered, results in a direct
hardware power down request signal to the power IC..".

Unfortunately there is no option to change time.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,245 Views
sujay1
Contributor V

Hi Igor

Thanks for the reply, I looked into that and you're right looks like there is no work around except for modifying the logind.conf file in (/etc/systemd/logind.conf)

If we change

HandlePowerKey=ignore to

HandlePowerKey=suspend 

the board suspends on single press that's the best we could do.

0 Kudos
Reply