howto: imx8mp handle shutdown

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

howto: imx8mp handle shutdown

Jump to solution
807 Views
Ralf_Rademacher
Contributor III

i want to shutdown my system on POWER_KEY event.

but i recognized that there was a patch from nxp called: 0020-logind.conf-Set-HandlePowerKey-to-ignore.patch 

Subject: [PATCH] logind.conf: Set HandlePowerKey to ignore

For i.MX, we don't want systemd to handle the power key.

 

what is the correct way to shutdown instead?

i tried HandlePowerKey=poweroff, what worked as expected, but if there is a better way, please let me know.

 

Best regards

Ralf

0 Kudos
Reply
1 Solution
776 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

I think systemd shutting down the system is the best solution to make sure that the software components are all terminated properly without causing additional problems.

Best Regards,
Zhiming

View solution in original post

3 Replies
777 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

I think systemd shutting down the system is the best solution to make sure that the software components are all terminated properly without causing additional problems.

Best Regards,
Zhiming

773 Views
Ralf_Rademacher
Contributor III
Thank you very much for your answer!

Did I understand you correctly that the best way would be to set HandlePowerKey=poweroff in logind.conf?


Many thanks in advance

Ralf
0 Kudos
Reply
764 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Yes. If you are shutting down normally, use systemd; if you need to force a shutdown and don't care if the runtime data is intact, consider shutting down using the hardware key associated with pmic.

Best Regards,
Zhiming

0 Kudos
Reply