|
本帖最后由 Willian.Mo 于 2015-8-6 11:07 编辑
介绍:
Linux睡眠有两种方式:mem或standby,这两种方式都是suspend to RAM,简称STR,只是standby耗电会更多一些,而返回到正常工作方式时间更短。
1.睡眠命令:
[mw_shl_code=bash,true]# echo mem > /sys/power/state
或
# echo standby > /sys/power/state
PM: Syncing filesystems ... done.
mmc1: card 2109 removed
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Suspending console(s) (use no_console_suspend to debug)[/mw_shl_code]
2.唤醒:
按下开发板上的USER(K3)按键即可唤醒系统,输出如下:
[mw_shl_code=bash,true]hdmi conntect flag: 0x00
PM: suspend of devices complete after 222.463 msecs
PM: late suspend of devices complete after 0.247 msecs
PM: noirq suspend of devices complete after 0.291 msecs
PM: noirq resume of devices complete after 0.237 msecs
PM: early resume of devices complete after 0.250 msecs
usb usb2: root hub lost power or was reset
hdmi conntect flag: 0x00
PM: resume of devices complete after 500.111 msecs
Restarting tasks ... done.[/mw_shl_code]3.MYD-SAMA5D3X系统功耗:
正常运行(没接LCD):约5V/350mA
正常运行(接上LCD):约5V/395mA
睡眠:约5V/208mA
|
|