source: general/sysutils/upower.xml@ 22fdf95

systemd-13485
Last change on this file since 22fdf95 was 22fdf95, checked in by Douglas R. Reno <renodr@…>, 8 years ago

colord-1.2.12: Fix duplicate dependency on valgrind
UPower-0.99.3: gnome-power-manager is in the book, not external
cups-2.1.3: Remove --disable-systemd from the configure script, since we are running systemd

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16964 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.2 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 "39cfd97bfaf7d30908f20cf937a57634">
10 <!ENTITY upower-size "416 KB">
11 <!ENTITY upower-buildsize "10 MB">
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 &lfs78_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">Recommended (runtime)</bridgehead>
86 <para role="recommended">
87 <xref linkend="pm-utils"/>
88 </para>
89
90 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
91 <para role="optional">
92 <xref linkend="gobject-introspection"/>
93 </para>
94
95 <bridgehead renderas="sect4">Optional</bridgehead>
96 <para role="optional">
97 <xref linkend="gtk-doc"/> and
98 <xref linkend="python3"/> (used only in the testsuite).
99 </para>
100
101 <para condition="html" role="usernotes">User Notes:
102 <ulink url="&blfs-wiki;/upower"/>
103 </para>
104 </sect2>
105
106 <sect2 role="installation">
107 <title>Installation of UPower</title>
108
109 <para>
110 Install <application>UPower</application> by running the following
111 commands:
112 </para>
113
114<screen><userinput>./configure --prefix=/usr \
115 --sysconfdir=/etc \
116 --localstatedir=/var \
117 --enable-deprecated \
118 --disable-static &amp;&amp;
119make</userinput></screen>
120
121 <para>
122 To test the results, issue: <command>make check</command>. Some
123 checks may not pass due to missing files. Test suite should be run from
124 a local GUI session started with dbus-launch.
125 </para>
126
127 <para>
128 Now, as the <systemitem class="username">root</systemitem> user:
129 </para>
130
131<screen role="root"><userinput>make install</userinput></screen>
132
133 </sect2>
134
135 <sect2 role="commands">
136 <title>Command Explanations</title>
137
138 <para>
139 <option>--enable-deprecated</option>: This switch enables
140 deprecated functionality which is still needed by some
141 applications.
142 </para>
143
144 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
145 href="../../xincludes/static-libraries.xml"/>
146
147 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
148 href="../../xincludes/gtk-doc-rebuild.xml"/>
149
150 </sect2>
151
152 <sect2 role="configuration">
153 <title>Configuring your kernel for UPower</title>
154
155 <para>
156 To use the command <command>upower -w</command> for information about
157 processor wakeups (this command is used by <xref linkend="gnome-power-manager"/>)
158 you need to enable CONFIG_TIMER_STATS. This is achieved in
159 <command>make menuconfig</command> by going to the &apos;kernel-hacking&apos;
160 menu and selecting &apos;Collect kernel timers statistics&apos;.
161 </para>
162
163 <sect3 id="upower-init">
164 <title>Systemd Units</title>
165
166 <para>
167 To start the <command>upowerd</command> daemon at boot,
168 enable the previously installed systemd unit by
169 running the following command as the
170 <systemitem class="username">root</systemitem> user:
171 </para>
172
173 <indexterm zone="upower upower-init">
174 <primary sortas="f-upower">upower</primary>
175 </indexterm>
176
177<screen role="root"><userinput>systemctl enable upower</userinput></screen>
178
179 </sect3>
180
181 </sect2>
182
183 <sect2 role="content">
184 <title>Contents</title>
185
186 <segmentedlist>
187 <segtitle>Installed Programs</segtitle>
188 <segtitle>Installed Libraries</segtitle>
189 <segtitle>Installed Directories</segtitle>
190
191 <seglistitem>
192 <seg>
193 upower and upowerd
194 </seg>
195 <seg>
196 libupower-glib.so
197 </seg>
198 <seg>
199 /etc/UPower,
200 /usr/include/libupower-glib, and
201 /var/lib/upower
202 </seg>
203 </seglistitem>
204 </segmentedlist>
205
206 <variablelist>
207 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
208 <?dbfo list-presentation="list"?>
209 <?dbhtml list-presentation="table"?>
210
211 <varlistentry id="upower-prog">
212 <term><command>upower</command></term>
213 <listitem>
214 <para>
215 is the <application>UPower</application> command line tool.
216 </para>
217 <indexterm zone="upower upower-prog">
218 <primary sortas="b-upower">upower</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 <varlistentry id="upowerd">
224 <term><command>upowerd</command></term>
225 <listitem>
226 <para>
227 is the <application>UPower</application> Daemon. It provides the
228 org.freedesktop.UPower service on the system message bus.
229 </para>
230 <indexterm zone="upower upowerd">
231 <primary sortas="b-upowerd">upowerd</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="libupower-glib">
237 <term><filename class="libraryfile">libupower-glib.so</filename></term>
238 <listitem>
239 <para>
240 contains the <application>UPower</application> API functions.
241 </para>
242 <indexterm zone="upower libupower-glib">
243 <primary sortas="c-libupower-glib">libupower-glib.so</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 </variablelist>
249
250 </sect2>
251
252</sect1>
Note: See TracBrowser for help on using the repository browser.