diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-26 07:40:59 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-26 07:40:59 -0400 |
commit | 0399d4db3edf5c58b6ec7f672f089f5085e49ed5 (patch) | |
tree | 3948336693fa6a945cd54787b205cbcbcd8afa5d /Documentation/ABI/testing/sysfs-power | |
parent | 43e8317b0bba1d6eb85f38a4a233d82d7c20d732 (diff) |
PM / sleep: Introduce command line argument for sleep state enumeration
On some systems the platform doesn't support neither
PM_SUSPEND_MEM nor PM_SUSPEND_STANDBY, so PM_SUSPEND_FREEZE is the
only available system sleep state. However, some user space frameworks
only use the "mem" and (sometimes) "standby" sleep state labels, so
the users of those systems need to modify user space in order to be
able to use system suspend at all and that is not always possible.
For this reason, add a new kernel command line argument,
relative_sleep_states, allowing the users of those systems to change
the way in which the kernel assigns labels to system sleep states.
Namely, for relative_sleep_states=1, the "mem", "standby" and "freeze"
labels will enumerate the available system sleem states from the
deepest to the shallowest, respectively, so that "mem" is always
present in /sys/power/state and the other state strings may or may
not be presend depending on what is supported by the platform.
Update system sleep states documentation to reflect this change.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-power')
-rw-r--r-- | Documentation/ABI/testing/sysfs-power | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/Documentation/ABI/testing/sysfs-power b/Documentation/ABI/testing/sysfs-power index 64c9276e9421..f4551816329e 100644 --- a/Documentation/ABI/testing/sysfs-power +++ b/Documentation/ABI/testing/sysfs-power | |||
@@ -7,19 +7,30 @@ Description: | |||
7 | subsystem. | 7 | subsystem. |
8 | 8 | ||
9 | What: /sys/power/state | 9 | What: /sys/power/state |
10 | Date: August 2006 | 10 | Date: May 2014 |
11 | Contact: Rafael J. Wysocki <rjw@rjwysocki.net> | 11 | Contact: Rafael J. Wysocki <rjw@rjwysocki.net> |
12 | Description: | 12 | Description: |
13 | The /sys/power/state file controls the system power state. | 13 | The /sys/power/state file controls system sleep states. |
14 | Reading from this file returns what states are supported, | 14 | Reading from this file returns the available sleep state |
15 | which is hard-coded to 'freeze' (Low-Power Idle), 'standby' | 15 | labels, which may be "mem", "standby", "freeze" and "disk" |
16 | (Power-On Suspend), 'mem' (Suspend-to-RAM), and 'disk' | 16 | (hibernation). The meanings of the first three labels depend on |
17 | (Suspend-to-Disk). | 17 | the relative_sleep_states command line argument as follows: |
18 | 1) relative_sleep_states = 1 | ||
19 | "mem", "standby", "freeze" represent non-hibernation sleep | ||
20 | states from the deepest ("mem", always present) to the | ||
21 | shallowest ("freeze"). "standby" and "freeze" may or may | ||
22 | not be present depending on the capabilities of the | ||
23 | platform. "freeze" can only be present if "standby" is | ||
24 | present. | ||
25 | 2) relative_sleep_states = 0 (default) | ||
26 | "mem" - "suspend-to-RAM", present if supported. | ||
27 | "standby" - "power-on suspend", present if supported. | ||
28 | "freeze" - "suspend-to-idle", always present. | ||
18 | 29 | ||
19 | Writing to this file one of these strings causes the system to | 30 | Writing to this file one of these strings causes the system to |
20 | transition into that state. Please see the file | 31 | transition into the corresponding state, if available. See |
21 | Documentation/power/states.txt for a description of each of | 32 | Documentation/power/states.txt for a description of what |
22 | these states. | 33 | "suspend-to-RAM", "power-on suspend" and "suspend-to-idle" mean. |
23 | 34 | ||
24 | What: /sys/power/disk | 35 | What: /sys/power/disk |
25 | Date: September 2006 | 36 | Date: September 2006 |