How to Run a script after leaving sleep mode?

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

How to Run a script after leaving sleep mode?

Jump to solution
684 Views
erenbasturk
Contributor II

Hi All,

I have been using yocto based image on an IMX6 board. I want to run a script when the system wake up from sleep mode? Do you have any suggestion?

Thanks

Labels (2)
0 Kudos
1 Solution
502 Views
igorpadykov
NXP Employee
NXP Employee

Hi eren

after resuming, next command after "echo mem > /sys/power/state "

is executed, so one can add necessary command after it as in attached

script example.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
503 Views
igorpadykov
NXP Employee
NXP Employee

Hi eren

after resuming, next command after "echo mem > /sys/power/state "

is executed, so one can add necessary command after it as in attached

script example.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos