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

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

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

跳至解决方案
1,186 次查看
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 项奖励
1 解答
1,014 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
1,015 次查看
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,014 次查看
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 项奖励