1PM-ACTION(8)                 pm-utils User Manual                 PM-ACTION(8)
2
3
4

NAME

6       pm-action - Suspend or Hibernate your computer
7

SYNOPSIS

9       pm-hibernate [--help]
10
11       pm-suspend [--quirk-*] [--help]
12
13       pm-suspend-hybrid [--quirk-*] [--help]
14

DESCRIPTION

16       This manual page documents briefly the pm-action, pm-hibernate,
17       pm-suspend and pm-suspend-hybrid commands. This manual page was
18       originally written for the Debian(TM) distribution and has been adopted
19       by the pm-utils project.
20
21       These commands can be used to put the machine in a sleep state. The
22       precise way how this is done can be influenced by installing
23       executables and configuration snippets. For some options external
24       programs are needed.
25
26       These commands will usually be called by DeviceKit-power or hald when
27       triggered to do so by a program in a desktop session such as
28       gnome-power-manager. Calling them from the command line is also
29       possible, but it is not guaranteed that all programs in your desktop
30       session keep working as expected.
31
32       pm-suspend
33           During suspend most devices are shutdown, and system state is saved
34           in RAM. The system still requires power in this state. Most modern
35           systems require 3 to 5 seconds to enter and leave suspend, and most
36           laptops can stay in suspend mode for 1 to 3 days before exhausting
37           their battery.
38
39       pm-hibernate
40           During hibernate the system is fully powered off, and system state
41           is saved to disk. The system does not require power, and can stay
42           in hibernate mode indefinitely. Most modern systems require 15 to
43           45 seconds to enter and leave hibernate, and entering and leaving
44           hibernate takes longer when you have more memory.
45
46       pm-suspend-hybrid
47           Hybrid-suspend is the process where the system does everything it
48           needs to hibernate, but suspends instead of shutting down. This
49           means that your computer can wake up quicker than for normal
50           hibernation if you do not run out of power, and you can resume even
51           if you run out of power. s2both(8) is an hybrid-suspend
52           implementation.
53

OPTIONS

55       On some hardware putting the video card in the suspend state and
56       recovering from it needs some special quirk handling. With the
57       --quirk-* options of the pm-suspend and pm-suspend-hybrid commands you
58       can select which quirks should be used.
59
60       If pm-suspend, pm-hibernate, or pm-suspend-hybrid are invoked without
61       any commandline parameters, they will try to grab the correct quirks
62       from the internal quirk database.
63
64       --quirk-dpms-on
65           This option forces the video hardware to turn on the screen during
66           resume. Most video adapters turn on the screen themselves, but if
67           you get a blank screen on resume that can be turned back on by
68           moving the mouse or typing then this option may be useful.
69
70       --quirk-dpms-suspend
71           This option forces the video hardware to turn off the screen when
72           suspending. Most video adapters seem to do this correctly, but some
73           do not, which wastes lots of power. If your screen is still on
74           after successfully suspending you may need to use this option.
75
76       --quirk-radeon-off
77           This option forces Radeon hardware to turn off the display during
78           suspend and turn it back on during resume. You only need to do this
79           on some old ThinkPads of the ´30 series (T30, X31, R32,... ) with
80           Radeon video hardware.
81
82       --quirk-s3-bios
83           This option calls the video BIOS during S3 resume. Unfortunately,
84           it is not always allowed to call the video BIOS at this point, so
85           sometimes adding this option can actually break resume on some
86           systems.
87
88       --quirk-s3-mode
89           This option initializes the video card into a VGA text mode, and
90           then uses the BIOS to set the video mode. On some systems S3 BIOS
91           only initializes the video BIOS to text mode, and so both S3 BIOS
92           and S3 MODE are needed.
93
94       --quirk-vbe-post
95           This option will attempt to reinitialize the video card when
96           resuming from suspend, using the same code the system BIOS uses at
97           boot in order to initialize the video hardware. Not all video cards
98           need this, and using this option on systems where it is not needed
99           can cause a system to lock up when resuming.
100
101       --quirk-vbemode-restore
102           This option will save and restore the current VESA mode which may
103           be necessary to avoid X screen corruption. Using this feature on
104           Intel graphics hardware is probably a bad idea.
105
106       --quirk-vbestate-restore
107           This option saves and restores some low level hardware state which
108           may be invalid after suspend.
109
110       --quirk-vga-mode-3
111           This option will try to force the video card into a standard text
112           mode on resume.
113
114       --quirk-save-pci
115           Save the PCI config space for the VGA card.
116
117       --store-quirks-as-lkw
118           Save the quirks the video adaptor required by pm-suspend or
119           pm-suspend-hybrid as an .quirkdb file that is specific to this
120           system. The file will be saved in
121           /etc/pm/last_known_working.quirkdb. This parameter will only save
122           the actual quirks that were used to successfully suspend/resume a
123           system, and will be specific to the exact configuration of that
124           system, including the video hardware, video driver, and whether or
125           not kernel modesetting was used.
126

FILES

128       /etc/pm/config.d
129           The files in this directory are evaluated in C sort order. These
130           files can be provided by individual packages outside of pm-utils.
131           If a global configuration variable is set, the value set to will be
132           appended to the previous value. If any other variable is set, it
133           will be ignored. The syntax is simply: VAR_NAME=value. See the
134           CONFIGURATION VARIABLES section for valid variables defined by
135           pm-utils. External packages can define others, see their respective
136           documentation for more information.
137
138       /etc/pm/sleep.d, /usr/lib/pm-utils/sleep.d
139           Programs in these directories (called hooks) are combined and
140           executed in C sort order before suspend and hibernate with as
141           argument ´suspend´ or ´hibernate´. Afterwards they are called in
142           reverse order with argument ´resume´ and ´thaw´ respectively. If
143           both directories contain a similar named file, the one in
144           /etc/pm/sleep.d will get preference. It is possible to disable a
145           hook in the distribution directory by putting a non-executable file
146           in /etc/pm/sleep.d, or by adding it to the HOOK_BLACKLIST
147           configuration variable.
148
149       /var/log/pm-suspend.log
150           The log file shows what was done on the last suspend/hibernate and
151           resume/thaw.
152

SLEEP HOOK ORDERING CONVENTION

154       00 - 49
155           User and most package supplied hooks. If a hook assumes that all of
156           the usual services and userspace infrastructure is still running,
157           it should be here.
158
159       50 - 74
160           Service handling hooks. Hooks that start or stop a service belong
161           in this range. At or before 50, hooks can assume that all services
162           are still enabled.
163
164       75 - 89
165           Module and non-core hardware handling. If a hook needs to
166           load/unload a module, or if it needs to place non-video hardware
167           that would otherwise break suspend or hibernate into a safe state,
168           it belongs in this range. At or before 75, hooks can assume all
169           modules are still loaded.
170
171       90 - 99
172           Reserved for critical suspend hooks.
173

CONFIGURATION VARIABLES

175       Configuration variables defined by pm-utils. These can be set in any
176       file in /etc/pm/config.d/.
177
178       SLEEP_MODULE [=kernel]
179           The default suspend backend to use. Valid values are:
180
181           kernel
182               The built-in kernel suspend/resume support. Use this if nothing
183               else is supported on your system. The kernel backend is always
184               used if nothing else is available.
185
186           uswsusp
187               If your system has support for the userspace suspend programs
188               (s2ram/s2disk/s2both), then use this.
189
190           tuxonice
191               If your system has support for tuxonice/suspend2, use this.
192
193
194       HIBERNATE_RESUME_POST_VIDEO [=no]
195           If video should be posted after hibernate, just like after suspend.
196           You should not normally need to set this.
197
198       SUSPEND_MODULES
199           Space separated list of modules to unload before suspend.
200
201       HOOK_BLACKLIST
202           Space separated list of hooks that should be disabled.
203
204       HIBERNATE_MODE
205           Default method to power down the system when hibernating. If not
206           set, the system will use the kernel default as a default value.
207           Check /sys/power/disk for valid values. The default value will be
208           surrounded by [square brackets].
209
210       NEED_CLOCK_SYNC
211           If your system clock drifts across a suspend/resume or
212           hibernate/thaw cycle, you should set this to true. This will cause
213           pm-utils to synchronize the system clock whenever going through a
214           sleep/wake cycle at the expense of making suspend/resume take
215           longer.
216
217       PM_HIBERNATE_DELAY [=900]
218           If you are using kernel suspend/resume and invoke
219           pm-suspend-hybrid, this environment variable controls how many
220           seconds the system will wait after going into suspend before waking
221           back up and hibernating. By default, this is set to 900 seconds (15
222           minutes).
223

RETURN VALUES

225       Return values less than 128 mean that pm-action failed before trying to
226       put the system in the requested power saving state. A return value of
227       128 means that pm-action tried to put the machine in the requested
228       power state but failed. A return value greater than 128 means pm-action
229       encountered an error and also failed to enter the requested power
230       saving state.
231

DEBUGGING

233       Debugging suspend/resume can be a tricky process, and is covered in
234       more detail in /usr/share/doc/pm-utils/README.debugging.
235

BUGS

237       The upstream BTS can be found at https://bugs.freedesktop.org/. Select
238       ´pm-utils´ as product.
239

SEE ALSO

241       s2ram(8), s2disk(8), s2both(8), pm-is-supported(1), pm-powersave(8),
242       vbetool(8), radeontool(8)
243

AUTHOR

245       Tim Dijkstra <tim@famdijkstra.org>
246           Manpage author.
247
249       Copyright © 2007 Tim Dijkstra
250
251       This manual page was originally written for the Debian(TM) system, and
252       has been adopted by the pm-utils project.
253
254       Permission is granted to copy, distribute and/or modify this document
255       under the terms of the GNU General Public License, Version 2 or (at
256       your option) any later version published by the Free Software
257       Foundation.
258
259
260
261
262pm-action                        Apr 25, 2007                     PM-ACTION(8)
Impressum