[8957e1c] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[70727c9] | 7 | <!ENTITY pm-utils-download-http "http://pm-utils.freedesktop.org/releases/pm-utils-&pm-utils-version;.tar.gz">
|
---|
| 8 | <!ENTITY pm-utils-download-ftp " ">
|
---|
| 9 | <!ENTITY pm-utils-md5sum "1742a556089c36c3a89eb1b957da5a60">
|
---|
| 10 | <!ENTITY pm-utils-size "204 KB">
|
---|
| 11 | <!ENTITY pm-utils-buildsize "1.6 MB">
|
---|
| 12 | <!ENTITY pm-utils-time "0.1 SBU">
|
---|
[8957e1c] | 13 | ]>
|
---|
| 14 |
|
---|
[70727c9] | 15 | <sect1 id="pm-utils" xreflabel="pm-utils-&pm-utils-version;">
|
---|
| 16 | <?dbhtml filename="pm-utils.html"?>
|
---|
[8957e1c] | 17 |
|
---|
| 18 | <sect1info>
|
---|
[70727c9] | 19 | <othername>$LastChangedBy: igor $</othername>
|
---|
| 20 | <date>$Date: 2013-07-10 14:18:46 +0200 (Wed, 10 Jul 2013) $</date>
|
---|
[8957e1c] | 21 | </sect1info>
|
---|
| 22 |
|
---|
[70727c9] | 23 | <title>pm-utils-&pm-utils-version;</title>
|
---|
[8957e1c] | 24 |
|
---|
[70727c9] | 25 | <indexterm zone="pm-utils">
|
---|
| 26 | <primary sortas="a-pm-utils">pm-utils</primary>
|
---|
[8957e1c] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Power Management Utilities</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | The <application>Power Management Utilities</application> is a small
|
---|
| 34 | collection of scripts to suspend and hibernate computer that can be used
|
---|
| 35 | to run user supplied scripts on suspend and resume.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
[fd4dbec] | 38 | &lfs75_checked;
|
---|
[8957e1c] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
[70727c9] | 44 | Download (HTTP): <ulink url="&pm-utils-download-http;"/>
|
---|
[8957e1c] | 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
[70727c9] | 49 | Download (FTP): <ulink url="&pm-utils-download-ftp;"/>
|
---|
[8957e1c] | 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
[70727c9] | 54 | Download MD5 sum: &pm-utils-md5sum;
|
---|
[8957e1c] | 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
[70727c9] | 59 | Download size: &pm-utils-size;
|
---|
[8957e1c] | 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
[70727c9] | 64 | Estimated disk space required: &pm-utils-buildsize;
|
---|
[8957e1c] | 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
[70727c9] | 69 | Estimated build time: &pm-utils-time;
|
---|
[8957e1c] | 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[70727c9] | 74 | <bridgehead renderas="sect3">Power Management Utilities Dependencies</bridgehead>
|
---|
[8957e1c] | 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 77 | <para role="optional">
|
---|
| 78 | <xref linkend="xmlto"/> (to generate man pages)
|
---|
| 79 | </para>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Optional (runtime)</bridgehead>
|
---|
| 82 | <para role="optional">
|
---|
| 83 | <xref linkend="hdparm"/>,
|
---|
[3f1227d] | 84 | <xref linkend="wireless_tools"/>,
|
---|
| 85 | <ulink url="https://www.kernel.org/pub/software/network/ethtool/">ethtool</ulink> and
|
---|
| 86 | <!-- both http://www.codon.org.uk/~mjg59/vbetool/ and
|
---|
| 87 | http://www.srcf.ucam.org/~mjg59/vbetool/ are down -->
|
---|
| 88 | <ulink url="http://ftp.de.debian.org/debian/pool/main/v/vbetool/">vbetool</ulink>
|
---|
[8957e1c] | 89 | <!-- radeontool, deprecated? -->
|
---|
| 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <para condition="html" role="usernotes">User Notes:
|
---|
| 93 | <ulink url="&blfs-wiki;/pm-utils"/>
|
---|
| 94 | </para>
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of Power Management Utilities</title>
|
---|
| 99 |
|
---|
| 100 | <para>
|
---|
| 101 | Install <application>Power Management Utilities</application> by
|
---|
| 102 | running the following commands:
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
[f23c35f4] | 105 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 106 | --sysconfdir=/etc \
|
---|
[70727c9] | 107 | --docdir=/usr/share/doc/pm-utils-&pm-utils-version; &&
|
---|
[8957e1c] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | This package does not come with a test suite.
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <para>
|
---|
| 115 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
| 121 | If you don't have <xref linkend="xmlto"/> installed, copy pregenerated
|
---|
| 122 | man pages:
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <screen role="root"><userinput>install -v -m644 man/*.1 /usr/share/man/man1 &&
|
---|
| 126 | install -v -m644 man/*.8 /usr/share/man/man8 &&
|
---|
| 127 | ln -sv pm-action.8 /usr/share/man/man8/pm-suspend.8 &&
|
---|
| 128 | ln -sv pm-action.8 /usr/share/man/man8/pm-hibernate.8 &&
|
---|
| 129 | ln -sv pm-action.8 /usr/share/man/man8/pm-suspend-hybrid.8</userinput></screen>
|
---|
| 130 |
|
---|
| 131 | </sect2>
|
---|
| 132 |
|
---|
| 133 | <sect2 role="configuration">
|
---|
| 134 | <title>Configuring Power Management Utilities</title>
|
---|
| 135 |
|
---|
| 136 | <para>
|
---|
| 137 | Suspend or resume functionality can be easily modified by installing files
|
---|
[ced6c5c9] | 138 | into the <filename class="directory">/etc/pm/sleep.d</filename> directory.
|
---|
| 139 | These files, known as hooks, are run when the system is put into a sleep
|
---|
| 140 | state or resumed. Default hooks are located in <filename
|
---|
| 141 | class="directory">/usr/lib/pm-utils/sleep.d</filename>, and user hooks
|
---|
| 142 | should be put in <filename class="directory">/etc/pm/sleep.d</filename>.
|
---|
| 143 | See the pm-action(8) man page for more information.
|
---|
[8957e1c] | 144 | </para>
|
---|
| 145 |
|
---|
[5251abd7] | 146 | <para>
|
---|
| 147 | In order to use hibernation with <application>GRUB</application> and a
|
---|
| 148 | swap partition, you need to add kernel parameter
|
---|
| 149 | <literal>resume=<replaceable>swap_partition</replaceable></literal> (i.e.
|
---|
| 150 | <literal>resume=/dev/sda1</literal>) to the kernel line in the
|
---|
| 151 | <filename>/boot/grub/grub.cfg</filename> configuration file.
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
[8957e1c] | 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="content">
|
---|
| 157 | <title>Contents</title>
|
---|
| 158 |
|
---|
| 159 | <segmentedlist>
|
---|
| 160 | <segtitle>Installed Programs</segtitle>
|
---|
| 161 | <segtitle>Installed Libraries</segtitle>
|
---|
| 162 | <segtitle>Installed Directories</segtitle>
|
---|
| 163 |
|
---|
| 164 | <seglistitem>
|
---|
| 165 | <seg>
|
---|
| 166 | on_ac_power, pm-hibernate, pm-is-supported, pm-powersave, pm-suspend
|
---|
| 167 | and pm-suspend-hybrid
|
---|
| 168 | </seg>
|
---|
| 169 | <seg>
|
---|
| 170 | None
|
---|
| 171 | </seg>
|
---|
| 172 | <seg>
|
---|
| 173 | /etc/pm, /usr/lib/pm-utils and
|
---|
[70727c9] | 174 | /usr/share/doc/pm-utils-&pm-utils-version;
|
---|
[8957e1c] | 175 | </seg>
|
---|
| 176 | </seglistitem>
|
---|
| 177 | </segmentedlist>
|
---|
| 178 |
|
---|
| 179 | <variablelist>
|
---|
| 180 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 181 | <?dbfo list-presentation="list"?>
|
---|
| 182 | <?dbhtml list-presentation="table"?>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="on_ac_power">
|
---|
| 185 | <term><command>on_ac_power</command></term>
|
---|
| 186 | <listitem>
|
---|
| 187 | <para>
|
---|
| 188 | is a script that determines whether the system is running on AC
|
---|
| 189 | power (rather than a battery).
|
---|
| 190 | </para>
|
---|
[70727c9] | 191 | <indexterm zone="pm-utils on_ac_power">
|
---|
[8957e1c] | 192 | <primary sortas="b-on_ac_power">on_ac_power</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="pm-hibernate">
|
---|
| 198 | <term><command>pm-hibernate</command></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>
|
---|
| 201 | is a symlink to pm-action script that puts the computer into
|
---|
| 202 | hibernate mode (the system is fully powered off and system state is
|
---|
| 203 | saved to disk).
|
---|
| 204 | </para>
|
---|
[70727c9] | 205 | <indexterm zone="pm-utils pm-hibernate">
|
---|
[8957e1c] | 206 | <primary sortas="b-pm-hibernate">pm-hibernate</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
| 210 |
|
---|
| 211 | <varlistentry id="pm-is-supported">
|
---|
| 212 | <term><command>pm-is-supported</command></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>
|
---|
| 215 | is a script that checks whether power management features such as
|
---|
| 216 | suspend and hibernate are supported.
|
---|
| 217 | </para>
|
---|
[70727c9] | 218 | <indexterm zone="pm-utils pm-is-supported">
|
---|
[8957e1c] | 219 | <primary sortas="b-pm-is-supported">pm-is-supported</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="pm-powersave">
|
---|
| 225 | <term><command>pm-powersave</command></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>
|
---|
| 228 | is a script that puts the computer into powersaving (low power)
|
---|
| 229 | mode.
|
---|
| 230 | </para>
|
---|
[70727c9] | 231 | <indexterm zone="pm-utils pm-powersave">
|
---|
[8957e1c] | 232 | <primary sortas="b-pm-powersave">pm-powersave</primary>
|
---|
| 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
| 236 |
|
---|
| 237 | <varlistentry id="pm-suspend">
|
---|
| 238 | <term><command>pm-suspend</command></term>
|
---|
| 239 | <listitem>
|
---|
| 240 | <para>
|
---|
| 241 | is a symlink to pm-action script that puts the computer into suspend
|
---|
| 242 | mode (most devices are shut down and system state is saved in RAM).
|
---|
| 243 | </para>
|
---|
[70727c9] | 244 | <indexterm zone="pm-utils pm-suspend">
|
---|
[8957e1c] | 245 | <primary sortas="b-pm-suspend">pm-suspend</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
| 250 | <varlistentry id="pm-suspend-hybrid">
|
---|
| 251 | <term><command>pm-suspend-hybrid</command></term>
|
---|
| 252 | <listitem>
|
---|
| 253 | <para>
|
---|
| 254 | is a symlink to pm-action script that puts the computer into
|
---|
| 255 | hybrid-suspend mode (the system does everything it needs to
|
---|
| 256 | hibernate, but suspends instead of shutting down).
|
---|
| 257 | </para>
|
---|
[70727c9] | 258 | <indexterm zone="pm-utils pm-suspend-hybrid">
|
---|
[8957e1c] | 259 | <primary sortas="b-pm-suspend-hybrid">pm-suspend-hybrid</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
| 264 | </variablelist>
|
---|
| 265 |
|
---|
| 266 | </sect2>
|
---|
| 267 |
|
---|
| 268 | </sect1>
|
---|