source: general/sysutils/power-profiles-daemon.xml@ 73089ed3

lazarus trunk
Last change on this file since 73089ed3 was c0bc0a9, checked in by Xi Ruoyao <xry111@…>, 4 months ago

Update to glib-2.80.0 and gobject-introspection-1.80.0

Merge gobject-introspection into glib page to better handle a circular
dependency between these two packages.

  • Property mode set to 100644
File size: 8.3 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 " ">
[7669ff25]13 <!ENTITY power-profiles-daemon-md5sum "92df21de1148ef6e7c30e4a0829e02b1">
14 <!ENTITY power-profiles-daemon-size "68 KB">
15 <!ENTITY power-profiles-daemon-buildsize "1.4 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
36 or performance CPU governors through dbus.
37 </para>
38
[f2716192]39 &lfs121_checked;
[16d42f6]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">
[c0bc0a9]79 &gobject-introspection;,
[f2716192]80 <xref linkend="libgudev"/>,
81 <xref linkend="polkit"/>, and
82 <xref linkend="pygobject3"/>
[16d42f6]83 </para>
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="gtk-doc"/>,
88 The rest are for the tests,
89 <xref linkend="python-dbusmock"/>,
90 <xref linkend="umockdev"/>,
91 <ulink url="https://github.com/PyCQA/isort">isort</ulink>, and
[f1e2498]92 <ulink url="https://github.com/PyCQA/mccabe">mccabe</ulink>
[16d42f6]93 </para>
94 </sect2>
95
96 <sect2 role="kernel" id="power-profiles-daemon-kernel">
97 <title>Kernel Configuration</title>
98
99 <para>
100 Enable the following options in the kernel configuration and recompile the
101 kernel if necessary:
102 </para>
103
104 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
105 href="power-profiles-daemon-kernel.xml"/>
106
107 <para>
108 Select the appropriate sub-options that appear when the above options are
109 selected. As much as possible, the layout should be the same as in
110 kernel configuration menus.
111 </para>
112
113 <indexterm zone="power-profiles-daemon power-profiles-daemon-kernel">
114 <primary sortas="d-Power-profiles-daemon">Power-profiles-daemon</primary>
115 </indexterm>
116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of Power-profiles-daemon</title>
120
121 <para>
122 Install <application>Power-profiles-daemon</application> by
123 running the following commands:
124 </para>
125<screen revision="sysv"><userinput>mkdir build &amp;&amp;
126cd build &amp;&amp;
127
[f2716192]128meson setup \
129 --prefix=/usr \
130 --buildtype=release \
131 -Dgtk_doc=false \
132 -Dtests=false \
133 -Dsystemdsystemunitdir=/tmp \
[16d42f6]134 .. &amp;&amp;
135ninja</userinput></screen>
136
137
138<screen revision="systemd"><userinput>mkdir build &amp;&amp;
139cd build &amp;&amp;
140
[8b5da84]141meson setup \
142 --prefix=/usr \
[16d42f6]143 --buildtype=release \
[8b5da84]144 -Dgtk_doc=false \
[7669ff25]145 -Dtests=false \
[16d42f6]146 .. &amp;&amp;
147ninja</userinput></screen>
148
149 <para>
150 If you have installed the external dependencies, to test the results issue: <command>
[7669ff25]151 ninja test</command>.
[16d42f6]152 </para>
153
154 <para>
155 Now, as the <systemitem class="username">root</systemitem> user:
156 </para>
157
158<screen role="root"><userinput>ninja install</userinput></screen>
[f2716192]159
160 <para>
161 Now, clean up an unneeded systemd unit installed into /tmp:
162 </para>
163
164<screen revision="sysv" role="root">
165<userinput>rm -fv /tmp/power-profiles-daemon.service</userinput>
166</screen>
167
[16d42f6]168 </sect2>
169
[f2716192]170
[16d42f6]171 <sect2 role="commands">
172 <title>Command Explanations</title>
173
174 <para>
[f1e2498]175 <parameter>-Dgtk_doc=false</parameter>: Prevents building the
[16d42f6]176 documentation. Remove this if you have <application>GTK-Doc</application>
177 installed and wish to build the documentation.
178 </para>
179
[7669ff25]180 <para>
181 <parameter>-Dtests=false</parameter>: Prevents building the
[b458da5]182 tests because they cannot be run within the boundaries of
[7669ff25]183 BLFS. Remove this if you have installed the external dependencies
184 and wish to run the tests.
185 </para>
186
[16d42f6]187 <para revision="sysv">
[f2716192]188 <parameter>-Dsystemdsystemunitdir=/tmp</parameter>: Removes
[16d42f6]189 the dependency on <application>systemd</application>.
190 </para>
191
192 </sect2>
193
194 <sect2 role="configuration">
195 <title>Configuring Power-profiles-daemon</title>
196
197 <sect3 id="power-profiles-daemon-init" revision="sysv">
198 <title>Boot Script</title>
199
200 <para>
201 To automatically start the <command>power-profiles-daemon</command> when the
202 system is rebooted, install the
203 <filename>/etc/rc.d/init.d/power-profiles-daemon</filename> bootscript from the
[f1e2498]204 <xref linkend="bootscripts" revision="sysv"/> as the
[16d42f6]205 <systemitem class="username">root</systemitem> user:
206 </para>
207
208 <indexterm zone="power-profiles-daemon power-profiles-daemon-init">
209 <primary sortas="f-Power-profiles-daemon">power-profiles-daemon</primary>
210 </indexterm>
211
212<screen role="root"><userinput>make install-power-profiles-daemon</userinput></screen>
213 </sect3>
214
215
216 <sect3 id="power-profiles-daemon-systemd" revision="systemd">
217 <title>Systemd Unit</title>
218
219 <para>
220 To start the power-profiles-daemon on boot, enable the systemd
221 service that was installed by running the following command as the
222 <systemitem class="username">root</systemitem> user:
223 </para>
224
225 <screen role="root"><userinput>systemctl enable power-profiles-daemon</userinput></screen>
226 </sect3>
227
228 </sect2>
229
230
231
232 <sect2 role="content">
233 <title>Contents</title>
234
235 <segmentedlist>
236 <segtitle>Installed Program</segtitle>
237 <segtitle>Installed Libraries</segtitle>
238 <segtitle>Installed Directories</segtitle>
239
240 <seglistitem>
241 <seg>
[f1e2498]242 powerprofilesctl
[16d42f6]243 </seg>
244 <seg>
[f1e2498]245 None
[16d42f6]246 </seg>
247 <seg>
[f1e2498]248 None
[16d42f6]249 </seg>
250 </seglistitem>
251 </segmentedlist>
252
253 <variablelist>
254 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
255 <?dbfo list-presentation="list"?>
256 <?dbhtml list-presentation="table"?>
257
258 <varlistentry id="powerprofilesctl">
259 <term><command>powerprofilesctl</command></term>
260 <listitem>
261 <para>
[8b5da84]262 This allows the user to set the power governor of the
[f1e2498]263 CPU.
[16d42f6]264 </para>
265 <indexterm zone="powerprofilesctl">
266 <primary sortas="b-powerprofilesctl">powerprofilesctl</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 </variablelist>
272 </sect2>
273</sect1>
Note: See TracBrowser for help on using the repository browser.