📄 states.txt
字号:
System Power Management StatesThe kernel supports three power management states generically, thougheach is dependent on platform support code to implement the low-leveldetails for each state. This file describes each state, what they arecommonly called, what ACPI state they map to, and what string to writeto /sys/power/state to enter that stateState: Standby / Power-On SuspendACPI State: S1String: "standby"This state offers minimal, though real, power savings, while providinga very low-latency transition back to a working system. No operatingstate is lost (the CPU retains power), so the system easily starts upagain where it left off. We try to put devices in a low-power state equivalent to D1, whichalso offers low power savings, but low resume latency. Not all devicessupport D1, and those that don't are left on. A transition from Standby to the On state should take about 1-2seconds. State: Suspend-to-RAMACPI State: S3String: "mem"This state offers significant power savings as everything in thesystem is put into a low-power state, except for memory, which isplaced in self-refresh mode to retain its contents. System and device state is saved and kept in memory. All devices aresuspended and put into D3. In many cases, all peripheral buses losepower when entering STR, so devices must be able to handle thetransition back to the On state. For at least ACPI, STR requires some minimal boot-strapping code toresume the system from STR. This may be true on other platforms. A transition from Suspend-to-RAM to the On state should take about3-5 seconds. State: Suspend-to-diskACPI State: S4String: "disk"This state offers the greatest power savings, and can be used even inthe absence of low-level platform support for power management. Thisstate operates similarly to Suspend-to-RAM, but includes a final stepof writing memory contents to disk. On resume, this is read and memoryis restored to its pre-suspend state. STD can be handled by the firmware or the kernel. If it is handled bythe firmware, it usually requires a dedicated partition that must besetup via another operating system for it to use. Despite theinconvenience, this method requires minimal work by the kernel, sincethe firmware will also handle restoring memory contents on resume. For suspend-to-disk, a mechanism called swsusp called 'swsusp' (SwapSuspend) is used to write memory contents to free swap space.swsusp has some restrictive requirements, but should work in mostcases. Some, albeit outdated, documentation can be found inDocumentation/power/swsusp.txt. Alternatively, userspace can do mostof the actual suspend to disk work, see userland-swsusp.txt.Once memory state is written to disk, the system may either enter alow-power state (like ACPI S4), or it may simply power down. Poweringdown offers greater savings, and allows this mechanism to work on anysystem. However, entering a real low-power state allows the user totrigger wake up events (e.g. pressing a key or opening a laptop lid).A transition from Suspend-to-Disk to the On state should take about 30seconds, though it's typically a bit more with the currentimplementation.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -