diff options
Diffstat (limited to 'Documentation/power/states.txt')
-rw-r--r-- | Documentation/power/states.txt | 62 |
1 files changed, 40 insertions, 22 deletions
diff --git a/Documentation/power/states.txt b/Documentation/power/states.txt index 50f3ef9177c1..8a39ce45d8a0 100644 --- a/Documentation/power/states.txt +++ b/Documentation/power/states.txt | |||
@@ -8,25 +8,43 @@ for each state. | |||
8 | 8 | ||
9 | The states are represented by strings that can be read or written to the | 9 | The states are represented by strings that can be read or written to the |
10 | /sys/power/state file. Those strings may be "mem", "standby", "freeze" and | 10 | /sys/power/state file. Those strings may be "mem", "standby", "freeze" and |
11 | "disk", where the last one always represents hibernation (Suspend-To-Disk) and | 11 | "disk", where the last three always represent Power-On Suspend (if supported), |
12 | the meaning of the remaining ones depends on the relative_sleep_states command | 12 | Suspend-To-Idle and hibernation (Suspend-To-Disk), respectively. |
13 | line argument. | 13 | |
14 | 14 | The meaning of the "mem" string is controlled by the /sys/power/mem_sleep file. | |
15 | For relative_sleep_states=1, the strings "mem", "standby" and "freeze" label the | 15 | It contains strings representing the available modes of system suspend that may |
16 | available non-hibernation sleep states from the deepest to the shallowest, | 16 | be triggered by writing "mem" to /sys/power/state. These modes are "s2idle" |
17 | respectively. In that case, "mem" is always present in /sys/power/state, | 17 | (Suspend-To-Idle), "shallow" (Power-On Suspend) and "deep" (Suspend-To-RAM). |
18 | because there is at least one non-hibernation sleep state in every system. If | 18 | The "s2idle" mode is always available, while the other ones are only available |
19 | the given system supports two non-hibernation sleep states, "standby" is present | 19 | if supported by the platform (if not supported, the strings representing them |
20 | in /sys/power/state in addition to "mem". If the system supports three | 20 | are not present in /sys/power/mem_sleep). The string representing the suspend |
21 | non-hibernation sleep states, "freeze" will be present in /sys/power/state in | 21 | mode to be used subsequently is enclosed in square brackets. Writing one of |
22 | addition to "mem" and "standby". | 22 | the other strings present in /sys/power/mem_sleep to it causes the suspend mode |
23 | 23 | to be used subsequently to change to the one represented by that string. | |
24 | For relative_sleep_states=0, which is the default, the following descriptions | 24 | |
25 | apply. | 25 | Consequently, there are two ways to cause the system to go into the |
26 | 26 | Suspend-To-Idle sleep state. The first one is to write "freeze" directly to | |
27 | state: Suspend-To-Idle | 27 | /sys/power/state. The second one is to write "s2idle" to /sys/power/mem_sleep |
28 | and then to wrtie "mem" to /sys/power/state. Similarly, there are two ways | ||
29 | to cause the system to go into the Power-On Suspend sleep state (the strings to | ||
30 | write to the control files in that case are "standby" or "shallow" and "mem", | ||
31 | respectively) if that state is supported by the platform. In turn, there is | ||
32 | only one way to cause the system to go into the Suspend-To-RAM state (write | ||
33 | "deep" into /sys/power/mem_sleep and "mem" into /sys/power/state). | ||
34 | |||
35 | The default suspend mode (ie. the one to be used without writing anything into | ||
36 | /sys/power/mem_sleep) is either "deep" (if Suspend-To-RAM is supported) or | ||
37 | "s2idle", but it can be overridden by the value of the "mem_sleep_default" | ||
38 | parameter in the kernel command line. On some ACPI-based systems, depending on | ||
39 | the information in the FADT, the default may be "s2idle" even if Suspend-To-RAM | ||
40 | is supported. | ||
41 | |||
42 | The properties of all of the sleep states are described below. | ||
43 | |||
44 | |||
45 | State: Suspend-To-Idle | ||
28 | ACPI state: S0 | 46 | ACPI state: S0 |
29 | Label: "freeze" | 47 | Label: "s2idle" ("freeze") |
30 | 48 | ||
31 | This state is a generic, pure software, light-weight, system sleep state. | 49 | This state is a generic, pure software, light-weight, system sleep state. |
32 | It allows more energy to be saved relative to runtime idle by freezing user | 50 | It allows more energy to be saved relative to runtime idle by freezing user |
@@ -35,13 +53,13 @@ lower-power than available at run time), such that the processors can | |||
35 | spend more time in their idle states. | 53 | spend more time in their idle states. |
36 | 54 | ||
37 | This state can be used for platforms without Power-On Suspend/Suspend-to-RAM | 55 | This state can be used for platforms without Power-On Suspend/Suspend-to-RAM |
38 | support, or it can be used in addition to Suspend-to-RAM (memory sleep) | 56 | support, or it can be used in addition to Suspend-to-RAM to provide reduced |
39 | to provide reduced resume latency. It is always supported. | 57 | resume latency. It is always supported. |
40 | 58 | ||
41 | 59 | ||
42 | State: Standby / Power-On Suspend | 60 | State: Standby / Power-On Suspend |
43 | ACPI State: S1 | 61 | ACPI State: S1 |
44 | Label: "standby" | 62 | Label: "shallow" ("standby") |
45 | 63 | ||
46 | This state, if supported, offers moderate, though real, power savings, while | 64 | This state, if supported, offers moderate, though real, power savings, while |
47 | providing a relatively low-latency transition back to a working system. No | 65 | providing a relatively low-latency transition back to a working system. No |
@@ -58,7 +76,7 @@ state. | |||
58 | 76 | ||
59 | State: Suspend-to-RAM | 77 | State: Suspend-to-RAM |
60 | ACPI State: S3 | 78 | ACPI State: S3 |
61 | Label: "mem" | 79 | Label: "deep" |
62 | 80 | ||
63 | This state, if supported, offers significant power savings as everything in the | 81 | This state, if supported, offers significant power savings as everything in the |
64 | system is put into a low-power state, except for memory, which should be placed | 82 | system is put into a low-power state, except for memory, which should be placed |