source: general/sysutils/upower.xml@ 5d696ec2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 5d696ec2 was 5d696ec2, checked in by Pierre Labastie <pieere@…>, 7 years ago

CONFIG_TIMER_STATS is not anymore in kernel, so remove that from UPower page

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18981 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.0 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 upower-download-http "http://upower.freedesktop.org/releases/upower-&upower-version;.tar.xz">
8 <!ENTITY upower-download-ftp " ">
9 <!ENTITY upower-md5sum "ec57b4b7bf0af568f9a7a5603c921d97">
10 <!ENTITY upower-size "422 KB">
11 <!ENTITY upower-buildsize "12 MB (add 2 MB for tests)">
12 <!ENTITY upower-time "0.2 SBU">
13]>
14
15<sect1 id="upower" xreflabel="UPower-&upower-version;">
16 <?dbhtml filename="upower.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>UPower-&upower-version;</title>
24
25 <indexterm zone="upower">
26 <primary sortas="a-UPower">UPower</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to UPower</title>
31
32 <para>
33 The <application>UPower</application> package provides an interface to
34 enumerating power devices, listening to device events and querying history
35 and statistics. Any application or service on the system can access the
36 org.freedesktop.UPower service via the system message bus.
37 </para>
38
39 &lfs80_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&upower-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&upower-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &upower-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &upower-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &upower-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &upower-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">UPower Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <xref linkend="dbus-glib"/>,
80 <xref linkend="libgudev"/>,
81 <xref linkend="libusb"/>, and
82 <xref linkend="polkit"/>
83 </para>
84
85 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
86 <para role="optional">
87 <xref linkend="gobject-introspection"/>
88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="gtk-doc"/> and
93 <xref linkend="python3"/>, with
94 <xref linkend="pygobject3"/>,
95 <ulink url="https://launchpad.net/umockdev/">umockdev</ulink>, and
96 <ulink url="http://pypi.python.org/pypi/python-dbusmock">python-dbusmock</ulink>
97 (for part of the testsuite).
98 </para>
99
100 <para condition="html" role="usernotes">User Notes:
101 <ulink url="&blfs-wiki;/upower"/>
102 </para>
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of UPower</title>
107
108 <para>
109 Install <application>UPower</application> by running the following
110 commands:
111 </para>
112
113<screen><userinput>./configure --prefix=/usr \
114 --sysconfdir=/etc \
115 --localstatedir=/var \
116 --enable-deprecated \
117 --disable-static &amp;&amp;
118make</userinput></screen>
119
120 <para>
121 To test the results, issue: <command>make check</command>. Some
122 checks may not pass due to missing files. Test suite should be run from
123 a local GUI session started with dbus-launch.
124 </para>
125
126 <para>
127 Now, as the <systemitem class="username">root</systemitem> user:
128 </para>
129
130<screen role="root"><userinput>make install</userinput></screen>
131
132 </sect2>
133
134 <sect2 role="commands">
135 <title>Command Explanations</title>
136
137 <para>
138 <parameter>--enable-deprecated</parameter>: This switch enables
139 deprecated functionality which is still needed by some
140 applications.
141 </para>
142
143 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
144 href="../../xincludes/static-libraries.xml"/>
145
146 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
147 href="../../xincludes/gtk-doc-rebuild.xml"/>
148
149 </sect2>
150
151 <sect2 role="configuration" revision="systemd">
152
153 <title>Configuring UPower</title>
154<!-- timer statistics have been removed from kernel (since 4.11)
155 I do not know if there is a replacement. See
156 https://patchwork.kernel.org/patch/9561519
157 and https://bugs.freedesktop.org/show_bug.cgi?id=100626
158
159 <para>
160 To use the command <command>upower -w</command> for information about
161 processor wakeups (this command is used by <phrase revision="sysv"><ulink url="http://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/">gnome-power-manager</ulink></phrase><phrase revision="systemd"><xref linkend="gnome-power-manager"/></phrase>)
162 you need to enable CONFIG_TIMER_STATS. This is achieved in
163 <command>make menuconfig</command> by going to the &apos;kernel-hacking&apos;
164 menu and selecting &apos;Collect kernel timers statistics&apos;.
165 </para>
166-->
167 <sect3 id="upower-init" revision="systemd">
168 <title>Systemd Unit</title>
169
170 <para>
171 To start the <command>UPower</command> service at boot,
172 enable the previously installed systemd unit by
173 running the following command as the
174 <systemitem class="username">root</systemitem> user:
175 </para>
176
177 <indexterm zone="upower upower-init">
178 <primary sortas="f-upower">upower</primary>
179 </indexterm>
180
181<screen role="root"><userinput>systemctl enable upower</userinput></screen>
182
183 </sect3>
184
185 </sect2>
186
187 <sect2 role="content">
188 <title>Contents</title>
189
190 <segmentedlist>
191 <segtitle>Installed Program<!--
192See below... <phrase revision="systemd">s</phrase>--></segtitle>
193 <segtitle>Installed Libraries</segtitle>
194 <segtitle>Installed Directories</segtitle>
195
196 <seglistitem>
197 <seg>
198 upower
199<!-- <phrase revision="systemd"> and upowerd</phrase>
200Upowerd should not be listed, as it is in /usr/libexec, and is not supposed
201to be run by a user. Furthermore, upowerd is also in sysv, and there is no
202reason so single out systemd here. -->
203 </seg>
204 <seg>
205 libupower-glib.so
206 </seg>
207 <seg>
208 /etc/UPower,
209 /usr/include/libupower-glib, and
210 /var/lib/upower
211 </seg>
212 </seglistitem>
213 </segmentedlist>
214
215 <variablelist>
216 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
217 <?dbfo list-presentation="list"?>
218 <?dbhtml list-presentation="table"?>
219
220 <varlistentry id="upower-prog">
221 <term><command>upower</command></term>
222 <listitem>
223 <para>
224 is the <application>UPower</application> command line tool.
225 </para>
226 <indexterm zone="upower upower-prog">
227 <primary sortas="b-upower">upower</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231<!-- See above
232 <varlistentry id="upowerd" revision="systemd">
233 <term><command>upowerd</command></term>
234 <listitem>
235 <para>
236 is the <application>UPower</application> Daemon. It provides the
237 org.freedesktop.UPower service on the system message bus.
238 </para>
239 <indexterm zone="upower upowerd">
240 <primary sortas="b-upowerd">upowerd</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>-->
244
245 <varlistentry id="libupower-glib">
246 <term><filename class="libraryfile">libupower-glib.so</filename></term>
247 <listitem>
248 <para>
249 contains the <application>UPower</application> API functions.
250 </para>
251 <indexterm zone="upower libupower-glib">
252 <primary sortas="c-libupower-glib">libupower-glib.so</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 </variablelist>
258
259 </sect2>
260
261</sect1>
Note: See TracBrowser for help on using the repository browser.