tmp_suning_uos_patched/Documentation/power
Rafael J. Wysocki 406e79385f PM / sleep: System sleep state selection interface rework
There are systems in which the platform doesn't support any special
sleep states, so suspend-to-idle (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 may be a pain in practice.

Commit 0399d4db3e (PM / sleep: Introduce command line argument for
sleep state enumeration) attempted to address this problem by adding
a command line argument to change the meaning of the "mem" string in
/sys/power/state to make it trigger suspend-to-idle (instead of
suspend-to-RAM).

However, there also are systems in which the platform does support
special sleep states, but suspend-to-idle is the preferred one anyway
(it even may save more energy than the platform-provided sleep states
in some cases) and the above commit doesn't help in those cases.

For this reason, rework the system sleep state selection interface
again (but preserve backwards compatibiliby).  Namely, add a new
sysfs file, /sys/power/mem_sleep, that will control the system
suspend mode triggered by writing "mem" to /sys/power/state (in
analogy with what /sys/power/disk does for hibernation).  Make it
select suspend-to-RAM ("deep" sleep) by default (if supported) and
fall back to suspend-to-idle ("s2idle") otherwise and add a new
command line argument, mem_sleep_default, allowing that default to
be overridden if need be.

At the same time, drop the relative_sleep_states command line
argument that doesn't make sense any more.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mario Limonciello <mario.limonciello@dell.com>
2016-11-21 22:45:40 +01:00
..
powercap
regulator
00-INDEX
apm-acpi.txt
basic-pm-debugging.txt PM / sleep: Update some system sleep documentation 2016-08-13 02:54:04 +02:00
charger-manager.txt
devices.txt
drivers-testing.txt
freezing-of-tasks.txt
interface.txt PM / sleep: Update some system sleep documentation 2016-08-13 02:54:04 +02:00
notifiers.txt
opp.txt
pci.txt PCI / PM: Fix small typo in documentation 2015-12-09 01:35:30 +01:00
pm_qos_interface.txt
power_supply_class.txt power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00
runtime_pm.txt PM / runtime: Document steps for device removal 2016-04-05 03:46:59 +02:00
s2ram.txt
states.txt PM / sleep: System sleep state selection interface rework 2016-11-21 22:45:40 +01:00
suspend-and-cpuhotplug.txt
suspend-and-interrupts.txt
swsusp-and-swap-files.txt
swsusp-dmcrypt.txt
swsusp.txt
tricks.txt
userland-swsusp.txt
video.txt