source: general/sysutils/upower.xml@ c67fbf64

systemd-11177
Last change on this file since c67fbf64 was c67fbf64, checked in by Krejzi <krejzi@…>, 11 years ago

Remove packages that are now in lfs systemd from blfs.

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

  • Property mode set to 100644
File size: 6.5 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 "f175984d142dc8d2353a7da609836b69">
10 <!ENTITY upower-size "404 KB">
11 <!ENTITY upower-buildsize "13 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 &lfs73_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="intltool"/>,
81 <xref linkend="libusb"/>,
82 <xref linkend="polkit"/> and
83 <xref linkend="systemd"/> (for GUdev)
84 </para>
85
86 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
87 <para role="optional">
88 <xref linkend="gobject-introspection"/>
89 </para>
90
91 <bridgehead renderas="sect4">Optional</bridgehead>
92 <para role="optional">
93 <xref linkend="gtk-doc"/> and
94 <xref linkend="python3"/> (used only in the testsuite).
95 </para>
96
97 <para condition="html" role="usernotes">User Notes:
98 <ulink url="&blfs-wiki;/upower"/>
99 </para>
100 </sect2>
101
102 <sect2 role="installation">
103 <title>Installation of UPower</title>
104
105 <para>
106 Install <application>UPower</application> by running the following
107 commands:
108 </para>
109
110<screen><userinput>./configure --prefix=/usr \
111 --sysconfdir=/etc \
112 --localstatedir=/var \
113 --libexecdir=/usr/lib/upower \
114 --enable-deprecated \
115 --disable-static &amp;&amp;
116make</userinput></screen>
117
118 <para>
119 To test the results, issue: <command>make check</command>.
120 </para>
121
122 <para>
123 Now, as the <systemitem class="username">root</systemitem> user:
124 </para>
125
126<screen role="root"><userinput>make install</userinput></screen>
127
128 </sect2>
129
130 <sect2 role="commands">
131 <title>Command Explanations</title>
132
133 <para>
134 <option>--enable-deprecated</option>: This switch enables
135 deprecated functionality which is still needed by some
136 applications.
137 </para>
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 <xref linkend="gnome-power-manager"/>)
153 you need to enable CONFIG_TIMER_STATS. This is achieved in
154 <command>make menuconfig</command> by going to the &apos;kernel-hacking&apos;
155 menu and selecting &apos;Collect kernel timers statistics&apos;.
156 </para>
157
158 </sect2>
159 <sect2 role="content">
160 <title>Contents</title>
161
162 <segmentedlist>
163 <segtitle>Installed Programs</segtitle>
164 <segtitle>Installed Libraries</segtitle>
165 <segtitle>Installed Directories</segtitle>
166
167 <seglistitem>
168 <seg>
169 upower and upowerd
170 </seg>
171 <seg>
172 libupower-glib.so
173 </seg>
174 <seg>
175 /etc/UPower,
176 /usr/include/libupower-glib,
177 /usr/lib/upower and
178 /var/lib/upower
179 </seg>
180 </seglistitem>
181 </segmentedlist>
182
183 <variablelist>
184 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
185 <?dbfo list-presentation="list"?>
186 <?dbhtml list-presentation="table"?>
187
188 <varlistentry id="upower-prog">
189 <term><command>upower</command></term>
190 <listitem>
191 <para>
192 is the <application>UPower</application> command line tool.
193 </para>
194 <indexterm zone="upower upower-prog">
195 <primary sortas="b-upower">upower</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="upowerd">
201 <term><command>upowerd</command></term>
202 <listitem>
203 <para>
204 is the <application>UPower</application> Daemon. It provides the
205 org.freedesktop.UPower service on the system message bus.
206 </para>
207 <indexterm zone="upower upowerd">
208 <primary sortas="b-upowerd">upowerd</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry id="libupower-glib">
214 <term><filename class="libraryfile">libupower-glib.so</filename></term>
215 <listitem>
216 <para>
217 contains the <application>UPower</application> API functions.
218 </para>
219 <indexterm zone="upower libupower-glib">
220 <primary sortas="c-libupower-glib">libupower-glib.so</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 </variablelist>
226
227 </sect2>
228
229</sect1>
Note: See TracBrowser for help on using the repository browser.