How to make the CPU into suspend and resume ?

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

How to make the CPU into suspend and resume ?

2,205 次查看
t2865k5
Contributor I

Dear NXP ,

BSP version:5.10.9

HW: imx8mplus

How to make the CPU into suspend and resume ? Is there a linux command I can use?

Examples: 

suspend :  echo 1 > sys/.......

resume: echo 0 > sys/........

 

0 项奖励
回复
5 回复数

2,182 次查看
t2865k5
Contributor I

Dear BiyongSUN ,

We are discussing suspend/resume for imx8mplus platform (Arm Cortex-A53 processor) .

 

0 项奖励
回复

2,195 次查看
t2865k5
Contributor I

Dear BiyongSUN,

How to check current state ? Is it suspend or resume ? 

Example :

cat /sys/......

Or there is a Linux app can check ? 

0 项奖励
回复

2,179 次查看
BiyongSUN
NXP Employee
NXP Employee

Or there is a Linux app can check ?

 

Linux is suspend, how a linux app to check the linux suspend status? 

 

0 项奖励
回复

2,188 次查看
BiyongSUN
NXP Employee
NXP Employee

If it is suspend, you debug console cannot input. 

and you can measure  hardware PMIC_STBY_REQ pin to know. 

 

Which i.MX processor you are talking about CPU? 

If it is X86/X64, it is not forum for  X86/X64.

0 项奖励
回复

2,201 次查看
BiyongSUN
NXP Employee
NXP Employee

echo +30 > /sys/class/rtc/rtc0/wakealarm

echo mem > /sys/power/state

 

 

wait 30 seconds, the system will wakeup/resume by rtc interrupt. It is pure linux knowledge.

0 项奖励
回复