Standby and suspend on memory

本文介绍了Linux系统的电源管理子系统,并详细解释了如何通过sysfs接口控制系统的电源状态,包括待机(Power-On Suspend)、内存休眠(Suspend-to-RAM)及磁盘休眠(Suspend-to-Disk)等模式的配置与使用。
http://www.stlinux.com/advanced/power-management/features/standby
http://www.stlinux.com/advanced/power-management/features


The Linux power management subsystem shows a unified sysfs interface to userspace.The interface exists in /sys/power/ directory.
The file: /sys/power/state controls the system power state.A reading from this file, will return what states are supported, which are hard-coded to:
  • standby (Power-On Suspend),
  • mem (Power-On Suspend-to-RAM)
  • disk (Power-Off Suspend-to-Disk)
To add the standby and suspend on memory support in the kernel it is necessary to enable:
 Power management option ---> Power management support
 Power management option ---> Suspend to RAM and standby
To enter in standby type on the available target:
 target# echo -n standby > /sys/pm/state
To enter in suspend on memory type on the available target:
   target# echo -n mem > /sys/pm/state


Bibliography
  • Linux Symposium 2002: The Linux Kernel Device Model
  • Linux Symposium 2003: Linux Kernel Power Management
  • Linux Symposium 2005: The sysfs Filesystem
  • Linux Symposium 2008: Suspend-to-RAM in Linux
  • Linux Kernel Weekly: A new suspend/hibernate infrastructure

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值