18c2ecf20Sopenharmony_ciWhat: /sys/power/ 28c2ecf20Sopenharmony_ciDate: August 2006 38c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci The /sys/power directory will contain files that will 68c2ecf20Sopenharmony_ci provide a unified interface to the power management 78c2ecf20Sopenharmony_ci subsystem. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciWhat: /sys/power/state 108c2ecf20Sopenharmony_ciDate: November 2016 118c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 128c2ecf20Sopenharmony_ciDescription: 138c2ecf20Sopenharmony_ci The /sys/power/state file controls system sleep states. 148c2ecf20Sopenharmony_ci Reading from this file returns the available sleep state 158c2ecf20Sopenharmony_ci labels, which may be "mem" (suspend), "standby" (power-on 168c2ecf20Sopenharmony_ci suspend), "freeze" (suspend-to-idle) and "disk" (hibernation). 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci Writing one of the above strings to this file causes the system 198c2ecf20Sopenharmony_ci to transition into the corresponding state, if available. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci See Documentation/admin-guide/pm/sleep-states.rst for more 228c2ecf20Sopenharmony_ci information. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciWhat: /sys/power/mem_sleep 258c2ecf20Sopenharmony_ciDate: November 2016 268c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 278c2ecf20Sopenharmony_ciDescription: 288c2ecf20Sopenharmony_ci The /sys/power/mem_sleep file controls the operating mode of 298c2ecf20Sopenharmony_ci system suspend. Reading from it returns the available modes 308c2ecf20Sopenharmony_ci as "s2idle" (always present), "shallow" and "deep" (present if 318c2ecf20Sopenharmony_ci supported). The mode that will be used on subsequent attempts 328c2ecf20Sopenharmony_ci to suspend the system (by writing "mem" to the /sys/power/state 338c2ecf20Sopenharmony_ci file described above) is enclosed in square brackets. 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci Writing one of the above strings to this file causes the mode 368c2ecf20Sopenharmony_ci represented by it to be used on subsequent attempts to suspend 378c2ecf20Sopenharmony_ci the system. 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci See Documentation/admin-guide/pm/sleep-states.rst for more 408c2ecf20Sopenharmony_ci information. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciWhat: /sys/power/disk 438c2ecf20Sopenharmony_ciDate: September 2006 448c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 458c2ecf20Sopenharmony_ciDescription: 468c2ecf20Sopenharmony_ci The /sys/power/disk file controls the operating mode of the 478c2ecf20Sopenharmony_ci suspend-to-disk mechanism. Reading from this file returns 488c2ecf20Sopenharmony_ci the name of the method by which the system will be put to 498c2ecf20Sopenharmony_ci sleep on the next suspend. There are four methods supported: 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci 'firmware' - means that the memory image will be saved to disk 528c2ecf20Sopenharmony_ci by some firmware, in which case we also assume that the 538c2ecf20Sopenharmony_ci firmware will handle the system suspend. 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci 'platform' - the memory image will be saved by the kernel and 568c2ecf20Sopenharmony_ci the system will be put to sleep by the platform driver (e.g. 578c2ecf20Sopenharmony_ci ACPI or other PM registers). 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci 'shutdown' - the memory image will be saved by the kernel and 608c2ecf20Sopenharmony_ci the system will be powered off. 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci 'reboot' - the memory image will be saved by the kernel and 638c2ecf20Sopenharmony_ci the system will be rebooted. 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci Additionally, /sys/power/disk can be used to turn on one of the 668c2ecf20Sopenharmony_ci two testing modes of the suspend-to-disk mechanism: 'testproc' 678c2ecf20Sopenharmony_ci or 'test'. If the suspend-to-disk mechanism is in the 688c2ecf20Sopenharmony_ci 'testproc' mode, writing 'disk' to /sys/power/state will cause 698c2ecf20Sopenharmony_ci the kernel to disable nonboot CPUs and freeze tasks, wait for 5 708c2ecf20Sopenharmony_ci seconds, unfreeze tasks and enable nonboot CPUs. If it is in 718c2ecf20Sopenharmony_ci the 'test' mode, writing 'disk' to /sys/power/state will cause 728c2ecf20Sopenharmony_ci the kernel to disable nonboot CPUs and freeze tasks, shrink 738c2ecf20Sopenharmony_ci memory, suspend devices, wait for 5 seconds, resume devices, 748c2ecf20Sopenharmony_ci unfreeze tasks and enable nonboot CPUs. Then, we are able to 758c2ecf20Sopenharmony_ci look in the log messages and work out, for example, which code 768c2ecf20Sopenharmony_ci is being slow and which device drivers are misbehaving. 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci The suspend-to-disk method may be chosen by writing to this 798c2ecf20Sopenharmony_ci file one of the accepted strings: 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci - 'firmware' 828c2ecf20Sopenharmony_ci - 'platform' 838c2ecf20Sopenharmony_ci - 'shutdown' 848c2ecf20Sopenharmony_ci - 'reboot' 858c2ecf20Sopenharmony_ci - 'testproc' 868c2ecf20Sopenharmony_ci - 'test' 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci It will only change to 'firmware' or 'platform' if the system 898c2ecf20Sopenharmony_ci supports that. 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_ciWhat: /sys/power/image_size 928c2ecf20Sopenharmony_ciDate: August 2006 938c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 948c2ecf20Sopenharmony_ciDescription: 958c2ecf20Sopenharmony_ci The /sys/power/image_size file controls the size of the image 968c2ecf20Sopenharmony_ci created by the suspend-to-disk mechanism. It can be written a 978c2ecf20Sopenharmony_ci string representing a non-negative integer that will be used 988c2ecf20Sopenharmony_ci as an upper limit of the image size, in bytes. The kernel's 998c2ecf20Sopenharmony_ci suspend-to-disk code will do its best to ensure the image size 1008c2ecf20Sopenharmony_ci will not exceed this number. However, if it turns out to be 1018c2ecf20Sopenharmony_ci impossible, the kernel will try to suspend anyway using the 1028c2ecf20Sopenharmony_ci smallest image possible. In particular, if "0" is written to 1038c2ecf20Sopenharmony_ci this file, the suspend image will be as small as possible. 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci Reading from this file will display the current image size 1068c2ecf20Sopenharmony_ci limit, which is set to around 2/5 of available RAM by default. 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_ciWhat: /sys/power/pm_trace 1098c2ecf20Sopenharmony_ciDate: August 2006 1108c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 1118c2ecf20Sopenharmony_ciDescription: 1128c2ecf20Sopenharmony_ci The /sys/power/pm_trace file controls the code which saves the 1138c2ecf20Sopenharmony_ci last PM event point in the RTC across reboots, so that you can 1148c2ecf20Sopenharmony_ci debug a machine that just hangs during suspend (or more 1158c2ecf20Sopenharmony_ci commonly, during resume). Namely, the RTC is only used to save 1168c2ecf20Sopenharmony_ci the last PM event point if this file contains '1'. Initially 1178c2ecf20Sopenharmony_ci it contains '0' which may be changed to '1' by writing a 1188c2ecf20Sopenharmony_ci string representing a nonzero integer into it. 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci To use this debugging feature you should attempt to suspend 1218c2ecf20Sopenharmony_ci the machine, then reboot it and run:: 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ci dmesg -s 1000000 | grep 'hash matches' 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci If you do not get any matches (or they appear to be false 1268c2ecf20Sopenharmony_ci positives), it is possible that the last PM event point 1278c2ecf20Sopenharmony_ci referred to a device created by a loadable kernel module. In 1288c2ecf20Sopenharmony_ci this case cat /sys/power/pm_trace_dev_match (see below) after 1298c2ecf20Sopenharmony_ci your system is started up and the kernel modules are loaded. 1308c2ecf20Sopenharmony_ci 1318c2ecf20Sopenharmony_ci CAUTION: Using it will cause your machine's real-time (CMOS) 1328c2ecf20Sopenharmony_ci clock to be set to a random invalid time after a resume. 1338c2ecf20Sopenharmony_ci 1348c2ecf20Sopenharmony_ciWhat; /sys/power/pm_trace_dev_match 1358c2ecf20Sopenharmony_ciDate: October 2010 1368c2ecf20Sopenharmony_ciContact: James Hogan <jhogan@kernel.org> 1378c2ecf20Sopenharmony_ciDescription: 1388c2ecf20Sopenharmony_ci The /sys/power/pm_trace_dev_match file contains the name of the 1398c2ecf20Sopenharmony_ci device associated with the last PM event point saved in the RTC 1408c2ecf20Sopenharmony_ci across reboots when pm_trace has been used. More precisely it 1418c2ecf20Sopenharmony_ci contains the list of current devices (including those 1428c2ecf20Sopenharmony_ci registered by loadable kernel modules since boot) which match 1438c2ecf20Sopenharmony_ci the device hash in the RTC at boot, with a newline after each 1448c2ecf20Sopenharmony_ci one. 1458c2ecf20Sopenharmony_ci 1468c2ecf20Sopenharmony_ci The advantage of this file over the hash matches printed to the 1478c2ecf20Sopenharmony_ci kernel log (see /sys/power/pm_trace), is that it includes 1488c2ecf20Sopenharmony_ci devices created after boot by loadable kernel modules. 1498c2ecf20Sopenharmony_ci 1508c2ecf20Sopenharmony_ci Due to the small hash size necessary to fit in the RTC, it is 1518c2ecf20Sopenharmony_ci possible that more than one device matches the hash, in which 1528c2ecf20Sopenharmony_ci case further investigation is required to determine which 1538c2ecf20Sopenharmony_ci device is causing the problem. Note that genuine RTC clock 1548c2ecf20Sopenharmony_ci values (such as when pm_trace has not been used), can still 1558c2ecf20Sopenharmony_ci match a device and output it's name here. 1568c2ecf20Sopenharmony_ci 1578c2ecf20Sopenharmony_ciWhat: /sys/power/pm_async 1588c2ecf20Sopenharmony_ciDate: January 2009 1598c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 1608c2ecf20Sopenharmony_ciDescription: 1618c2ecf20Sopenharmony_ci The /sys/power/pm_async file controls the switch allowing the 1628c2ecf20Sopenharmony_ci user space to enable or disable asynchronous suspend and resume 1638c2ecf20Sopenharmony_ci of devices. If enabled, this feature will cause some device 1648c2ecf20Sopenharmony_ci drivers' suspend and resume callbacks to be executed in parallel 1658c2ecf20Sopenharmony_ci with each other and with the main suspend thread. It is enabled 1668c2ecf20Sopenharmony_ci if this file contains "1", which is the default. It may be 1678c2ecf20Sopenharmony_ci disabled by writing "0" to this file, in which case all devices 1688c2ecf20Sopenharmony_ci will be suspended and resumed synchronously. 1698c2ecf20Sopenharmony_ci 1708c2ecf20Sopenharmony_ciWhat: /sys/power/wakeup_count 1718c2ecf20Sopenharmony_ciDate: July 2010 1728c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 1738c2ecf20Sopenharmony_ciDescription: 1748c2ecf20Sopenharmony_ci The /sys/power/wakeup_count file allows user space to put the 1758c2ecf20Sopenharmony_ci system into a sleep state while taking into account the 1768c2ecf20Sopenharmony_ci concurrent arrival of wakeup events. Reading from it returns 1778c2ecf20Sopenharmony_ci the current number of registered wakeup events and it blocks if 1788c2ecf20Sopenharmony_ci some wakeup events are being processed at the time the file is 1798c2ecf20Sopenharmony_ci read from. Writing to it will only succeed if the current 1808c2ecf20Sopenharmony_ci number of wakeup events is equal to the written value and, if 1818c2ecf20Sopenharmony_ci successful, will make the kernel abort a subsequent transition 1828c2ecf20Sopenharmony_ci to a sleep state if any wakeup events are reported after the 1838c2ecf20Sopenharmony_ci write has returned. 1848c2ecf20Sopenharmony_ci 1858c2ecf20Sopenharmony_ciWhat: /sys/power/reserved_size 1868c2ecf20Sopenharmony_ciDate: May 2011 1878c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 1888c2ecf20Sopenharmony_ciDescription: 1898c2ecf20Sopenharmony_ci The /sys/power/reserved_size file allows user space to control 1908c2ecf20Sopenharmony_ci the amount of memory reserved for allocations made by device 1918c2ecf20Sopenharmony_ci drivers during the "device freeze" stage of hibernation. It can 1928c2ecf20Sopenharmony_ci be written a string representing a non-negative integer that 1938c2ecf20Sopenharmony_ci will be used as the amount of memory to reserve for allocations 1948c2ecf20Sopenharmony_ci made by device drivers' "freeze" callbacks, in bytes. 1958c2ecf20Sopenharmony_ci 1968c2ecf20Sopenharmony_ci Reading from this file will display the current value, which is 1978c2ecf20Sopenharmony_ci set to 1 MB by default. 1988c2ecf20Sopenharmony_ci 1998c2ecf20Sopenharmony_ciWhat: /sys/power/autosleep 2008c2ecf20Sopenharmony_ciDate: April 2012 2018c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 2028c2ecf20Sopenharmony_ciDescription: 2038c2ecf20Sopenharmony_ci The /sys/power/autosleep file can be written one of the strings 2048c2ecf20Sopenharmony_ci returned by reads from /sys/power/state. If that happens, a 2058c2ecf20Sopenharmony_ci work item attempting to trigger a transition of the system to 2068c2ecf20Sopenharmony_ci the sleep state represented by that string is queued up. This 2078c2ecf20Sopenharmony_ci attempt will only succeed if there are no active wakeup sources 2088c2ecf20Sopenharmony_ci in the system at that time. After every execution, regardless 2098c2ecf20Sopenharmony_ci of whether or not the attempt to put the system to sleep has 2108c2ecf20Sopenharmony_ci succeeded, the work item requeues itself until user space 2118c2ecf20Sopenharmony_ci writes "off" to /sys/power/autosleep. 2128c2ecf20Sopenharmony_ci 2138c2ecf20Sopenharmony_ci Reading from this file causes the last string successfully 2148c2ecf20Sopenharmony_ci written to it to be returned. 2158c2ecf20Sopenharmony_ci 2168c2ecf20Sopenharmony_ciWhat: /sys/power/wake_lock 2178c2ecf20Sopenharmony_ciDate: February 2012 2188c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 2198c2ecf20Sopenharmony_ciDescription: 2208c2ecf20Sopenharmony_ci The /sys/power/wake_lock file allows user space to create 2218c2ecf20Sopenharmony_ci wakeup source objects and activate them on demand (if one of 2228c2ecf20Sopenharmony_ci those wakeup sources is active, reads from the 2238c2ecf20Sopenharmony_ci /sys/power/wakeup_count file block or return false). When a 2248c2ecf20Sopenharmony_ci string without white space is written to /sys/power/wake_lock, 2258c2ecf20Sopenharmony_ci it will be assumed to represent a wakeup source name. If there 2268c2ecf20Sopenharmony_ci is a wakeup source object with that name, it will be activated 2278c2ecf20Sopenharmony_ci (unless active already). Otherwise, a new wakeup source object 2288c2ecf20Sopenharmony_ci will be registered, assigned the given name and activated. 2298c2ecf20Sopenharmony_ci If a string written to /sys/power/wake_lock contains white 2308c2ecf20Sopenharmony_ci space, the part of the string preceding the white space will be 2318c2ecf20Sopenharmony_ci regarded as a wakeup source name and handled as descrived above. 2328c2ecf20Sopenharmony_ci The other part of the string will be regarded as a timeout (in 2338c2ecf20Sopenharmony_ci nanoseconds) such that the wakeup source will be automatically 2348c2ecf20Sopenharmony_ci deactivated after it has expired. The timeout, if present, is 2358c2ecf20Sopenharmony_ci set regardless of the current state of the wakeup source object 2368c2ecf20Sopenharmony_ci in question. 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_ci Reads from this file return a string consisting of the names of 2398c2ecf20Sopenharmony_ci wakeup sources created with the help of it that are active at 2408c2ecf20Sopenharmony_ci the moment, separated with spaces. 2418c2ecf20Sopenharmony_ci 2428c2ecf20Sopenharmony_ci 2438c2ecf20Sopenharmony_ciWhat: /sys/power/wake_unlock 2448c2ecf20Sopenharmony_ciDate: February 2012 2458c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 2468c2ecf20Sopenharmony_ciDescription: 2478c2ecf20Sopenharmony_ci The /sys/power/wake_unlock file allows user space to deactivate 2488c2ecf20Sopenharmony_ci wakeup sources created with the help of /sys/power/wake_lock. 2498c2ecf20Sopenharmony_ci When a string is written to /sys/power/wake_unlock, it will be 2508c2ecf20Sopenharmony_ci assumed to represent the name of a wakeup source to deactivate. 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_ci If a wakeup source object of that name exists and is active at 2538c2ecf20Sopenharmony_ci the moment, it will be deactivated. 2548c2ecf20Sopenharmony_ci 2558c2ecf20Sopenharmony_ci Reads from this file return a string consisting of the names of 2568c2ecf20Sopenharmony_ci wakeup sources created with the help of /sys/power/wake_lock 2578c2ecf20Sopenharmony_ci that are inactive at the moment, separated with spaces. 2588c2ecf20Sopenharmony_ci 2598c2ecf20Sopenharmony_ciWhat: /sys/power/pm_print_times 2608c2ecf20Sopenharmony_ciDate: May 2012 2618c2ecf20Sopenharmony_ciContact: Sameer Nanda <snanda@chromium.org> 2628c2ecf20Sopenharmony_ciDescription: 2638c2ecf20Sopenharmony_ci The /sys/power/pm_print_times file allows user space to 2648c2ecf20Sopenharmony_ci control whether the time taken by devices to suspend and 2658c2ecf20Sopenharmony_ci resume is printed. These prints are useful for hunting down 2668c2ecf20Sopenharmony_ci devices that take too long to suspend or resume. 2678c2ecf20Sopenharmony_ci 2688c2ecf20Sopenharmony_ci Writing a "1" enables this printing while writing a "0" 2698c2ecf20Sopenharmony_ci disables it. The default value is "0". Reading from this file 2708c2ecf20Sopenharmony_ci will display the current value. 2718c2ecf20Sopenharmony_ci 2728c2ecf20Sopenharmony_ciWhat: /sys/power/pm_wakeup_irq 2738c2ecf20Sopenharmony_ciDate: April 2015 2748c2ecf20Sopenharmony_ciContact: Alexandra Yates <alexandra.yates@linux.intel.org> 2758c2ecf20Sopenharmony_ciDescription: 2768c2ecf20Sopenharmony_ci The /sys/power/pm_wakeup_irq file reports to user space the IRQ 2778c2ecf20Sopenharmony_ci number of the first wakeup interrupt (that is, the first 2788c2ecf20Sopenharmony_ci interrupt from an IRQ line armed for system wakeup) seen by the 2798c2ecf20Sopenharmony_ci kernel during the most recent system suspend/resume cycle. 2808c2ecf20Sopenharmony_ci 2818c2ecf20Sopenharmony_ci This output is useful for system wakeup diagnostics of spurious 2828c2ecf20Sopenharmony_ci wakeup interrupts. 2838c2ecf20Sopenharmony_ci 2848c2ecf20Sopenharmony_ciWhat: /sys/power/pm_debug_messages 2858c2ecf20Sopenharmony_ciDate: July 2017 2868c2ecf20Sopenharmony_ciContact: Rafael J. Wysocki <rjw@rjwysocki.net> 2878c2ecf20Sopenharmony_ciDescription: 2888c2ecf20Sopenharmony_ci The /sys/power/pm_debug_messages file controls the printing 2898c2ecf20Sopenharmony_ci of debug messages from the system suspend/hiberbation 2908c2ecf20Sopenharmony_ci infrastructure to the kernel log. 2918c2ecf20Sopenharmony_ci 2928c2ecf20Sopenharmony_ci Writing a "1" to this file enables the debug messages and 2938c2ecf20Sopenharmony_ci writing a "0" (default) to it disables them. Reads from 2948c2ecf20Sopenharmony_ci this file return the current value. 2958c2ecf20Sopenharmony_ci 2968c2ecf20Sopenharmony_ciWhat: /sys/power/resume_offset 2978c2ecf20Sopenharmony_ciDate: April 2018 2988c2ecf20Sopenharmony_ciContact: Mario Limonciello <mario.limonciello@dell.com> 2998c2ecf20Sopenharmony_ciDescription: 3008c2ecf20Sopenharmony_ci This file is used for telling the kernel an offset into a disk 3018c2ecf20Sopenharmony_ci to use when hibernating the system such as with a swap file. 3028c2ecf20Sopenharmony_ci 3038c2ecf20Sopenharmony_ci Reads from this file will display the current offset 3048c2ecf20Sopenharmony_ci the kernel will be using on the next hibernation 3058c2ecf20Sopenharmony_ci attempt. 3068c2ecf20Sopenharmony_ci 3078c2ecf20Sopenharmony_ci Using this sysfs file will override any values that were 3088c2ecf20Sopenharmony_ci set using the kernel command line for disk offset. 3098c2ecf20Sopenharmony_ci 3108c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats 3118c2ecf20Sopenharmony_ciDate: July 2019 3128c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3138c2ecf20Sopenharmony_ciDescription: 3148c2ecf20Sopenharmony_ci The /sys/power/suspend_stats directory contains suspend related 3158c2ecf20Sopenharmony_ci statistics. 3168c2ecf20Sopenharmony_ci 3178c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/success 3188c2ecf20Sopenharmony_ciDate: July 2019 3198c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3208c2ecf20Sopenharmony_ciDescription: 3218c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/success file contains the number 3228c2ecf20Sopenharmony_ci of times entering system sleep state succeeded. 3238c2ecf20Sopenharmony_ci 3248c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/fail 3258c2ecf20Sopenharmony_ciDate: July 2019 3268c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3278c2ecf20Sopenharmony_ciDescription: 3288c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/fail file contains the number 3298c2ecf20Sopenharmony_ci of times entering system sleep state failed. 3308c2ecf20Sopenharmony_ci 3318c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/failed_freeze 3328c2ecf20Sopenharmony_ciDate: July 2019 3338c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3348c2ecf20Sopenharmony_ciDescription: 3358c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/failed_freeze file contains the 3368c2ecf20Sopenharmony_ci number of times freezing processes failed. 3378c2ecf20Sopenharmony_ci 3388c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/failed_prepare 3398c2ecf20Sopenharmony_ciDate: July 2019 3408c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3418c2ecf20Sopenharmony_ciDescription: 3428c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/failed_prepare file contains the 3438c2ecf20Sopenharmony_ci number of times preparing all non-sysdev devices for 3448c2ecf20Sopenharmony_ci a system PM transition failed. 3458c2ecf20Sopenharmony_ci 3468c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/failed_resume 3478c2ecf20Sopenharmony_ciDate: July 2019 3488c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3498c2ecf20Sopenharmony_ciDescription: 3508c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/failed_resume file contains the 3518c2ecf20Sopenharmony_ci number of times executing "resume" callbacks of 3528c2ecf20Sopenharmony_ci non-sysdev devices failed. 3538c2ecf20Sopenharmony_ci 3548c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/failed_resume_early 3558c2ecf20Sopenharmony_ciDate: July 2019 3568c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3578c2ecf20Sopenharmony_ciDescription: 3588c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/failed_resume_early file contains 3598c2ecf20Sopenharmony_ci the number of times executing "early resume" callbacks 3608c2ecf20Sopenharmony_ci of devices failed. 3618c2ecf20Sopenharmony_ci 3628c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/failed_resume_noirq 3638c2ecf20Sopenharmony_ciDate: July 2019 3648c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3658c2ecf20Sopenharmony_ciDescription: 3668c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/failed_resume_noirq file contains 3678c2ecf20Sopenharmony_ci the number of times executing "noirq resume" callbacks 3688c2ecf20Sopenharmony_ci of devices failed. 3698c2ecf20Sopenharmony_ci 3708c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/failed_suspend 3718c2ecf20Sopenharmony_ciDate: July 2019 3728c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3738c2ecf20Sopenharmony_ciDescription: 3748c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/failed_suspend file contains 3758c2ecf20Sopenharmony_ci the number of times executing "suspend" callbacks 3768c2ecf20Sopenharmony_ci of all non-sysdev devices failed. 3778c2ecf20Sopenharmony_ci 3788c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/failed_suspend_late 3798c2ecf20Sopenharmony_ciDate: July 2019 3808c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3818c2ecf20Sopenharmony_ciDescription: 3828c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/failed_suspend_late file contains 3838c2ecf20Sopenharmony_ci the number of times executing "late suspend" callbacks 3848c2ecf20Sopenharmony_ci of all devices failed. 3858c2ecf20Sopenharmony_ci 3868c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/failed_suspend_noirq 3878c2ecf20Sopenharmony_ciDate: July 2019 3888c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3898c2ecf20Sopenharmony_ciDescription: 3908c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/failed_suspend_noirq file contains 3918c2ecf20Sopenharmony_ci the number of times executing "noirq suspend" callbacks 3928c2ecf20Sopenharmony_ci of all devices failed. 3938c2ecf20Sopenharmony_ci 3948c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/last_failed_dev 3958c2ecf20Sopenharmony_ciDate: July 2019 3968c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 3978c2ecf20Sopenharmony_ciDescription: 3988c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/last_failed_dev file contains 3998c2ecf20Sopenharmony_ci the last device for which a suspend/resume callback failed. 4008c2ecf20Sopenharmony_ci 4018c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/last_failed_errno 4028c2ecf20Sopenharmony_ciDate: July 2019 4038c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 4048c2ecf20Sopenharmony_ciDescription: 4058c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/last_failed_errno file contains 4068c2ecf20Sopenharmony_ci the errno of the last failed attempt at entering 4078c2ecf20Sopenharmony_ci system sleep state. 4088c2ecf20Sopenharmony_ci 4098c2ecf20Sopenharmony_ciWhat: /sys/power/suspend_stats/last_failed_step 4108c2ecf20Sopenharmony_ciDate: July 2019 4118c2ecf20Sopenharmony_ciContact: Kalesh Singh <kaleshsingh96@gmail.com> 4128c2ecf20Sopenharmony_ciDescription: 4138c2ecf20Sopenharmony_ci The /sys/power/suspend_stats/last_failed_step file contains 4148c2ecf20Sopenharmony_ci the last failed step in the suspend/resume path. 4158c2ecf20Sopenharmony_ci 4168c2ecf20Sopenharmony_ciWhat: /sys/power/sync_on_suspend 4178c2ecf20Sopenharmony_ciDate: October 2019 4188c2ecf20Sopenharmony_ciContact: Jonas Meurer <jonas@freesources.org> 4198c2ecf20Sopenharmony_ciDescription: 4208c2ecf20Sopenharmony_ci This file controls whether or not the kernel will sync() 4218c2ecf20Sopenharmony_ci filesystems during system suspend (after freezing user space 4228c2ecf20Sopenharmony_ci and before suspending devices). 4238c2ecf20Sopenharmony_ci 4248c2ecf20Sopenharmony_ci Writing a "1" to this file enables the sync() and writing a "0" 4258c2ecf20Sopenharmony_ci disables it. Reads from the file return the current value. 4268c2ecf20Sopenharmony_ci The default is "1" if the build-time "SUSPEND_SKIP_SYNC" config 4278c2ecf20Sopenharmony_ci flag is unset, or "0" otherwise. 428