source: general/sysutils/pm-utils.xml@ 510bcf5

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 510bcf5 was 61f1219, checked in by Douglas R. Reno <renodr@…>, 15 months ago

pm-utils: Fix a few bugs and incompatibilities with newer kernels.

Credit goes to the University of Illinois LUG for reporting this during
their last session.

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