Lines Matching +full:suspend +full:- +full:to +full:- +full:disk
6 provide a unified interface to the power management
15 labels, which may be "mem" (suspend), "standby" (power-on
16 suspend), "freeze" (suspend-to-idle) and "disk" (hibernation).
18 Writing one of the above strings to this file causes the system
19 to transition into the corresponding state, if available.
21 See Documentation/admin-guide/pm/sleep-states.rst for more
29 system suspend. Reading from it returns the available modes
32 to suspend the system (by writing "mem" to the /sys/power/state
35 Writing one of the above strings to this file causes the mode
36 represented by it to be used on subsequent attempts to suspend
39 See Documentation/admin-guide/pm/sleep-states.rst for more
42 What: /sys/power/disk
46 The /sys/power/disk file controls the operating mode of the
47 suspend-to-disk mechanism. Reading from this file returns
48 the name of the method by which the system will be put to
49 sleep on the next suspend. There are four methods supported:
51 'firmware' - means that the memory image will be saved to disk
53 firmware will handle the system suspend.
55 'platform' - the memory image will be saved by the kernel and
56 the system will be put to sleep by the platform driver (e.g.
59 'shutdown' - the memory image will be saved by the kernel and
62 'reboot' - the memory image will be saved by the kernel and
65 Additionally, /sys/power/disk can be used to turn on one of the
66 two testing modes of the suspend-to-disk mechanism: 'testproc'
67 or 'test'. If the suspend-to-disk mechanism is in the
68 'testproc' mode, writing 'disk' to /sys/power/state will cause
69 the kernel to disable nonboot CPUs and freeze tasks, wait for 5
71 the 'test' mode, writing 'disk' to /sys/power/state will cause
72 the kernel to disable nonboot CPUs and freeze tasks, shrink
73 memory, suspend devices, wait for 5 seconds, resume devices,
74 unfreeze tasks and enable nonboot CPUs. Then, we are able to
78 The suspend-to-disk method may be chosen by writing to this
81 - 'firmware'
82 - 'platform'
83 - 'shutdown'
84 - 'reboot'
85 - 'testproc'
86 - 'test'
88 It will only change to 'firmware' or 'platform' if the system
96 created by the suspend-to-disk mechanism. It can be written a
97 string representing a non-negative integer that will be used
99 suspend-to-disk code will do its best to ensure the image size
100 will not exceed this number. However, if it turns out to be
101 impossible, the kernel will try to suspend anyway using the
102 smallest image possible. In particular, if "0" is written to
103 this file, the suspend image will be as small as possible.
106 limit, which is set to around 2/5 of available RAM by default.
114 debug a machine that just hangs during suspend (or more
115 commonly, during resume). Namely, the RTC is only used to save
117 it contains '0' which may be changed to '1' by writing a
120 To use this debugging feature you should attempt to suspend
123 dmesg -s 1000000 | grep 'hash matches'
125 If you do not get any matches (or they appear to be false
127 referred to a device created by a loadable kernel module. In
131 CAUTION: Using it will cause your machine's real-time (CMOS)
132 clock to be set to a random invalid time after a resume.
146 The advantage of this file over the hash matches printed to the
150 Due to the small hash size necessary to fit in the RTC, it is
152 case further investigation is required to determine which
162 user space to enable or disable asynchronous suspend and resume
164 drivers' suspend and resume callbacks to be executed in parallel
165 with each other and with the main suspend thread. It is enabled
167 disabled by writing "0" to this file, in which case all devices
174 The /sys/power/wakeup_count file allows user space to put the
179 read from. Writing to it will only succeed if the current
180 number of wakeup events is equal to the written value and, if
182 to a sleep state if any wakeup events are reported after the
189 The /sys/power/reserved_size file allows user space to control
192 be written a string representing a non-negative integer that
193 will be used as the amount of memory to reserve for allocations
197 set to 1 MB by default.
205 work item attempting to trigger a transition of the system to
209 of whether or not the attempt to put the system to sleep has
211 writes "off" to /sys/power/autosleep.
214 written to it to be returned.
220 The /sys/power/wake_lock file allows user space to create
224 string without white space is written to /sys/power/wake_lock,
225 it will be assumed to represent a wakeup source name. If there
229 If a string written to /sys/power/wake_lock contains white
247 The /sys/power/wake_unlock file allows user space to deactivate
249 When a string is written to /sys/power/wake_unlock, it will be
250 assumed to represent the name of a wakeup source to deactivate.
263 The /sys/power/pm_print_times file allows user space to
264 control whether the time taken by devices to suspend and
266 devices that take too long to suspend or resume.
276 The /sys/power/pm_wakeup_irq file reports to user space the IRQ
279 kernel during the most recent system suspend/resume cycle.
289 of debug messages from the system suspend/hiberbation
290 infrastructure to the kernel log.
292 Writing a "1" to this file enables the debug messages and
293 writing a "0" (default) to it disables them. Reads from
300 This file is used for telling the kernel an offset into a disk
301 to use when hibernating the system such as with a swap file.
308 set using the kernel command line for disk offset.
314 The /sys/power/suspend_stats directory contains suspend related
343 number of times preparing all non-sysdev devices for
352 non-sysdev devices failed.
375 the number of times executing "suspend" callbacks
376 of all non-sysdev devices failed.
383 the number of times executing "late suspend" callbacks
391 the number of times executing "noirq suspend" callbacks
399 the last device for which a suspend/resume callback failed.
414 the last failed step in the suspend/resume path.
421 filesystems during system suspend (after freezing user space
424 Writing a "1" to this file enables the sync() and writing a "0"
426 The default is "1" if the build-time "SUSPEND_SKIP_SYNC" config