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?
已解决! 转到解答。
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
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.