source: general/sysutils/pm-utils.xml@ a2c3ec79

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a2c3ec79 was a2c3ec79, checked in by Pierre Labastie <pieere@…>, 8 years ago

GCC 6 tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17334 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.2 KB
Line 
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
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">
13]>
14
15<sect1 id="pm-utils" xreflabel="pm-utils-&pm-utils-version;">
16 <?dbhtml filename="pm-utils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>pm-utils-&pm-utils-version;</title>
24
25 <indexterm zone="pm-utils">
26 <primary sortas="a-pm-utils">pm-utils</primary>
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
38 &lfs79_checked;&gcc6_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&pm-utils-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&pm-utils-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &pm-utils-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &pm-utils-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &pm-utils-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &pm-utils-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Power Management Utilities Dependencies</bridgehead>
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"/>,
84 <xref linkend="wireless_tools"/>,
85 <ulink url="https://www.kernel.org/pub/software/network/ethtool/">ethtool</ulink>, and
86 <ulink url="http://ftp.de.debian.org/debian/pool/main/v/vbetool/">vbetool</ulink>
87 </para>
88
89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/pm-utils"/>
91 </para>
92 </sect2>
93
94 <sect2 role="kernel" id="pm-utils-kernel">
95 <title>Kernel Configuration</title>
96
97 <para>
98 If needed, enable the following options in the kernel configuration and
99 recompile the kernel:
100 </para>
101
102 <screen><literal>Power management and ACPI options ---&gt;
103 &lt;*&gt; Suspend to RAM and standby [CONFIG_SUSPEND]
104 &lt;*&gt; Hibernation (aka 'suspend to disk') [CONFIG_HIBERNATION]</literal></screen>
105
106 <para>
107 Suspend to RAM allows the system to enter sleep states in which main
108 memory is powered and thus its contents are preserved. The method cuts
109 power to most parts of the machine aside from the RAM. Because of the
110 large power savings, it is advisable for laptops to automatically enter
111 this mode when the computer is running on batteries and the lid is closed
112 (or the user is inactive for some time).
113 </para>
114
115 <para>
116 Suspend to disk (Hibernation) saves the machine's state into swap space
117 and completely powers off the machine. When the machine is powered on,
118 the state is restored. Until then, there is zero power consumption.
119 Suspend to RAM and hibernation are normally appropriate for portable
120 devices such as laptops, but can be used on workstations. The capability
121 is not really appropriate for servers.
122 </para>
123
124 <para>
125 To use hibernation, the kernel parameter
126 resume=/dev/&lt;swap_partition&gt; has to be used on the kernel command
127 line (in grub.cfg). The swap partition should be at least the size of
128 the physical RAM on the system.
129 </para>
130
131 <indexterm zone="pm-utils pm-utils-kernel">
132 <primary sortas="d-pm-utils">pm-utils</primary>
133 </indexterm>
134
135 </sect2>
136
137 <sect2 role="installation">
138 <title>Installation of Power Management Utilities</title>
139
140 <para>
141 Install <application>Power Management Utilities</application> by
142 running the following commands:
143 </para>
144
145<screen><userinput>./configure --prefix=/usr \
146 --sysconfdir=/etc \
147 --docdir=/usr/share/doc/pm-utils-&pm-utils-version; &amp;&amp;
148make</userinput></screen>
149
150 <para>
151 This package does not come with a test suite.
152 </para>
153
154 <para>
155 Now, as the <systemitem class="username">root</systemitem> user:
156 </para>
157
158<screen role="root"><userinput>make install</userinput></screen>
159
160 <para>
161 If you don't have <xref linkend="xmlto"/> installed, copy pregenerated
162 man pages:
163 </para>
164
165<screen role="root"><userinput>install -v -m644 man/*.1 /usr/share/man/man1 &amp;&amp;
166install -v -m644 man/*.8 /usr/share/man/man8 &amp;&amp;
167ln -sv pm-action.8 /usr/share/man/man8/pm-suspend.8 &amp;&amp;
168ln -sv pm-action.8 /usr/share/man/man8/pm-hibernate.8 &amp;&amp;
169ln -sv pm-action.8 /usr/share/man/man8/pm-suspend-hybrid.8</userinput></screen>
170
171 </sect2>
172
173 <sect2 role="configuration">
174 <title>Configuring Power Management Utilities</title>
175
176 <para>
177 Suspend or resume functionality can be easily modified by installing files
178 into the <filename class="directory">/etc/pm/sleep.d</filename> directory.
179 These files, known as hooks, are run when the system is put into a sleep
180 state or resumed. Default hooks are located in <filename
181 class="directory">/usr/lib/pm-utils/sleep.d</filename>, and user hooks
182 should be put in <filename class="directory">/etc/pm/sleep.d</filename>.
183 See the pm-action(8) man page for more information.
184 </para>
185
186 <para>
187 In order to use hibernation with <application>GRUB</application> and a
188 swap partition, you need to add kernel parameter
189 <literal>resume=<replaceable>swap_partition</replaceable></literal> (i.e.
190 <literal>resume=/dev/sda1</literal>) to the kernel line in the
191 <filename>/boot/grub/grub.cfg</filename> configuration file.
192 </para>
193
194 </sect2>
195
196 <sect2 role="content">
197 <title>Contents</title>
198
199 <segmentedlist>
200 <segtitle>Installed Programs</segtitle>
201 <segtitle>Installed Libraries</segtitle>
202 <segtitle>Installed Directories</segtitle>
203
204 <seglistitem>
205 <seg>
206 on_ac_power, pm-hibernate, pm-is-supported, pm-powersave, pm-suspend
207 and pm-suspend-hybrid
208 </seg>
209 <seg>
210 None
211 </seg>
212 <seg>
213 /etc/pm, /usr/lib/pm-utils and
214 /usr/share/doc/pm-utils-&pm-utils-version;
215 </seg>
216 </seglistitem>
217 </segmentedlist>
218
219 <variablelist>
220 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
221 <?dbfo list-presentation="list"?>
222 <?dbhtml list-presentation="table"?>
223
224 <varlistentry id="on_ac_power">
225 <term><command>on_ac_power</command></term>
226 <listitem>
227 <para>
228 is a script that determines whether the system is running on AC
229 power (rather than a battery).
230 </para>
231 <indexterm zone="pm-utils on_ac_power">
232 <primary sortas="b-on_ac_power">on_ac_power</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="pm-hibernate">
238 <term><command>pm-hibernate</command></term>
239 <listitem>
240 <para>
241 is a symlink to pm-action script that puts the computer into
242 hibernate mode (the system is fully powered off and system state is
243 saved to disk).
244 </para>
245 <indexterm zone="pm-utils pm-hibernate">
246 <primary sortas="b-pm-hibernate">pm-hibernate</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="pm-is-supported">
252 <term><command>pm-is-supported</command></term>
253 <listitem>
254 <para>
255 is a script that checks whether power management features such as
256 suspend and hibernate are supported.
257 </para>
258 <indexterm zone="pm-utils pm-is-supported">
259 <primary sortas="b-pm-is-supported">pm-is-supported</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="pm-powersave">
265 <term><command>pm-powersave</command></term>
266 <listitem>
267 <para>
268 is a script that puts the computer into powersaving (low power)
269 mode.
270 </para>
271 <indexterm zone="pm-utils pm-powersave">
272 <primary sortas="b-pm-powersave">pm-powersave</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 <varlistentry id="pm-suspend">
278 <term><command>pm-suspend</command></term>
279 <listitem>
280 <para>
281 is a symlink to pm-action script that puts the computer into suspend
282 mode (most devices are shut down and system state is saved in RAM).
283 </para>
284 <indexterm zone="pm-utils pm-suspend">
285 <primary sortas="b-pm-suspend">pm-suspend</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="pm-suspend-hybrid">
291 <term><command>pm-suspend-hybrid</command></term>
292 <listitem>
293 <para>
294 is a symlink to pm-action script that puts the computer into
295 hybrid-suspend mode (the system does everything it needs to
296 hibernate, but suspends instead of shutting down).
297 </para>
298 <indexterm zone="pm-utils pm-suspend-hybrid">
299 <primary sortas="b-pm-suspend-hybrid">pm-suspend-hybrid</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 </variablelist>
305
306 </sect2>
307
308</sect1>
Note: See TracBrowser for help on using the repository browser.