1
<?xml version='1.0' encoding='UTF-8'?>
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
6
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
7
<!ENTITY dhfirstname "Tim">
8
<!ENTITY dhsurname "Dijkstra">
9
<!-- dhusername could also be set to "&firstname; &surname;". -->
10
<!ENTITY dhusername "Tim Dijkstra">
11
<!ENTITY dhemail "tim@famdijkstra.org">
12
<!-- Please adjust the date whenever revising the manpage. -->
13
<!ENTITY dhdate "Apr 25, 2007">
14
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
15
allowed: see man(7), man(1) and
16
http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
17
<!ENTITY dhsection "8">
18
<!-- TITLE should be something like "User commands" or similar (see
19
http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
20
<!ENTITY dhtitle "pm-utils User Manual">
21
<!ENTITY dhucpackage "pm-action">
22
<!ENTITY dhpackage "pm-action">
24
<!ENTITY debian "<productname>Debian</productname>">
25
<!ENTITY gnu "<acronym>GNU</acronym>">
26
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
31
<title>&dhtitle;</title>
32
<productname>&dhpackage;</productname>
36
<firstname>&dhfirstname;</firstname>
37
<surname>&dhsurname;</surname>
38
<contrib>Manpage author.</contrib>
40
<email>&dhemail;</email>
46
<holder>&dhusername;</holder>
50
This manual page was originally written for the &debian; system, and
51
has been adopted by the pm-utils project.
54
Permission is granted to copy, distribute and/or modify this
55
document under the terms of the &gnu; General Public License,
56
Version 2 or (at your option) any later version published by
57
the Free Software Foundation.
63
<refentrytitle>&dhucpackage;</refentrytitle>
64
<manvolnum>&dhsection;</manvolnum>
67
<refname>&dhpackage;</refname>
68
<refpurpose>Suspend or Hibernate your computer</refpurpose>
73
<command>pm-hibernate</command>
75
<option>--help</option>
80
<command>pm-suspend</command>
82
<option>--quirk-*</option>
83
<option>--help</option>
88
<command>pm-suspend-hybrid</command>
90
<option>--quirk-*</option>
91
<option>--help</option>
97
<refsect1 id="description">
98
<title>DESCRIPTION</title>
100
This manual page documents briefly the
101
<command>&dhpackage;</command>, <command>pm-hibernate</command>,
102
<command>pm-suspend</command> and <command>pm-suspend-hybrid</command>
103
commands. This manual page was originally written for the &debian;
104
distribution and has been adopted by the pm-utils project.
107
These commands can be used to put the machine in a sleep
108
state. The precise way how this is done can be
109
influenced by installing executables and configuration snippets.
110
For some options external programs are needed.
113
These commands will usually be called by
114
<command>hald</command> when triggered to do so by a program
115
in a desktop session such as <command>gnome-power-manager</command>.
116
Calling them from the command line is also possible, but it is not
117
guaranteed that all programs in your desktop session keep working
121
<!-- Use the variablelist.term.separator and the
122
variablelist.term.break.after parameters to
123
control the term elements. -->
125
<term><option>pm-suspend</option></term>
128
During suspend most devices are shutdown, and system state is
129
saved in RAM. The system still requires power in this state. Most
130
modern systems require 3 to 5 seconds to enter and leave suspend,
131
and most laptops can stay in suspend mode for 1 to 3 days before
132
exhausting their battery.
137
<term><option>pm-hibernate</option></term>
140
During hibernate the system is fully powered off, and system state
141
is saved to disk. The system does not require power, and can stay
142
in hibernate mode indefinitely. Most modern systems require 15 to 45
143
seconds to enter and leave hibernate, and entering and leaving
144
hibernate takes longer when you have more memory.
149
<term><option>pm-suspend-hybrid</option></term>
152
Hybrid-suspend is the process where the system does everything it
153
needs to hibernate, suspends instead of shutting down. This means that
154
your computer can wake up quicker than for normal hibernation
155
if you do not run out of power, and you can resume even if you run out of power.
156
s2both(8) is an hybrid-suspend implementation.
164
<refsect1 id="options">
165
<title>OPTIONS</title>
167
Om most hardware putting the video card in the suspend state and
168
recovering from it needs some special quirk handling.
169
With the --quirk-* options of the <command>pm-suspend</command> and
170
<command>pm-suspend-hybrid</command> commands you can select which
171
quirks should be used.
175
<!-- Use the variablelist.term.separator and the
176
variablelist.term.break.after parameters to
177
control the term elements. -->
179
<term><option>--quirk-dpms-on</option></term>
182
This option forces the video hardware to turn on the screen during
183
resume. Most video adapters turn on the screen themselves, but if
184
you get a blank screen on resume that can be turned back on by
185
moving the mouse or typing then this option may be useful.
190
<term><option>--quirk-dpms-suspend</option></term>
193
This option forces the video hardware to turn off the screen when suspending.
194
Most video adapters seem to do this correctly, but some do not, which
195
wastes lits of power. If your screen is still on after successfully suspending
196
you may need to use this option.
201
<term><option>--quirk-radeon-off</option></term>
204
This option forces Radeon hardware to turn off the display
205
during suspend and turn it back on during resume. You only need to
206
do this on some old ThinkPads of the '30 series
207
(T30, X31, R32,... ) with Radeon video hardware.
212
<term><option>--quirk-s3-bios</option></term>
215
This option calls the video BIOS during S3 resume. Unfortunately,
216
it is not always allowed to call the video BIOS at this point, so
217
sometimes adding this option can actually break resume on some
223
<term><option>--quirk-s3-mode</option></term>
226
This option initializes the video card into a VGA text mode, and
227
then uses the BIOS to set the video mode. On some systems S3 BIOS
228
only initializes the video bios to text mode, and so both S3 BIOS
229
and S3 MODE are needed.
234
<term><option>--quirk-vbe-post</option></term>
237
This option will attempt to reinitialize the video card when
238
resuming from suspend, using the same code the system BIOS uses
239
at boot in order to initialize the video hardware.
240
Not all video cards need this, and using this option on systems
241
where it is not needed can cause a system to lock up when resuming.
246
<term><option>--quirk-vbemode-restore</option></term>
249
This option will save and restore the current VESA mode which may
250
be necessary to avoid X screen corruption. Using this feature on
251
Intel graphics hardware is probably a bad idea.
256
<term><option>--quirk-vbestate-restore</option></term>
259
This option saves and restores some low level hardware state
260
which may be invalid after suspend.
265
<term><option>--quirk-vga-mode3</option></term>
268
This option will try to force the video card into a standard
274
<term><option>--quirk-save-pci</option></term>
277
Save the PCI config space for the VGA card.
284
<refsect1 id="files">
288
<term><filename>/etc/pm/config.d</filename></term>
291
The files in this directory are evaluated in C sort order.
292
These files can be provided by individual packages outside
293
of pm-utils. If a global configuration variable is set, the
294
value set to will be appended to the previous value.
295
If any other variable is set, it will be ignored.
296
The syntax is simply: VAR_NAME = value.
298
CONFIGURATION VARIABLES section for valid variables defined
299
by pm-utils. External packages can define others, see
300
their respective documentation for more information.
305
<term><filename>/etc/pm/sleep.d</filename></term>
306
<term><filename>/usr/lib/pm-utils/sleep.d</filename></term>
309
Programs in these directories (we call them hooks) are
310
combined and executed in C sort order before suspend and
311
hibernate with as argument 'suspend' or 'hibernate'.
312
Afterwards they are called in reverse order with
313
argument 'resume' and 'thaw' respectively.
314
If both directories contain a similar named file,
315
the one in /etc/pm/sleep.d will get preference. It
316
is possible to disable a hook in the distribution
317
directory by putting a non-executable file in
318
/etc/pm/sleep.d, or by adding it to the HOOK_BLACKLIST
319
configuration variable.
324
<term><filename>/var/log/pm-suspend.log</filename></term>
327
The log file shows what was done on the last suspend/hibernate
335
<refsect1 id="config_vars">
336
<title>CONFIGURATION VARIABLES</title>
338
Configuration variables defined by pm-utils. These can be set
339
in any file in /etc/pm/config.d
344
<term><envar>SLEEP_MODULE [=kernel]</envar></term>
347
The default suspend backend to use. Valid values are:
350
<term><parameter>kernel</parameter></term>
353
The built-in kernel suspend/resume support.
354
Use this if nothing else is supported on your system.
359
<term><parameter>uswsusp</parameter></term>
362
If your system has support for the userspace
363
suspend programs (s2ram/s2disk/s2both), then use this.
368
<term><parameter>tuxonice</parameter></term>
371
If your system has support for tuxonice/suspend2, use this.
380
<term><envar>HIBERNATE_RESUME_POST_VIDEO [=no]</envar></term>
383
If video should be posted after hibernate, just like
384
after suspend. You should not normally need to set this.
389
<term><envar>SUSPEND_MODULES</envar></term>
392
Space separated list of modules to unload before suspend.
397
<term><envar>HOOK_BLACKLIST</envar></term>
400
Space separated list of hooks that should be disabled.
405
<term><envar>HIBERNATE_MODE</envar></term>
408
Default method to power down the system when hibernating.
409
If not set, the system will use the kernel default as a
411
Check /sys/power/disk for valid values. The default value
412
will be surrounded by [square brackets].
422
The upstream <acronym>BTS</acronym> can be found
423
at <ulink url="https://bugs.freedesktop.org/"/>.
424
Select 'pm-utils' as product.
428
<refsect1 id="see_also">
429
<title>SEE ALSO</title>
430
<!-- In alpabetical order. -->
433
<refentrytitle>s2ram</refentrytitle>
434
<manvolnum>8</manvolnum>
437
<refentrytitle>s2disk</refentrytitle>
438
<manvolnum>8</manvolnum>
441
<refentrytitle>s2both</refentrytitle>
442
<manvolnum>8</manvolnum>
445
<refentrytitle>pm-is-supported</refentrytitle>
446
<manvolnum>1</manvolnum>
449
<refentrytitle>pm-powersave</refentrytitle>
450
<manvolnum>8</manvolnum>
453
<refentrytitle>vbetool</refentrytitle>
454
<manvolnum>8</manvolnum>
457
<refentrytitle>radeontool</refentrytitle>
458
<manvolnum>8</manvolnum>