How to implement the graceful shutdown on IMX8M plus

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

How to implement the graceful shutdown on IMX8M plus

525 Views
vinay_hasyagar
Contributor III

Hi, we are using iMX8M plus evk. We want to implement graceful shut down when ONOFF button is pressed. The current implementation in the default BSP is, when the ONOFF button is held more than 5s then the system is going to turn off (forceful shut down)

We want to implement a graceful shut down where if we hold the ONOFF button less than 5s then processor should send a PMIC_ON_REQ to external PMIC chip so that system can be turned off. But it should be like graceful shutdown where software can get time to close all the background tasks before system gets tuned off. 

How exactly we can implement this? In which are the files we need to modify? 

Thanks in advance.

Labels (1)
0 Kudos
Reply
1 Reply

497 Views
hector_delgado
NXP TechSupport
NXP TechSupport

Hi @vinay_hasyagar ,

Implementing a shutdown sequence as you describe would be software restricted. That means if the OS freezes completely, this custom shutdown sequence will not work, but if the intended function of this is when the OS is working completely fine, then there would be no issue.

 

Let me know if that would work for you.

Best regards,
Hector.

0 Kudos
Reply