howto: imx8mp handle shutdown

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

howto: imx8mp handle shutdown

ソリューションへジャンプ
827件の閲覧回数
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 件の賞賛
返信
1 解決策
796件の閲覧回数
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

元の投稿で解決策を見る

3 返答(返信)
797件の閲覧回数
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

793件の閲覧回数
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 件の賞賛
返信
784件の閲覧回数
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 件の賞賛
返信