source: general/sysutils/power-profiles-daemon.xml@ 2ec98b3

trunk
Last change on this file since 2ec98b3 was e80ea8b, checked in by Rahul Chandra <rahul@…>, 3 weeks ago

Update to power-profiles-daemon-0.22

  • Property mode set to 100644
File size: 9.9 KB
RevLine 
[16d42f6]1<?xml version="1.0" encoding="UTF-8"?>
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 <!-- Place this in the packages.ent file
8 <!ENTITY power-profiles-daemon-version "">
9 -->
10
11 <!ENTITY power-profiles-daemon-download-http "https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/archive/&power-profiles-daemon-version;/power-profiles-daemon-&power-profiles-daemon-version;.tar.gz">
12 <!ENTITY power-profiles-daemon-download-ftp " ">
[e80ea8b]13 <!ENTITY power-profiles-daemon-md5sum "ec73c14d28ddc437e6781feeb8c50a4b">
14 <!ENTITY power-profiles-daemon-size "80 KB">
15 <!ENTITY power-profiles-daemon-buildsize "1.6 MB">
[16d42f6]16 <!ENTITY power-profiles-daemon-time "less than 0.1 SBU (with tests)">
17]>
18
19<sect1 id="power-profiles-daemon" xreflabel="power-profiles-daemon-&power-profiles-daemon-version;">
20 <?dbhtml filename="power-profiles-daemon.html"?>
21
22
23 <title>Power-profiles-daemon-&power-profiles-daemon-version;</title>
24
25 <indexterm zone="power-profiles-daemon">
26 <primary sortas="a-Power-profiles-daemon">power-profiles-daemon</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Power-profiles-daemon</title>
31
32 <para>
33 The <application>Power-profiles-daemon</application> package provides a program
34 that allows modification of the system power/behavior state. This is used on
35 many laptops and can be used by a Desktop Environment to activate power saving
[21a65a3]36 or performance CPU governors through dbus. On other systems, Power-profiles-daemon
37 can be used as a streamlined way to set the CPU governor in order to increase system
38 performance at the cost of energy usage.
[16d42f6]39 </para>
40
[56b0b0b]41 &lfs122_checked;
[16d42f6]42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&power-profiles-daemon-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&power-profiles-daemon-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &power-profiles-daemon-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &power-profiles-daemon-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &power-profiles-daemon-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &power-profiles-daemon-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Power-profiles-daemon Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
80 <para role="required">
[4193c10]81 <xref linkend="polkit"/>,
[9efe5a6e]82 <xref linkend="pygobject3"/>
83 (pycairo is <emphasis role="bold">not</emphasis> needed), and
[4193c10]84 <xref linkend="upower"/>
[16d42f6]85 </para>
86
87 <bridgehead renderas="sect4">Optional</bridgehead>
88 <para role="optional">
89 <xref linkend="gtk-doc"/>,
90 The rest are for the tests,
[4193c10]91 <xref linkend="python-dbusmock"/>,
[16d42f6]92 <xref linkend="umockdev"/>,
93 <ulink url="https://github.com/PyCQA/isort">isort</ulink>, and
[f1e2498]94 <ulink url="https://github.com/PyCQA/mccabe">mccabe</ulink>
[16d42f6]95 </para>
96 </sect2>
97
98 <sect2 role="kernel" id="power-profiles-daemon-kernel">
99 <title>Kernel Configuration</title>
100
101 <para>
102 Enable the following options in the kernel configuration and recompile the
103 kernel if necessary:
104 </para>
105
106 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
107 href="power-profiles-daemon-kernel.xml"/>
108
109 <para>
110 Select the appropriate sub-options that appear when the above options are
111 selected. As much as possible, the layout should be the same as in
112 kernel configuration menus.
113 </para>
114
115 <indexterm zone="power-profiles-daemon power-profiles-daemon-kernel">
116 <primary sortas="d-Power-profiles-daemon">Power-profiles-daemon</primary>
117 </indexterm>
118 </sect2>
119
120 <sect2 role="installation">
121 <title>Installation of Power-profiles-daemon</title>
122
123 <para>
124 Install <application>Power-profiles-daemon</application> by
125 running the following commands:
126 </para>
127<screen revision="sysv"><userinput>mkdir build &amp;&amp;
128cd build &amp;&amp;
129
[7c83169b]130meson setup \
131 --prefix=/usr \
132 --buildtype=release \
133 -D gtk_doc=false \
134 -D tests=false \
135 -D systemdsystemunitdir=/tmp \
[16d42f6]136 .. &amp;&amp;
137ninja</userinput></screen>
138
139
140<screen revision="systemd"><userinput>mkdir build &amp;&amp;
141cd build &amp;&amp;
142
[7c83169b]143meson setup \
144 --prefix=/usr \
145 --buildtype=release \
146 -D gtk_doc=false \
147 -D tests=false \
[16d42f6]148 .. &amp;&amp;
149ninja</userinput></screen>
150
151 <para>
152 If you have installed the external dependencies, to test the results issue: <command>
[7669ff25]153 ninja test</command>.
[16d42f6]154 </para>
155
156 <para>
157 Now, as the <systemitem class="username">root</systemitem> user:
158 </para>
159
160<screen role="root"><userinput>ninja install</userinput></screen>
[f2716192]161
[21a65a3]162 <para revision="sysv">
[f2716192]163 Now, clean up an unneeded systemd unit installed into /tmp:
164 </para>
165
166<screen revision="sysv" role="root">
167<userinput>rm -fv /tmp/power-profiles-daemon.service</userinput>
[158956b]168</screen>
169
170 <para revision="sysv">
[e5d767b]171 Create a directory required for persistent power states
[158956b]172 after reboot:
173 </para>
174
175<screen revision="sysv" role="root">
176<userinput>install -vdm755 /var/lib/power-profiles-daemon</userinput>
[f2716192]177</screen>
178
[16d42f6]179 </sect2>
180
[f2716192]181
[16d42f6]182 <sect2 role="commands">
183 <title>Command Explanations</title>
184
185 <para>
[7c83169b]186 <parameter>-D gtk_doc=false</parameter>: Prevents building the
[16d42f6]187 documentation. Remove this if you have <application>GTK-Doc</application>
188 installed and wish to build the documentation.
189 </para>
190
[7669ff25]191 <para>
[7c83169b]192 <parameter>-D tests=false</parameter>: Prevents building the
[b458da5]193 tests because they cannot be run within the boundaries of
[7669ff25]194 BLFS. Remove this if you have installed the external dependencies
195 and wish to run the tests.
196 </para>
197
[16d42f6]198 <para revision="sysv">
[7c83169b]199 <parameter>-D systemdsystemunitdir=/tmp</parameter>: Removes
[16d42f6]200 the dependency on <application>systemd</application>.
201 </para>
202
203 </sect2>
204
205 <sect2 role="configuration">
206 <title>Configuring Power-profiles-daemon</title>
207
208 <sect3 id="power-profiles-daemon-init" revision="sysv">
209 <title>Boot Script</title>
210
211 <para>
212 To automatically start the <command>power-profiles-daemon</command> when the
213 system is rebooted, install the
214 <filename>/etc/rc.d/init.d/power-profiles-daemon</filename> bootscript from the
[f1e2498]215 <xref linkend="bootscripts" revision="sysv"/> as the
[16d42f6]216 <systemitem class="username">root</systemitem> user:
217 </para>
218
219 <indexterm zone="power-profiles-daemon power-profiles-daemon-init">
220 <primary sortas="f-Power-profiles-daemon">power-profiles-daemon</primary>
221 </indexterm>
222
223<screen role="root"><userinput>make install-power-profiles-daemon</userinput></screen>
224 </sect3>
225
226
227 <sect3 id="power-profiles-daemon-systemd" revision="systemd">
228 <title>Systemd Unit</title>
229
230 <para>
231 To start the power-profiles-daemon on boot, enable the systemd
232 service that was installed by running the following command as the
233 <systemitem class="username">root</systemitem> user:
234 </para>
235
236 <screen role="root"><userinput>systemctl enable power-profiles-daemon</userinput></screen>
237 </sect3>
238
[e8b98762]239 <sect3>
240 <title>Select a Power Profile</title>
241
242 <para>
243 To list all supported power profiles, issue:
244 </para>
245
246 <screen role="nodump"><userinput>powerprofilesctl</userinput></screen>
247
248 <para>
249 To activate a power profile (for example
250 <replaceable>performance</replaceable>), issue:
251 </para>
252
253 <screen role="nodump"><userinput>powerprofilesctl set <replaceable>performance</replaceable></userinput></screen>
254
255 <para>
256 Some desktop environments (for example GNOME and KDE) also provide
257 a graphical interface to interact with
258 <command>power-profiles-daemon</command> and activate a power
259 profile.
260 </para>
261
262 <para>
263 The activated power profile is automatically stored in
264 <filename>/var/lib/power-profiles-daemon/state.ini</filename> and
265 <command>power-profiles-daemon</command> will read it out and
266 activate it again on the next boot if the
267 <phrase revision='sysv'>bootscript is
268 installed</phrase><phrase revision='systemd'>Systemd
269 unit is enabled</phrase> as above.
270 </para>
271 </sect3>
272
[16d42f6]273 </sect2>
274
275
276
277 <sect2 role="content">
278 <title>Contents</title>
279
280 <segmentedlist>
281 <segtitle>Installed Program</segtitle>
282 <segtitle>Installed Libraries</segtitle>
283 <segtitle>Installed Directories</segtitle>
284
285 <seglistitem>
286 <seg>
[f1e2498]287 powerprofilesctl
[16d42f6]288 </seg>
289 <seg>
[f1e2498]290 None
[16d42f6]291 </seg>
292 <seg>
[f1e2498]293 None
[16d42f6]294 </seg>
295 </seglistitem>
296 </segmentedlist>
297
298 <variablelist>
299 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
300 <?dbfo list-presentation="list"?>
301 <?dbhtml list-presentation="table"?>
302
303 <varlistentry id="powerprofilesctl">
304 <term><command>powerprofilesctl</command></term>
305 <listitem>
306 <para>
[8b5da84]307 This allows the user to set the power governor of the
[f1e2498]308 CPU.
[16d42f6]309 </para>
310 <indexterm zone="powerprofilesctl">
311 <primary sortas="b-powerprofilesctl">powerprofilesctl</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 </variablelist>
317 </sect2>
318</sect1>
Note: See TracBrowser for help on using the repository browser.