source: general/sysutils/pm-utils.xml@ 45ab6c7

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 45ab6c7 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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