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 " ">
|
---|
13 | <!ENTITY power-profiles-daemon-md5sum "8e20c44225a1d9982f24c65049386df0">
|
---|
14 | <!ENTITY power-profiles-daemon-size "56 KB">
|
---|
15 | <!ENTITY power-profiles-daemon-buildsize "1.2 MB">
|
---|
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
|
---|
36 | or performance CPU governors through dbus.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs120_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&power-profiles-daemon-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&power-profiles-daemon-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &power-profiles-daemon-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &power-profiles-daemon-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &power-profiles-daemon-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &power-profiles-daemon-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">Power-profiles-daemon Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
78 | <para role="required">
|
---|
79 | <xref linkend="gobject-introspection"/>,
|
---|
80 | <xref linkend="libgudev"/>, and
|
---|
81 | <xref linkend="polkit"/>
|
---|
82 | </para>
|
---|
83 |
|
---|
84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
85 | <para role="optional">
|
---|
86 | <xref linkend="gtk-doc"/>,
|
---|
87 | The rest are for the tests,
|
---|
88 | <xref linkend="python-dbusmock"/>,
|
---|
89 | <xref linkend="umockdev"/>,
|
---|
90 | <ulink url="https://github.com/PyCQA/isort">isort</ulink>, and
|
---|
91 | <ulink url="https://github.com/PyCQA/mccabe">mccabe</ulink>
|
---|
92 | </para>
|
---|
93 | </sect2>
|
---|
94 |
|
---|
95 | <sect2 role="kernel" id="power-profiles-daemon-kernel">
|
---|
96 | <title>Kernel Configuration</title>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | Enable the following options in the kernel configuration and recompile the
|
---|
100 | kernel if necessary:
|
---|
101 | </para>
|
---|
102 |
|
---|
103 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
104 | href="power-profiles-daemon-kernel.xml"/>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | Select the appropriate sub-options that appear when the above options are
|
---|
108 | selected. As much as possible, the layout should be the same as in
|
---|
109 | kernel configuration menus.
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <indexterm zone="power-profiles-daemon power-profiles-daemon-kernel">
|
---|
113 | <primary sortas="d-Power-profiles-daemon">Power-profiles-daemon</primary>
|
---|
114 | </indexterm>
|
---|
115 | </sect2>
|
---|
116 |
|
---|
117 | <sect2 role="installation">
|
---|
118 | <title>Installation of Power-profiles-daemon</title>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | Install <application>Power-profiles-daemon</application> by
|
---|
122 | running the following commands:
|
---|
123 | </para>
|
---|
124 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
125 | cd build &&
|
---|
126 |
|
---|
127 | meson setup \
|
---|
128 | --prefix=/usr \
|
---|
129 | --buildtype=release \
|
---|
130 | -Dgtk_doc=false \
|
---|
131 | -Dsystemdsystemunitdir=no \
|
---|
132 | .. &&
|
---|
133 | ninja</userinput></screen>
|
---|
134 |
|
---|
135 |
|
---|
136 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
137 | cd build &&
|
---|
138 |
|
---|
139 | meson setup \
|
---|
140 | --prefix=/usr \
|
---|
141 | --buildtype=release \
|
---|
142 | -Dgtk_doc=false \
|
---|
143 | .. &&
|
---|
144 | ninja</userinput></screen>
|
---|
145 |
|
---|
146 | <para>
|
---|
147 | If you have installed the external dependencies, to test the results issue: <command>
|
---|
148 | meson setup --reconfigure -Dtests=true && ninja test</command>.
|
---|
149 | </para>
|
---|
150 |
|
---|
151 | <para>
|
---|
152 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
153 | </para>
|
---|
154 |
|
---|
155 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
156 | </sect2>
|
---|
157 |
|
---|
158 | <sect2 role="commands">
|
---|
159 | <title>Command Explanations</title>
|
---|
160 |
|
---|
161 | <para>
|
---|
162 | <parameter>-Dgtk_doc=false</parameter>: Prevents building the
|
---|
163 | documentation. Remove this if you have <application>GTK-Doc</application>
|
---|
164 | installed and wish to build the documentation.
|
---|
165 | </para>
|
---|
166 |
|
---|
167 | <para revision="sysv">
|
---|
168 | <parameter>-Dsystemdsystemunitdir=no</parameter>: Removes
|
---|
169 | the dependency on <application>systemd</application>.
|
---|
170 | </para>
|
---|
171 |
|
---|
172 | </sect2>
|
---|
173 |
|
---|
174 | <sect2 role="configuration">
|
---|
175 | <title>Configuring Power-profiles-daemon</title>
|
---|
176 |
|
---|
177 | <sect3 id="power-profiles-daemon-init" revision="sysv">
|
---|
178 | <title>Boot Script</title>
|
---|
179 |
|
---|
180 | <para>
|
---|
181 | To automatically start the <command>power-profiles-daemon</command> when the
|
---|
182 | system is rebooted, install the
|
---|
183 | <filename>/etc/rc.d/init.d/power-profiles-daemon</filename> bootscript from the
|
---|
184 | <xref linkend="bootscripts" revision="sysv"/> as the
|
---|
185 | <systemitem class="username">root</systemitem> user:
|
---|
186 | </para>
|
---|
187 |
|
---|
188 | <indexterm zone="power-profiles-daemon power-profiles-daemon-init">
|
---|
189 | <primary sortas="f-Power-profiles-daemon">power-profiles-daemon</primary>
|
---|
190 | </indexterm>
|
---|
191 |
|
---|
192 | <screen role="root"><userinput>make install-power-profiles-daemon</userinput></screen>
|
---|
193 | </sect3>
|
---|
194 |
|
---|
195 |
|
---|
196 | <sect3 id="power-profiles-daemon-systemd" revision="systemd">
|
---|
197 | <title>Systemd Unit</title>
|
---|
198 |
|
---|
199 | <para>
|
---|
200 | To start the power-profiles-daemon on boot, enable the systemd
|
---|
201 | service that was installed by running the following command as the
|
---|
202 | <systemitem class="username">root</systemitem> user:
|
---|
203 | </para>
|
---|
204 |
|
---|
205 | <screen role="root"><userinput>systemctl enable power-profiles-daemon</userinput></screen>
|
---|
206 | </sect3>
|
---|
207 |
|
---|
208 | </sect2>
|
---|
209 |
|
---|
210 |
|
---|
211 |
|
---|
212 | <sect2 role="content">
|
---|
213 | <title>Contents</title>
|
---|
214 |
|
---|
215 | <segmentedlist>
|
---|
216 | <segtitle>Installed Program</segtitle>
|
---|
217 | <segtitle>Installed Libraries</segtitle>
|
---|
218 | <segtitle>Installed Directories</segtitle>
|
---|
219 |
|
---|
220 | <seglistitem>
|
---|
221 | <seg>
|
---|
222 | powerprofilesctl
|
---|
223 | </seg>
|
---|
224 | <seg>
|
---|
225 | None
|
---|
226 | </seg>
|
---|
227 | <seg>
|
---|
228 | None
|
---|
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="powerprofilesctl">
|
---|
239 | <term><command>powerprofilesctl</command></term>
|
---|
240 | <listitem>
|
---|
241 | <para>
|
---|
242 | This allows the user to set the power governor of the
|
---|
243 | CPU.
|
---|
244 | </para>
|
---|
245 | <indexterm zone="powerprofilesctl">
|
---|
246 | <primary sortas="b-powerprofilesctl">powerprofilesctl</primary>
|
---|
247 | </indexterm>
|
---|
248 | </listitem>
|
---|
249 | </varlistentry>
|
---|
250 |
|
---|
251 | </variablelist>
|
---|
252 | </sect2>
|
---|
253 | </sect1>
|
---|