How to Run a script after leaving sleep mode?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to Run a script after leaving sleep mode?

跳至解决方案
1,321 次查看
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

标签 (2)
0 项奖励
回复
1 解答
1,139 次查看
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 项奖励
回复
1 回复
1,140 次查看
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 项奖励
回复