162306a36Sopenharmony_ciWhat:		/sys/power/
262306a36Sopenharmony_ciDate:		August 2006
362306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci		The /sys/power directory will contain files that will
662306a36Sopenharmony_ci		provide a unified interface to the power management
762306a36Sopenharmony_ci		subsystem.
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciWhat:		/sys/power/state
1062306a36Sopenharmony_ciDate:		November 2016
1162306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
1262306a36Sopenharmony_ciDescription:
1362306a36Sopenharmony_ci		The /sys/power/state file controls system sleep states.
1462306a36Sopenharmony_ci		Reading from this file returns the available sleep state
1562306a36Sopenharmony_ci		labels, which may be "mem" (suspend), "standby" (power-on
1662306a36Sopenharmony_ci		suspend), "freeze" (suspend-to-idle) and "disk" (hibernation).
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci		Writing one of the above strings to this file causes the system
1962306a36Sopenharmony_ci		to transition into the corresponding state, if available.
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci		See Documentation/admin-guide/pm/sleep-states.rst for more
2262306a36Sopenharmony_ci		information.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciWhat:		/sys/power/mem_sleep
2562306a36Sopenharmony_ciDate:		November 2016
2662306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
2762306a36Sopenharmony_ciDescription:
2862306a36Sopenharmony_ci		The /sys/power/mem_sleep file controls the operating mode of
2962306a36Sopenharmony_ci		system suspend.  Reading from it returns the available modes
3062306a36Sopenharmony_ci		as "s2idle" (always present), "shallow" and "deep" (present if
3162306a36Sopenharmony_ci		supported).  The mode that will be used on subsequent attempts
3262306a36Sopenharmony_ci		to suspend the system (by writing "mem" to the /sys/power/state
3362306a36Sopenharmony_ci		file described above) is enclosed in square brackets.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci		Writing one of the above strings to this file causes the mode
3662306a36Sopenharmony_ci		represented by it to be used on subsequent attempts to suspend
3762306a36Sopenharmony_ci		the system.
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci		See Documentation/admin-guide/pm/sleep-states.rst for more
4062306a36Sopenharmony_ci		information.
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ciWhat:		/sys/power/disk
4362306a36Sopenharmony_ciDate:		September 2006
4462306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
4562306a36Sopenharmony_ciDescription:
4662306a36Sopenharmony_ci		The /sys/power/disk file controls the operating mode of the
4762306a36Sopenharmony_ci		suspend-to-disk mechanism.  Reading from this file returns
4862306a36Sopenharmony_ci		the name of the method by which the system will be put to
4962306a36Sopenharmony_ci		sleep on the next suspend.  There are four methods supported:
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci		'firmware' - means that the memory image will be saved to disk
5262306a36Sopenharmony_ci		by some firmware, in which case we also assume that the
5362306a36Sopenharmony_ci		firmware will handle the system suspend.
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci		'platform' - the memory image will be saved by the kernel and
5662306a36Sopenharmony_ci		the system will be put to sleep by the platform driver (e.g.
5762306a36Sopenharmony_ci		ACPI or other PM registers).
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ci		'shutdown' - the memory image will be saved by the kernel and
6062306a36Sopenharmony_ci		the system will be powered off.
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci		'reboot' - the memory image will be saved by the kernel and
6362306a36Sopenharmony_ci		the system will be rebooted.
6462306a36Sopenharmony_ci
6562306a36Sopenharmony_ci		Additionally, /sys/power/disk can be used to turn on one of the
6662306a36Sopenharmony_ci		two testing modes of the suspend-to-disk mechanism: 'testproc'
6762306a36Sopenharmony_ci		or 'test'.  If the suspend-to-disk mechanism is in the
6862306a36Sopenharmony_ci		'testproc' mode, writing 'disk' to /sys/power/state will cause
6962306a36Sopenharmony_ci		the kernel to disable nonboot CPUs and freeze tasks, wait for 5
7062306a36Sopenharmony_ci		seconds, unfreeze tasks and enable nonboot CPUs.  If it is in
7162306a36Sopenharmony_ci		the 'test' mode, writing 'disk' to /sys/power/state will cause
7262306a36Sopenharmony_ci		the kernel to disable nonboot CPUs and freeze tasks, shrink
7362306a36Sopenharmony_ci		memory, suspend devices, wait for 5 seconds, resume devices,
7462306a36Sopenharmony_ci		unfreeze tasks and enable nonboot CPUs.  Then, we are able to
7562306a36Sopenharmony_ci		look in the log messages and work out, for example, which code
7662306a36Sopenharmony_ci		is being slow and which device drivers are misbehaving.
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ci		The suspend-to-disk method may be chosen by writing to this
7962306a36Sopenharmony_ci		file one of the accepted strings:
8062306a36Sopenharmony_ci
8162306a36Sopenharmony_ci		- 'firmware'
8262306a36Sopenharmony_ci		- 'platform'
8362306a36Sopenharmony_ci		- 'shutdown'
8462306a36Sopenharmony_ci		- 'reboot'
8562306a36Sopenharmony_ci		- 'testproc'
8662306a36Sopenharmony_ci		- 'test'
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ci		It will only change to 'firmware' or 'platform' if the system
8962306a36Sopenharmony_ci		supports that.
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ciWhat:		/sys/power/image_size
9262306a36Sopenharmony_ciDate:		August 2006
9362306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
9462306a36Sopenharmony_ciDescription:
9562306a36Sopenharmony_ci		The /sys/power/image_size file controls the size of the image
9662306a36Sopenharmony_ci		created by the suspend-to-disk mechanism.  It can be written a
9762306a36Sopenharmony_ci		string representing a non-negative integer that will be used
9862306a36Sopenharmony_ci		as an upper limit of the image size, in bytes.  The kernel's
9962306a36Sopenharmony_ci		suspend-to-disk code will do its best to ensure the image size
10062306a36Sopenharmony_ci		will not exceed this number.  However, if it turns out to be
10162306a36Sopenharmony_ci		impossible, the kernel will try to suspend anyway using the
10262306a36Sopenharmony_ci		smallest image possible.  In particular, if "0" is written to
10362306a36Sopenharmony_ci		this file, the suspend image will be as small as possible.
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci		Reading from this file will display the current image size
10662306a36Sopenharmony_ci		limit, which is set to around 2/5 of available RAM by default.
10762306a36Sopenharmony_ci
10862306a36Sopenharmony_ciWhat:		/sys/power/pm_trace
10962306a36Sopenharmony_ciDate:		August 2006
11062306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
11162306a36Sopenharmony_ciDescription:
11262306a36Sopenharmony_ci		The /sys/power/pm_trace file controls the code which saves the
11362306a36Sopenharmony_ci		last PM event point in the RTC across reboots, so that you can
11462306a36Sopenharmony_ci		debug a machine that just hangs during suspend (or more
11562306a36Sopenharmony_ci		commonly, during resume).  Namely, the RTC is only used to save
11662306a36Sopenharmony_ci		the last PM event point if this file contains '1'.  Initially
11762306a36Sopenharmony_ci		it contains '0' which may be changed to '1' by writing a
11862306a36Sopenharmony_ci		string representing a nonzero integer into it.
11962306a36Sopenharmony_ci
12062306a36Sopenharmony_ci		To use this debugging feature you should attempt to suspend
12162306a36Sopenharmony_ci		the machine, then reboot it and run::
12262306a36Sopenharmony_ci
12362306a36Sopenharmony_ci		  dmesg -s 1000000 | grep 'hash matches'
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ci		If you do not get any matches (or they appear to be false
12662306a36Sopenharmony_ci		positives), it is possible that the last PM event point
12762306a36Sopenharmony_ci		referred to a device created by a loadable kernel module.  In
12862306a36Sopenharmony_ci		this case cat /sys/power/pm_trace_dev_match (see below) after
12962306a36Sopenharmony_ci		your system is started up and the kernel modules are loaded.
13062306a36Sopenharmony_ci
13162306a36Sopenharmony_ci		CAUTION: Using it will cause your machine's real-time (CMOS)
13262306a36Sopenharmony_ci		clock to be set to a random invalid time after a resume.
13362306a36Sopenharmony_ci
13462306a36Sopenharmony_ciWhat;		/sys/power/pm_trace_dev_match
13562306a36Sopenharmony_ciDate:		October 2010
13662306a36Sopenharmony_ciContact:	James Hogan <jhogan@kernel.org>
13762306a36Sopenharmony_ciDescription:
13862306a36Sopenharmony_ci		The /sys/power/pm_trace_dev_match file contains the name of the
13962306a36Sopenharmony_ci		device associated with the last PM event point saved in the RTC
14062306a36Sopenharmony_ci		across reboots when pm_trace has been used.  More precisely it
14162306a36Sopenharmony_ci		contains the list of current devices (including those
14262306a36Sopenharmony_ci		registered by loadable kernel modules since boot) which match
14362306a36Sopenharmony_ci		the device hash in the RTC at boot, with a newline after each
14462306a36Sopenharmony_ci		one.
14562306a36Sopenharmony_ci
14662306a36Sopenharmony_ci		The advantage of this file over the hash matches printed to the
14762306a36Sopenharmony_ci		kernel log (see /sys/power/pm_trace), is that it includes
14862306a36Sopenharmony_ci		devices created after boot by loadable kernel modules.
14962306a36Sopenharmony_ci
15062306a36Sopenharmony_ci		Due to the small hash size necessary to fit in the RTC, it is
15162306a36Sopenharmony_ci		possible that more than one device matches the hash, in which
15262306a36Sopenharmony_ci		case further investigation is required to determine which
15362306a36Sopenharmony_ci		device is causing the problem.  Note that genuine RTC clock
15462306a36Sopenharmony_ci		values (such as when pm_trace has not been used), can still
15562306a36Sopenharmony_ci		match a device and output its name here.
15662306a36Sopenharmony_ci
15762306a36Sopenharmony_ciWhat:		/sys/power/pm_async
15862306a36Sopenharmony_ciDate:		January 2009
15962306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
16062306a36Sopenharmony_ciDescription:
16162306a36Sopenharmony_ci		The /sys/power/pm_async file controls the switch allowing the
16262306a36Sopenharmony_ci		user space to enable or disable asynchronous suspend and resume
16362306a36Sopenharmony_ci		of devices.  If enabled, this feature will cause some device
16462306a36Sopenharmony_ci		drivers' suspend and resume callbacks to be executed in parallel
16562306a36Sopenharmony_ci		with each other and with the main suspend thread.  It is enabled
16662306a36Sopenharmony_ci		if this file contains "1", which is the default.  It may be
16762306a36Sopenharmony_ci		disabled by writing "0" to this file, in which case all devices
16862306a36Sopenharmony_ci		will be suspended and resumed synchronously.
16962306a36Sopenharmony_ci
17062306a36Sopenharmony_ciWhat:		/sys/power/wakeup_count
17162306a36Sopenharmony_ciDate:		July 2010
17262306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
17362306a36Sopenharmony_ciDescription:
17462306a36Sopenharmony_ci		The /sys/power/wakeup_count file allows user space to put the
17562306a36Sopenharmony_ci		system into a sleep state while taking into account the
17662306a36Sopenharmony_ci		concurrent arrival of wakeup events.  Reading from it returns
17762306a36Sopenharmony_ci		the current number of registered wakeup events and it blocks if
17862306a36Sopenharmony_ci		some wakeup events are being processed at the time the file is
17962306a36Sopenharmony_ci		read from.  Writing to it will only succeed if the current
18062306a36Sopenharmony_ci		number of wakeup events is equal to the written value and, if
18162306a36Sopenharmony_ci		successful, will make the kernel abort a subsequent transition
18262306a36Sopenharmony_ci		to a sleep state if any wakeup events are reported after the
18362306a36Sopenharmony_ci		write has returned.
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ciWhat:		/sys/power/reserved_size
18662306a36Sopenharmony_ciDate:		May 2011
18762306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
18862306a36Sopenharmony_ciDescription:
18962306a36Sopenharmony_ci		The /sys/power/reserved_size file allows user space to control
19062306a36Sopenharmony_ci		the amount of memory reserved for allocations made by device
19162306a36Sopenharmony_ci		drivers during the "device freeze" stage of hibernation.  It can
19262306a36Sopenharmony_ci		be written a string representing a non-negative integer that
19362306a36Sopenharmony_ci		will be used as the amount of memory to reserve for allocations
19462306a36Sopenharmony_ci		made by device drivers' "freeze" callbacks, in bytes.
19562306a36Sopenharmony_ci
19662306a36Sopenharmony_ci		Reading from this file will display the current value, which is
19762306a36Sopenharmony_ci		set to 1 MB by default.
19862306a36Sopenharmony_ci
19962306a36Sopenharmony_ciWhat:		/sys/power/autosleep
20062306a36Sopenharmony_ciDate:		April 2012
20162306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
20262306a36Sopenharmony_ciDescription:
20362306a36Sopenharmony_ci		The /sys/power/autosleep file can be written one of the strings
20462306a36Sopenharmony_ci		returned by reads from /sys/power/state.  If that happens, a
20562306a36Sopenharmony_ci		work item attempting to trigger a transition of the system to
20662306a36Sopenharmony_ci		the sleep state represented by that string is queued up.  This
20762306a36Sopenharmony_ci		attempt will only succeed if there are no active wakeup sources
20862306a36Sopenharmony_ci		in the system at that time.  After every execution, regardless
20962306a36Sopenharmony_ci		of whether or not the attempt to put the system to sleep has
21062306a36Sopenharmony_ci		succeeded, the work item requeues itself until user space
21162306a36Sopenharmony_ci		writes "off" to /sys/power/autosleep.
21262306a36Sopenharmony_ci
21362306a36Sopenharmony_ci		Reading from this file causes the last string successfully
21462306a36Sopenharmony_ci		written to it to be returned.
21562306a36Sopenharmony_ci
21662306a36Sopenharmony_ciWhat:		/sys/power/wake_lock
21762306a36Sopenharmony_ciDate:		February 2012
21862306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
21962306a36Sopenharmony_ciDescription:
22062306a36Sopenharmony_ci		The /sys/power/wake_lock file allows user space to create
22162306a36Sopenharmony_ci		wakeup source objects and activate them on demand (if one of
22262306a36Sopenharmony_ci		those wakeup sources is active, reads from the
22362306a36Sopenharmony_ci		/sys/power/wakeup_count file block or return false).  When a
22462306a36Sopenharmony_ci		string without white space is written to /sys/power/wake_lock,
22562306a36Sopenharmony_ci		it will be assumed to represent a wakeup source name.  If there
22662306a36Sopenharmony_ci		is a wakeup source object with that name, it will be activated
22762306a36Sopenharmony_ci		(unless active already).  Otherwise, a new wakeup source object
22862306a36Sopenharmony_ci		will be registered, assigned the given name and activated.
22962306a36Sopenharmony_ci		If a string written to /sys/power/wake_lock contains white
23062306a36Sopenharmony_ci		space, the part of the string preceding the white space will be
23162306a36Sopenharmony_ci		regarded as a wakeup source name and handled as descrived above.
23262306a36Sopenharmony_ci		The other part of the string will be regarded as a timeout (in
23362306a36Sopenharmony_ci		nanoseconds) such that the wakeup source will be automatically
23462306a36Sopenharmony_ci		deactivated after it has expired.  The timeout, if present, is
23562306a36Sopenharmony_ci		set regardless of the current state of the wakeup source object
23662306a36Sopenharmony_ci		in question.
23762306a36Sopenharmony_ci
23862306a36Sopenharmony_ci		Reads from this file return a string consisting of the names of
23962306a36Sopenharmony_ci		wakeup sources created with the help of it that are active at
24062306a36Sopenharmony_ci		the moment, separated with spaces.
24162306a36Sopenharmony_ci
24262306a36Sopenharmony_ci
24362306a36Sopenharmony_ciWhat:		/sys/power/wake_unlock
24462306a36Sopenharmony_ciDate:		February 2012
24562306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
24662306a36Sopenharmony_ciDescription:
24762306a36Sopenharmony_ci		The /sys/power/wake_unlock file allows user space to deactivate
24862306a36Sopenharmony_ci		wakeup sources created with the help of /sys/power/wake_lock.
24962306a36Sopenharmony_ci		When a string is written to /sys/power/wake_unlock, it will be
25062306a36Sopenharmony_ci		assumed to represent the name of a wakeup source to deactivate.
25162306a36Sopenharmony_ci
25262306a36Sopenharmony_ci		If a wakeup source object of that name exists and is active at
25362306a36Sopenharmony_ci		the moment, it will be deactivated.
25462306a36Sopenharmony_ci
25562306a36Sopenharmony_ci		Reads from this file return a string consisting of the names of
25662306a36Sopenharmony_ci		wakeup sources created with the help of /sys/power/wake_lock
25762306a36Sopenharmony_ci		that are inactive at the moment, separated with spaces.
25862306a36Sopenharmony_ci
25962306a36Sopenharmony_ciWhat:		/sys/power/pm_print_times
26062306a36Sopenharmony_ciDate:		May 2012
26162306a36Sopenharmony_ciContact:	Sameer Nanda <snanda@chromium.org>
26262306a36Sopenharmony_ciDescription:
26362306a36Sopenharmony_ci		The /sys/power/pm_print_times file allows user space to
26462306a36Sopenharmony_ci		control whether the time taken by devices to suspend and
26562306a36Sopenharmony_ci		resume is printed.  These prints are useful for hunting down
26662306a36Sopenharmony_ci		devices that take too long to suspend or resume.
26762306a36Sopenharmony_ci
26862306a36Sopenharmony_ci		Writing a "1" enables this printing while writing a "0"
26962306a36Sopenharmony_ci		disables it.  The default value is "0".  Reading from this file
27062306a36Sopenharmony_ci		will display the current value.
27162306a36Sopenharmony_ci
27262306a36Sopenharmony_ciWhat:		/sys/power/pm_wakeup_irq
27362306a36Sopenharmony_ciDate:		April 2015
27462306a36Sopenharmony_ciContact:	Alexandra Yates <alexandra.yates@linux.intel.org>
27562306a36Sopenharmony_ciDescription:
27662306a36Sopenharmony_ci		The /sys/power/pm_wakeup_irq file reports to user space the IRQ
27762306a36Sopenharmony_ci		number of the first wakeup interrupt (that is, the first
27862306a36Sopenharmony_ci		interrupt from an IRQ line armed for system wakeup) seen by the
27962306a36Sopenharmony_ci		kernel during the most recent system suspend/resume cycle.
28062306a36Sopenharmony_ci
28162306a36Sopenharmony_ci		This output is useful for system wakeup diagnostics of spurious
28262306a36Sopenharmony_ci		wakeup interrupts.
28362306a36Sopenharmony_ci
28462306a36Sopenharmony_ciWhat:		/sys/power/pm_debug_messages
28562306a36Sopenharmony_ciDate:		July 2017
28662306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
28762306a36Sopenharmony_ciDescription:
28862306a36Sopenharmony_ci		The /sys/power/pm_debug_messages file controls the printing
28962306a36Sopenharmony_ci		of debug messages from the system suspend/hiberbation
29062306a36Sopenharmony_ci		infrastructure to the kernel log.
29162306a36Sopenharmony_ci
29262306a36Sopenharmony_ci		Writing a "1" to this file enables the debug messages and
29362306a36Sopenharmony_ci		writing a "0" (default) to it disables them.  Reads from
29462306a36Sopenharmony_ci		this file return the current value.
29562306a36Sopenharmony_ci
29662306a36Sopenharmony_ciWhat:		/sys/power/resume_offset
29762306a36Sopenharmony_ciDate:		April 2018
29862306a36Sopenharmony_ciContact:	Mario Limonciello <mario.limonciello@outlook.com>
29962306a36Sopenharmony_ciDescription:
30062306a36Sopenharmony_ci		This file is used for telling the kernel an offset into a disk
30162306a36Sopenharmony_ci		to use when hibernating the system such as with a swap file.
30262306a36Sopenharmony_ci
30362306a36Sopenharmony_ci		Reads from this file will display the current offset
30462306a36Sopenharmony_ci		the kernel will be using on the next hibernation
30562306a36Sopenharmony_ci		attempt.
30662306a36Sopenharmony_ci
30762306a36Sopenharmony_ci		Using this sysfs file will override any values that were
30862306a36Sopenharmony_ci		set using the kernel command line for disk offset.
30962306a36Sopenharmony_ci
31062306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats
31162306a36Sopenharmony_ciDate:		July 2019
31262306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
31362306a36Sopenharmony_ciDescription:
31462306a36Sopenharmony_ci		The /sys/power/suspend_stats directory contains suspend related
31562306a36Sopenharmony_ci		statistics.
31662306a36Sopenharmony_ci
31762306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/success
31862306a36Sopenharmony_ciDate:		July 2019
31962306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
32062306a36Sopenharmony_ciDescription:
32162306a36Sopenharmony_ci		The /sys/power/suspend_stats/success file contains the number
32262306a36Sopenharmony_ci		of times entering system sleep state succeeded.
32362306a36Sopenharmony_ci
32462306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/fail
32562306a36Sopenharmony_ciDate:		July 2019
32662306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
32762306a36Sopenharmony_ciDescription:
32862306a36Sopenharmony_ci		The /sys/power/suspend_stats/fail file contains the number
32962306a36Sopenharmony_ci		of times entering system sleep state failed.
33062306a36Sopenharmony_ci
33162306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/failed_freeze
33262306a36Sopenharmony_ciDate:		July 2019
33362306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
33462306a36Sopenharmony_ciDescription:
33562306a36Sopenharmony_ci		The /sys/power/suspend_stats/failed_freeze file contains the
33662306a36Sopenharmony_ci		number of times freezing processes failed.
33762306a36Sopenharmony_ci
33862306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/failed_prepare
33962306a36Sopenharmony_ciDate:		July 2019
34062306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
34162306a36Sopenharmony_ciDescription:
34262306a36Sopenharmony_ci		The /sys/power/suspend_stats/failed_prepare file contains the
34362306a36Sopenharmony_ci		number of times preparing all non-sysdev devices for
34462306a36Sopenharmony_ci		a system PM transition failed.
34562306a36Sopenharmony_ci
34662306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/failed_resume
34762306a36Sopenharmony_ciDate:		July 2019
34862306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
34962306a36Sopenharmony_ciDescription:
35062306a36Sopenharmony_ci		The /sys/power/suspend_stats/failed_resume file contains the
35162306a36Sopenharmony_ci		number of times executing "resume" callbacks of
35262306a36Sopenharmony_ci		non-sysdev devices failed.
35362306a36Sopenharmony_ci
35462306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/failed_resume_early
35562306a36Sopenharmony_ciDate:		July 2019
35662306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
35762306a36Sopenharmony_ciDescription:
35862306a36Sopenharmony_ci		The /sys/power/suspend_stats/failed_resume_early file contains
35962306a36Sopenharmony_ci		the number of times executing "early resume" callbacks
36062306a36Sopenharmony_ci		of devices failed.
36162306a36Sopenharmony_ci
36262306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/failed_resume_noirq
36362306a36Sopenharmony_ciDate:		July 2019
36462306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
36562306a36Sopenharmony_ciDescription:
36662306a36Sopenharmony_ci		The /sys/power/suspend_stats/failed_resume_noirq file contains
36762306a36Sopenharmony_ci		the number of times executing "noirq resume" callbacks
36862306a36Sopenharmony_ci		of devices failed.
36962306a36Sopenharmony_ci
37062306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/failed_suspend
37162306a36Sopenharmony_ciDate:		July 2019
37262306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
37362306a36Sopenharmony_ciDescription:
37462306a36Sopenharmony_ci		The /sys/power/suspend_stats/failed_suspend file contains
37562306a36Sopenharmony_ci		the number of times executing "suspend" callbacks
37662306a36Sopenharmony_ci		of all non-sysdev devices failed.
37762306a36Sopenharmony_ci
37862306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/failed_suspend_late
37962306a36Sopenharmony_ciDate:		July 2019
38062306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
38162306a36Sopenharmony_ciDescription:
38262306a36Sopenharmony_ci		The /sys/power/suspend_stats/failed_suspend_late file contains
38362306a36Sopenharmony_ci		the number of times executing "late suspend" callbacks
38462306a36Sopenharmony_ci		of all devices failed.
38562306a36Sopenharmony_ci
38662306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/failed_suspend_noirq
38762306a36Sopenharmony_ciDate:		July 2019
38862306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
38962306a36Sopenharmony_ciDescription:
39062306a36Sopenharmony_ci		The /sys/power/suspend_stats/failed_suspend_noirq file contains
39162306a36Sopenharmony_ci		the number of times executing "noirq suspend" callbacks
39262306a36Sopenharmony_ci		of all devices failed.
39362306a36Sopenharmony_ci
39462306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/last_failed_dev
39562306a36Sopenharmony_ciDate:		July 2019
39662306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
39762306a36Sopenharmony_ciDescription:
39862306a36Sopenharmony_ci		The /sys/power/suspend_stats/last_failed_dev file contains
39962306a36Sopenharmony_ci		the last device for which a suspend/resume callback failed.
40062306a36Sopenharmony_ci
40162306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/last_failed_errno
40262306a36Sopenharmony_ciDate:		July 2019
40362306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
40462306a36Sopenharmony_ciDescription:
40562306a36Sopenharmony_ci		The /sys/power/suspend_stats/last_failed_errno file contains
40662306a36Sopenharmony_ci		the errno of the last failed attempt at entering
40762306a36Sopenharmony_ci		system sleep state.
40862306a36Sopenharmony_ci
40962306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/last_failed_step
41062306a36Sopenharmony_ciDate:		July 2019
41162306a36Sopenharmony_ciContact:	Kalesh Singh <kaleshsingh96@gmail.com>
41262306a36Sopenharmony_ciDescription:
41362306a36Sopenharmony_ci		The /sys/power/suspend_stats/last_failed_step file contains
41462306a36Sopenharmony_ci		the last failed step in the suspend/resume path.
41562306a36Sopenharmony_ci
41662306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/last_hw_sleep
41762306a36Sopenharmony_ciDate:		June 2023
41862306a36Sopenharmony_ciContact:	Mario Limonciello <mario.limonciello@amd.com>
41962306a36Sopenharmony_ciDescription:
42062306a36Sopenharmony_ci		The /sys/power/suspend_stats/last_hw_sleep file
42162306a36Sopenharmony_ci		contains the duration of time spent in a hardware sleep
42262306a36Sopenharmony_ci		state in the most recent system suspend-resume cycle.
42362306a36Sopenharmony_ci		This number is measured in microseconds.
42462306a36Sopenharmony_ci
42562306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/total_hw_sleep
42662306a36Sopenharmony_ciDate:		June 2023
42762306a36Sopenharmony_ciContact:	Mario Limonciello <mario.limonciello@amd.com>
42862306a36Sopenharmony_ciDescription:
42962306a36Sopenharmony_ci		The /sys/power/suspend_stats/total_hw_sleep file
43062306a36Sopenharmony_ci		contains the aggregate of time spent in a hardware sleep
43162306a36Sopenharmony_ci		state since the kernel was booted. This number
43262306a36Sopenharmony_ci		is measured in microseconds.
43362306a36Sopenharmony_ci
43462306a36Sopenharmony_ciWhat:		/sys/power/suspend_stats/max_hw_sleep
43562306a36Sopenharmony_ciDate:		June 2023
43662306a36Sopenharmony_ciContact:	Mario Limonciello <mario.limonciello@amd.com>
43762306a36Sopenharmony_ciDescription:
43862306a36Sopenharmony_ci		The /sys/power/suspend_stats/max_hw_sleep file
43962306a36Sopenharmony_ci		contains the maximum amount of time that the hardware can
44062306a36Sopenharmony_ci		report for time spent in a hardware sleep state. When sleep
44162306a36Sopenharmony_ci		cycles are longer than this time, the values for
44262306a36Sopenharmony_ci		'total_hw_sleep' and 'last_hw_sleep' may not be accurate.
44362306a36Sopenharmony_ci		This number is measured in microseconds.
44462306a36Sopenharmony_ci
44562306a36Sopenharmony_ciWhat:		/sys/power/sync_on_suspend
44662306a36Sopenharmony_ciDate:		October 2019
44762306a36Sopenharmony_ciContact:	Jonas Meurer <jonas@freesources.org>
44862306a36Sopenharmony_ciDescription:
44962306a36Sopenharmony_ci		This file controls whether or not the kernel will sync()
45062306a36Sopenharmony_ci		filesystems during system suspend (after freezing user space
45162306a36Sopenharmony_ci		and before suspending devices).
45262306a36Sopenharmony_ci
45362306a36Sopenharmony_ci		Writing a "1" to this file enables the sync() and writing a "0"
45462306a36Sopenharmony_ci		disables it.  Reads from the file return the current value.
45562306a36Sopenharmony_ci		The default is "1" if the build-time "SUSPEND_SKIP_SYNC" config
45662306a36Sopenharmony_ci		flag is unset, or "0" otherwise.
457