How do I put iMX28 in standby/sleep-mode?

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

How do I put iMX28 in standby/sleep-mode?

跳至解决方案
2,716 次查看
SamGandhi
Contributor II

Hello,

 

I am working on iMX28 design for industrial application (no lcd display etc.) We are running linux 3.1.X on this board. I am interested in exploring possibility of putting MX28 into standby/sleep-mode. I am looking at i.MX28 reference manual (#MCIMX28RM, Rev 1, 2010) and I can't seem to find section/register that describes how to activate those modes. Is there other document that describes how to do power management on i.MX28.

 

Also has anyone done this successfully while running Linux?

 

-Sam

标记 (1)
0 项奖励
回复
1 解答
1,558 次查看
bonzo
NXP Employee
NXP Employee

Try testing standby modes with the usr/sbin/rtcwake utility.

 

$ rtcwake –d /dev/rtc0 –s 5 –m standby

 

-s 5 sets the number of seconds before the system wakes up.  –m standby places it into standby mode (sleep is another option).

 

The source for rtcwake can be found in ltib/rpm/BUILD/util-linux-ng-2.13/sys-utils after extracting it from ltib.  You may need to set some kernel options as well to include this in the rootfs  (I forgot which ones, but it may be part of imx-test).  The source code illustrates how to handle sleep and RTC wakeup.  Adding another wakeup source (i.e. Modem) should be relatively straight-forward.

Also, look at the rtc-test source code in ltib/rpm/BUILD/imx-test-10.12.01/test/mxc_rtc for more examples.

 

Be sure to apply the attached patches or the USB will stop working after a while when going from runàstandbyàrun. (SDK 1012).

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,559 次查看
bonzo
NXP Employee
NXP Employee

Try testing standby modes with the usr/sbin/rtcwake utility.

 

$ rtcwake –d /dev/rtc0 –s 5 –m standby

 

-s 5 sets the number of seconds before the system wakes up.  –m standby places it into standby mode (sleep is another option).

 

The source for rtcwake can be found in ltib/rpm/BUILD/util-linux-ng-2.13/sys-utils after extracting it from ltib.  You may need to set some kernel options as well to include this in the rootfs  (I forgot which ones, but it may be part of imx-test).  The source code illustrates how to handle sleep and RTC wakeup.  Adding another wakeup source (i.e. Modem) should be relatively straight-forward.

Also, look at the rtc-test source code in ltib/rpm/BUILD/imx-test-10.12.01/test/mxc_rtc for more examples.

 

Be sure to apply the attached patches or the USB will stop working after a while when going from runàstandbyàrun. (SDK 1012).

0 项奖励
回复
1,558 次查看
SamGandhi
Contributor II

Hello Fabio,

e

cat /sys/power/state already shows mem as its value.

I also noticed that pm.c in 2.6.35 kernel that freescale officially releases as part of its BSP has lot more features but they don't seemed to be merged upstream to 3.1.X kernel.

BTW, is there a freescale hosted git/svn repository that one can look if one wanted to get latest code?

Sam

0 项奖励
回复
1,558 次查看
fabio_estevam
NXP Employee
NXP Employee

I haven´t tried this on MX28, but I think you can do:

 

echo mem > /sys/power/state

 

Regards,

 

Fabio Estevam

0 项奖励
回复