source: general/sysutils/pm-utils.xml@ 42ddc30

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 42ddc30 was cb594b6c, checked in by Xi Ruoyao <xry111@…>, 11 months ago

general: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

  • Property mode set to 100644
File size: 10.7 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 </sect2>
100
101 <sect2 role="kernel" id="pm-utils-kernel">
102 <title>Kernel Configuration</title>
103
104 <para>
105 If needed, enable the following options in the kernel configuration and
106 recompile the kernel:
107 </para>
108
109 <screen><literal>Power management and ACPI options ---&gt;
110 &lt;*&gt; Suspend to RAM and standby [CONFIG_SUSPEND]
111 &lt;*&gt; Hibernation (aka 'suspend to disk') [CONFIG_HIBERNATION]</literal></screen>
112
113 <para>
114 Suspend to RAM allows the system to enter sleep states in which main
115 memory is powered and thus its contents are preserved. The method cuts
116 power to most parts of the machine aside from the RAM. Because of the
117 large power savings, it is advisable for laptops to automatically enter
118 this mode when the computer is running on batteries and the lid is closed
119 (or the user is inactive for some time).
120 </para>
121
122 <para>
123 Suspend to disk (Hibernation) saves the machine's state into swap space
124 and completely powers off the machine. When the machine is powered on,
125 the state is restored. Until then, there is zero power consumption.
126 Suspend to RAM and hibernation are normally appropriate for portable
127 devices such as laptops, but can be used on workstations. The capability
128 is not really appropriate for servers.
129 </para>
130
131 <para>
132 To use hibernation, the kernel parameter
133 resume=/dev/&lt;swap_partition&gt; has to be used on the kernel command
134 line (in grub.cfg). The swap partition should be at least the size of
135 the physical RAM on the system.
136 </para>
137
138 <indexterm zone="pm-utils pm-utils-kernel">
139 <primary sortas="d-pm-utils">pm-utils</primary>
140 </indexterm>
141
142 </sect2>
143
144 <sect2 role="installation">
145 <title>Installation of Power Management Utilities</title>
146
147 <para>
148 First, fix several bugs and a couple of incompatibilities with newer
149 kernels:
150 </para>
151
152<screen><userinput remap="pre">patch -Np1 -i ../pm-utils-&pm-utils-version;-bugfixes-1.patch</userinput></screen>
153
154 <para>
155 Install <application>Power Management Utilities</application> by
156 running the following commands:
157 </para>
158
159<screen><userinput>./configure --prefix=/usr \
160 --sysconfdir=/etc \
161 --docdir=/usr/share/doc/pm-utils-&pm-utils-version; &amp;&amp;
162make</userinput></screen>
163
164 <para>
165 This package does not come with a test suite.
166 </para>
167
168 <para>
169 Now, as the <systemitem class="username">root</systemitem> user:
170 </para>
171
172<screen role="root"><userinput>make install</userinput></screen>
173
174 <para>
175 If you don't have <xref linkend="xmlto"/> installed, copy pregenerated
176 man pages, as the <systemitem class="username">root</systemitem> user:
177 </para>
178
179<screen role="root"><userinput>install -v -m644 man/*.1 /usr/share/man/man1 &amp;&amp;
180install -v -m644 man/*.8 /usr/share/man/man8 &amp;&amp;
181ln -sv pm-action.8 /usr/share/man/man8/pm-suspend.8 &amp;&amp;
182ln -sv pm-action.8 /usr/share/man/man8/pm-hibernate.8 &amp;&amp;
183ln -sv pm-action.8 /usr/share/man/man8/pm-suspend-hybrid.8</userinput></screen>
184
185 </sect2>
186
187 <sect2 role="configuration">
188 <title>Configuring Power Management Utilities</title>
189
190 <para>
191 Suspend or resume functionality can be easily modified by installing files
192 into the <filename class="directory">/etc/pm/sleep.d</filename> directory.
193 These files, known as hooks, are run when the system is put into a sleep
194 state or resumed. Default hooks are located in <filename
195 class="directory">/usr/lib/pm-utils/sleep.d</filename>, and user hooks
196 should be put in <filename class="directory">/etc/pm/sleep.d</filename>.
197 See the pm-action(8) man page for more information.
198 </para>
199
200 <para>
201 In order to use hibernation with <application>GRUB</application> and a
202 swap partition, you need to add kernel parameter
203 <literal>resume=<replaceable>swap_partition</replaceable></literal> (e.g.
204 <literal>resume=/dev/sda1</literal>) to the kernel line in the
205 <filename>/boot/grub/grub.cfg</filename> configuration file.
206 </para>
207
208 </sect2>
209
210 <sect2 role="content">
211 <title>Contents</title>
212
213 <segmentedlist>
214 <segtitle>Installed Programs</segtitle>
215 <segtitle>Installed Libraries</segtitle>
216 <segtitle>Installed Directories</segtitle>
217
218 <seglistitem>
219 <seg>
220 on_ac_power, pm-hibernate, pm-is-supported, pm-powersave, pm-suspend
221 and pm-suspend-hybrid
222 </seg>
223 <seg>
224 None
225 </seg>
226 <seg>
227 /etc/pm, /usr/lib/pm-utils and
228 /usr/share/doc/pm-utils-&pm-utils-version;
229 </seg>
230 </seglistitem>
231 </segmentedlist>
232
233 <variablelist>
234 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
235 <?dbfo list-presentation="list"?>
236 <?dbhtml list-presentation="table"?>
237
238 <varlistentry id="on_ac_power">
239 <term><command>on_ac_power</command></term>
240 <listitem>
241 <para>
242 is a script that determines whether the system is running on AC
243 power (rather than a battery)
244 </para>
245 <indexterm zone="pm-utils on_ac_power">
246 <primary sortas="b-on_ac_power">on_ac_power</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="pm-hibernate">
252 <term><command>pm-hibernate</command></term>
253 <listitem>
254 <para>
255 is a symlink to pm-action script that puts the computer into
256 hibernate mode (the system is fully powered off and system state is
257 saved to disk)
258 </para>
259 <indexterm zone="pm-utils pm-hibernate">
260 <primary sortas="b-pm-hibernate">pm-hibernate</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="pm-is-supported">
266 <term><command>pm-is-supported</command></term>
267 <listitem>
268 <para>
269 is a script that checks whether power management features such as
270 suspend and hibernate are supported
271 </para>
272 <indexterm zone="pm-utils pm-is-supported">
273 <primary sortas="b-pm-is-supported">pm-is-supported</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 <varlistentry id="pm-powersave">
279 <term><command>pm-powersave</command></term>
280 <listitem>
281 <para>
282 is a script that puts the computer into powersaving (low power)
283 mode
284 </para>
285 <indexterm zone="pm-utils pm-powersave">
286 <primary sortas="b-pm-powersave">pm-powersave</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="pm-suspend">
292 <term><command>pm-suspend</command></term>
293 <listitem>
294 <para>
295 is a symlink to pm-action script that puts the computer into suspend
296 mode (most devices are shut down and system state is saved in RAM)
297 </para>
298 <indexterm zone="pm-utils pm-suspend">
299 <primary sortas="b-pm-suspend">pm-suspend</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="pm-suspend-hybrid">
305 <term><command>pm-suspend-hybrid</command></term>
306 <listitem>
307 <para>
308 is a symlink to pm-action script that puts the computer into
309 hybrid-suspend mode (the system does everything it needs to
310 hibernate, but suspends instead of shutting down)
311 </para>
312 <indexterm zone="pm-utils pm-suspend-hybrid">
313 <primary sortas="b-pm-suspend-hybrid">pm-suspend-hybrid</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 </variablelist>
319
320 </sect2>
321
322</sect1>
Note: See TracBrowser for help on using the repository browser.