162306a36Sopenharmony_ciWhat:		/sys/devices/.../power/
262306a36Sopenharmony_ciDate:		January 2009
362306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci		The /sys/devices/.../power directory contains attributes
662306a36Sopenharmony_ci		allowing the user space to check and modify some power
762306a36Sopenharmony_ci		management related properties of given device.
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup
1062306a36Sopenharmony_ciDate:		January 2009
1162306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
1262306a36Sopenharmony_ciDescription:
1362306a36Sopenharmony_ci		The /sys/devices/.../power/wakeup attribute allows the user
1462306a36Sopenharmony_ci		space to check if the device is enabled to wake up the system
1562306a36Sopenharmony_ci		from sleep states, such as the memory sleep state (suspend to
1662306a36Sopenharmony_ci		RAM) and hibernation (suspend to disk), and to enable or disable
1762306a36Sopenharmony_ci		it to do that as desired.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci		Some devices support "wakeup" events, which are hardware signals
2062306a36Sopenharmony_ci		used to activate the system from a sleep state.  Such devices
2162306a36Sopenharmony_ci		have one of the following two values for the sysfs power/wakeup
2262306a36Sopenharmony_ci		file:
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci		+ "enabled\n" to issue the events;
2562306a36Sopenharmony_ci		+ "disabled\n" not to do so;
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci		In that cases the user space can change the setting represented
2862306a36Sopenharmony_ci		by the contents of this file by writing either "enabled", or
2962306a36Sopenharmony_ci		"disabled" to it.
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci		For the devices that are not capable of generating system wakeup
3262306a36Sopenharmony_ci		events this file is not present.  In that case the device cannot
3362306a36Sopenharmony_ci		be enabled to wake up the system from sleep states.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciWhat:		/sys/devices/.../power/control
3662306a36Sopenharmony_ciDate:		January 2009
3762306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
3862306a36Sopenharmony_ciDescription:
3962306a36Sopenharmony_ci		The /sys/devices/.../power/control attribute allows the user
4062306a36Sopenharmony_ci		space to control the run-time power management of the device.
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci		All devices have one of the following two values for the
4362306a36Sopenharmony_ci		power/control file:
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci		+ "auto\n" to allow the device to be power managed at run time;
4662306a36Sopenharmony_ci		+ "on\n" to prevent the device from being power managed;
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci		The default for all devices is "auto", which means that they may
4962306a36Sopenharmony_ci		be subject to automatic power management, depending on their
5062306a36Sopenharmony_ci		drivers.  Changing this attribute to "on" prevents the driver
5162306a36Sopenharmony_ci		from power managing the device at run time.  Doing that while
5262306a36Sopenharmony_ci		the device is suspended causes it to be woken up.
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ciWhat:		/sys/devices/.../power/async
5562306a36Sopenharmony_ciDate:		January 2009
5662306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
5762306a36Sopenharmony_ciDescription:
5862306a36Sopenharmony_ci		The /sys/devices/.../async attribute allows the user space to
5962306a36Sopenharmony_ci		enable or diasble the device's suspend and resume callbacks to
6062306a36Sopenharmony_ci		be executed asynchronously (ie. in separate threads, in parallel
6162306a36Sopenharmony_ci		with the main suspend/resume thread) during system-wide power
6262306a36Sopenharmony_ci		transitions (eg. suspend to RAM, hibernation).
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci		All devices have one of the following two values for the
6562306a36Sopenharmony_ci		power/async file:
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ci		+ "enabled\n" to permit the asynchronous suspend/resume;
6862306a36Sopenharmony_ci		+ "disabled\n" to forbid it;
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ci		The value of this attribute may be changed by writing either
7162306a36Sopenharmony_ci		"enabled", or "disabled" to it.
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci		It generally is unsafe to permit the asynchronous suspend/resume
7462306a36Sopenharmony_ci		of a device unless it is certain that all of the PM dependencies
7562306a36Sopenharmony_ci		of the device are known to the PM core.  However, for some
7662306a36Sopenharmony_ci		devices this attribute is set to "enabled" by bus type code or
7762306a36Sopenharmony_ci		device drivers and in that cases it should be safe to leave the
7862306a36Sopenharmony_ci		default value.
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup_count
8162306a36Sopenharmony_ciDate:		September 2010
8262306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
8362306a36Sopenharmony_ciDescription:
8462306a36Sopenharmony_ci		The /sys/devices/.../wakeup_count attribute contains the number
8562306a36Sopenharmony_ci		of signaled wakeup events associated with the device.  This
8662306a36Sopenharmony_ci		attribute is read-only.  If the device is not capable to wake up
8762306a36Sopenharmony_ci		the system from sleep states, this attribute is not present.
8862306a36Sopenharmony_ci		If the device is not enabled to wake up the system from sleep
8962306a36Sopenharmony_ci		states, this attribute is empty.
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup_active_count
9262306a36Sopenharmony_ciDate:		September 2010
9362306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
9462306a36Sopenharmony_ciDescription:
9562306a36Sopenharmony_ci		The /sys/devices/.../wakeup_active_count attribute contains the
9662306a36Sopenharmony_ci		number of times the processing of wakeup events associated with
9762306a36Sopenharmony_ci		the device was completed (at the kernel level).  This attribute
9862306a36Sopenharmony_ci		is read-only.  If the device is not capable to wake up the
9962306a36Sopenharmony_ci		system from sleep states, this attribute is not present.  If
10062306a36Sopenharmony_ci		the device is not enabled to wake up the system from sleep
10162306a36Sopenharmony_ci		states, this attribute is empty.
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup_abort_count
10462306a36Sopenharmony_ciDate:		February 2012
10562306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
10662306a36Sopenharmony_ciDescription:
10762306a36Sopenharmony_ci		The /sys/devices/.../wakeup_abort_count attribute contains the
10862306a36Sopenharmony_ci		number of times the processing of a wakeup event associated with
10962306a36Sopenharmony_ci		the device might have aborted system transition into a sleep
11062306a36Sopenharmony_ci		state in progress.  This attribute is read-only.  If the device
11162306a36Sopenharmony_ci		is not capable to wake up the system from sleep states, this
11262306a36Sopenharmony_ci		attribute is not present.  If the device is not enabled to wake
11362306a36Sopenharmony_ci		up the system from sleep states, this attribute is empty.
11462306a36Sopenharmony_ci
11562306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup_expire_count
11662306a36Sopenharmony_ciDate:		February 2012
11762306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
11862306a36Sopenharmony_ciDescription:
11962306a36Sopenharmony_ci		The /sys/devices/.../wakeup_expire_count attribute contains the
12062306a36Sopenharmony_ci		number of times a wakeup event associated with the device has
12162306a36Sopenharmony_ci		been reported with a timeout that expired.  This attribute is
12262306a36Sopenharmony_ci		read-only.  If the device is not capable to wake up the system
12362306a36Sopenharmony_ci		from sleep states, this attribute is not present.  If the
12462306a36Sopenharmony_ci		device is not enabled to wake up the system from sleep states,
12562306a36Sopenharmony_ci		this attribute is empty.
12662306a36Sopenharmony_ci
12762306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup_active
12862306a36Sopenharmony_ciDate:		September 2010
12962306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
13062306a36Sopenharmony_ciDescription:
13162306a36Sopenharmony_ci		The /sys/devices/.../wakeup_active attribute contains either 1,
13262306a36Sopenharmony_ci		or 0, depending on whether or not a wakeup event associated with
13362306a36Sopenharmony_ci		the device is being processed (1).  This attribute is read-only.
13462306a36Sopenharmony_ci		If the device is not capable to wake up the system from sleep
13562306a36Sopenharmony_ci		states, this attribute is not present.  If the device is not
13662306a36Sopenharmony_ci		enabled to wake up the system from sleep states, this attribute
13762306a36Sopenharmony_ci		is empty.
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup_total_time_ms
14062306a36Sopenharmony_ciDate:		September 2010
14162306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
14262306a36Sopenharmony_ciDescription:
14362306a36Sopenharmony_ci		The /sys/devices/.../wakeup_total_time_ms attribute contains
14462306a36Sopenharmony_ci		the total time of processing wakeup events associated with the
14562306a36Sopenharmony_ci		device, in milliseconds.  This attribute is read-only.  If the
14662306a36Sopenharmony_ci		device is not capable to wake up the system from sleep states,
14762306a36Sopenharmony_ci		this attribute is not present.  If the device is not enabled to
14862306a36Sopenharmony_ci		wake up the system from sleep states, this attribute is empty.
14962306a36Sopenharmony_ci
15062306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup_max_time_ms
15162306a36Sopenharmony_ciDate:		September 2010
15262306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
15362306a36Sopenharmony_ciDescription:
15462306a36Sopenharmony_ci		The /sys/devices/.../wakeup_max_time_ms attribute contains
15562306a36Sopenharmony_ci		the maximum time of processing a single wakeup event associated
15662306a36Sopenharmony_ci		with the device, in milliseconds.  This attribute is read-only.
15762306a36Sopenharmony_ci		If the device is not capable to wake up the system from sleep
15862306a36Sopenharmony_ci		states, this attribute is not present.  If the device is not
15962306a36Sopenharmony_ci		enabled to wake up the system from sleep states, this attribute
16062306a36Sopenharmony_ci		is empty.
16162306a36Sopenharmony_ci
16262306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup_last_time_ms
16362306a36Sopenharmony_ciDate:		September 2010
16462306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
16562306a36Sopenharmony_ciDescription:
16662306a36Sopenharmony_ci		The /sys/devices/.../wakeup_last_time_ms attribute contains
16762306a36Sopenharmony_ci		the value of the monotonic clock corresponding to the time of
16862306a36Sopenharmony_ci		signaling the last wakeup event associated with the device, in
16962306a36Sopenharmony_ci		milliseconds.  This attribute is read-only.  If the device is
17062306a36Sopenharmony_ci		not enabled to wake up the system from sleep states, this
17162306a36Sopenharmony_ci		attribute is not present.  If the device is not enabled to wake
17262306a36Sopenharmony_ci		up the system from sleep states, this attribute is empty.
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ciWhat:		/sys/devices/.../power/wakeup_prevent_sleep_time_ms
17562306a36Sopenharmony_ciDate:		February 2012
17662306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
17762306a36Sopenharmony_ciDescription:
17862306a36Sopenharmony_ci		The /sys/devices/.../wakeup_prevent_sleep_time_ms attribute
17962306a36Sopenharmony_ci		contains the total time the device has been preventing
18062306a36Sopenharmony_ci		opportunistic transitions to sleep states from occurring.
18162306a36Sopenharmony_ci		This attribute is read-only.  If the device is not capable to
18262306a36Sopenharmony_ci		wake up the system from sleep states, this attribute is not
18362306a36Sopenharmony_ci		present.  If the device is not enabled to wake up the system
18462306a36Sopenharmony_ci		from sleep states, this attribute is empty.
18562306a36Sopenharmony_ci
18662306a36Sopenharmony_ciWhat:		/sys/devices/.../power/autosuspend_delay_ms
18762306a36Sopenharmony_ciDate:		September 2010
18862306a36Sopenharmony_ciContact:	Alan Stern <stern@rowland.harvard.edu>
18962306a36Sopenharmony_ciDescription:
19062306a36Sopenharmony_ci		The /sys/devices/.../power/autosuspend_delay_ms attribute
19162306a36Sopenharmony_ci		contains the autosuspend delay value (in milliseconds).  Some
19262306a36Sopenharmony_ci		drivers do not want their device to suspend as soon as it
19362306a36Sopenharmony_ci		becomes idle at run time; they want the device to remain
19462306a36Sopenharmony_ci		inactive for a certain minimum period of time first.  That
19562306a36Sopenharmony_ci		period is called the autosuspend delay.  Negative values will
19662306a36Sopenharmony_ci		prevent the device from being suspended at run time (similar
19762306a36Sopenharmony_ci		to writing "on" to the power/control attribute).  Values >=
19862306a36Sopenharmony_ci		1000 will cause the autosuspend timer expiration to be rounded
19962306a36Sopenharmony_ci		up to the nearest second.
20062306a36Sopenharmony_ci
20162306a36Sopenharmony_ci		Not all drivers support this attribute.  If it isn't supported,
20262306a36Sopenharmony_ci		attempts to read or write it will yield I/O errors.
20362306a36Sopenharmony_ci
20462306a36Sopenharmony_ciWhat:		/sys/devices/.../power/pm_qos_resume_latency_us
20562306a36Sopenharmony_ciDate:		March 2012
20662306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
20762306a36Sopenharmony_ciDescription:
20862306a36Sopenharmony_ci		The /sys/devices/.../power/pm_qos_resume_latency_us attribute
20962306a36Sopenharmony_ci		contains the PM QoS resume latency limit for the given device,
21062306a36Sopenharmony_ci		which is the maximum allowed time it can take to resume the
21162306a36Sopenharmony_ci		device, after it has been suspended at run time, from a resume
21262306a36Sopenharmony_ci		request to the moment the device will be ready to process I/O,
21362306a36Sopenharmony_ci		in microseconds.  If it is equal to 0, however, this means that
21462306a36Sopenharmony_ci		the PM QoS resume latency may be arbitrary and the special value
21562306a36Sopenharmony_ci		"n/a" means that user space cannot accept any resume latency at
21662306a36Sopenharmony_ci		all for the given device.
21762306a36Sopenharmony_ci
21862306a36Sopenharmony_ci		Not all drivers support this attribute.  If it isn't supported,
21962306a36Sopenharmony_ci		it is not present.
22062306a36Sopenharmony_ci
22162306a36Sopenharmony_ci		This attribute has no effect on system-wide suspend/resume and
22262306a36Sopenharmony_ci		hibernation.
22362306a36Sopenharmony_ci
22462306a36Sopenharmony_ciWhat:		/sys/devices/.../power/pm_qos_latency_tolerance_us
22562306a36Sopenharmony_ciDate:		January 2014
22662306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
22762306a36Sopenharmony_ciDescription:
22862306a36Sopenharmony_ci		The /sys/devices/.../power/pm_qos_latency_tolerance_us attribute
22962306a36Sopenharmony_ci		contains the PM QoS active state latency tolerance limit for the
23062306a36Sopenharmony_ci		given device in microseconds.  That is the maximum memory access
23162306a36Sopenharmony_ci		latency the device can suffer without any visible adverse
23262306a36Sopenharmony_ci		effects on user space functionality.  If that value is the
23362306a36Sopenharmony_ci		string "any", the latency does not matter to user space at all,
23462306a36Sopenharmony_ci		but hardware should not be allowed to set the latency tolerance
23562306a36Sopenharmony_ci		for the device automatically.
23662306a36Sopenharmony_ci
23762306a36Sopenharmony_ci		Reading "auto" from this file means that the maximum memory
23862306a36Sopenharmony_ci		access latency for the device may be determined automatically
23962306a36Sopenharmony_ci		by the hardware as needed.  Writing "auto" to it allows the
24062306a36Sopenharmony_ci		hardware to be switched to this mode if there are no other
24162306a36Sopenharmony_ci		latency tolerance requirements from the kernel side.
24262306a36Sopenharmony_ci
24362306a36Sopenharmony_ci		This attribute is only present if the feature controlled by it
24462306a36Sopenharmony_ci		is supported by the hardware.
24562306a36Sopenharmony_ci
24662306a36Sopenharmony_ci		This attribute has no effect on runtime suspend and resume of
24762306a36Sopenharmony_ci		devices and on system-wide suspend/resume and hibernation.
24862306a36Sopenharmony_ci
24962306a36Sopenharmony_ciWhat:		/sys/devices/.../power/pm_qos_no_power_off
25062306a36Sopenharmony_ciDate:		September 2012
25162306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
25262306a36Sopenharmony_ciDescription:
25362306a36Sopenharmony_ci		The /sys/devices/.../power/pm_qos_no_power_off attribute
25462306a36Sopenharmony_ci		is used for manipulating the PM QoS "no power off" flag.  If
25562306a36Sopenharmony_ci		set, this flag indicates to the kernel that power should not
25662306a36Sopenharmony_ci		be removed entirely from the device.
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_ci		Not all drivers support this attribute.  If it isn't supported,
25962306a36Sopenharmony_ci		it is not present.
26062306a36Sopenharmony_ci
26162306a36Sopenharmony_ci		This attribute has no effect on system-wide suspend/resume and
26262306a36Sopenharmony_ci		hibernation.
26362306a36Sopenharmony_ci
26462306a36Sopenharmony_ciWhat:		/sys/devices/.../power/runtime_status
26562306a36Sopenharmony_ciDate:		April 2010
26662306a36Sopenharmony_ciContact:	Rafael J. Wysocki <rjw@rjwysocki.net>
26762306a36Sopenharmony_ciDescription:
26862306a36Sopenharmony_ci		The /sys/devices/.../power/runtime_status attribute contains
26962306a36Sopenharmony_ci		the current runtime PM status of the device, which may be
27062306a36Sopenharmony_ci		"suspended", "suspending", "resuming", "active", "error" (fatal
27162306a36Sopenharmony_ci		error), or "unsupported" (runtime PM is disabled).
27262306a36Sopenharmony_ci
27362306a36Sopenharmony_ciWhat:		/sys/devices/.../power/runtime_active_time
27462306a36Sopenharmony_ciDate:		Jul 2010
27562306a36Sopenharmony_ciContact:	Arjan van de Ven <arjan@linux.intel.com>
27662306a36Sopenharmony_ciDescription:
27762306a36Sopenharmony_ci		Reports the total time that the device has been active.
27862306a36Sopenharmony_ci		Used for runtime PM statistics.
27962306a36Sopenharmony_ci
28062306a36Sopenharmony_ciWhat:		/sys/devices/.../power/runtime_suspended_time
28162306a36Sopenharmony_ciDate:		Jul 2010
28262306a36Sopenharmony_ciContact:	Arjan van de Ven <arjan@linux.intel.com>
28362306a36Sopenharmony_ciDescription:
28462306a36Sopenharmony_ci		Reports total time that the device has been suspended.
28562306a36Sopenharmony_ci		Used for runtime PM statistics.
28662306a36Sopenharmony_ci
28762306a36Sopenharmony_ciWhat:		/sys/devices/.../power/runtime_usage
28862306a36Sopenharmony_ciDate:		Apr 2010
28962306a36Sopenharmony_ciContact:	Dominik Brodowski <linux@dominikbrodowski.net>
29062306a36Sopenharmony_ciDescription:
29162306a36Sopenharmony_ci		Reports the runtime PM usage count of a device.
29262306a36Sopenharmony_ci
29362306a36Sopenharmony_ciWhat:		/sys/devices/.../power/runtime_enabled
29462306a36Sopenharmony_ciDate:		Apr 2010
29562306a36Sopenharmony_ciContact:	Dominik Brodowski <linux@dominikbrodowski.net>
29662306a36Sopenharmony_ciDescription:
29762306a36Sopenharmony_ci		Is runtime PM enabled for this device?
29862306a36Sopenharmony_ci		States are "enabled", "disabled", "forbidden" or a
29962306a36Sopenharmony_ci		combination of the latter two.
30062306a36Sopenharmony_ci
30162306a36Sopenharmony_ciWhat:		/sys/devices/.../power/runtime_active_kids
30262306a36Sopenharmony_ciDate:		Apr 2010
30362306a36Sopenharmony_ciContact:	Dominik Brodowski <linux@dominikbrodowski.net>
30462306a36Sopenharmony_ciDescription:
30562306a36Sopenharmony_ci		Reports the runtime PM children usage count of a device, or
30662306a36Sopenharmony_ci		0 if the children will be ignored.
30762306a36Sopenharmony_ci
308