source: general/sysutils/upower.xml@ 36aff45

systemd-13485
Last change on this file since 36aff45 was 36aff45, checked in by DJ Lucas <dj@…>, 8 years ago

Remove -systemd naming for chapter 12

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

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