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.bz2">
|
---|
8 | <!ENTITY upower-download-ftp " ">
|
---|
9 | <!ENTITY upower-md5sum "822d7d495781c6bbed36981a7a78dd30">
|
---|
10 | <!ENTITY upower-size "442 MB">
|
---|
11 | <!ENTITY upower-buildsize "10 MB">
|
---|
12 | <!ENTITY upower-time "0.3 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>The <application>UPower</application> package provides an interface to
|
---|
33 | enumerating power devices, listening to device events and querying history
|
---|
34 | and statistics. Any application or service on the system can access the
|
---|
35 | org.freedesktop.UPower service via the system message bus.</para>
|
---|
36 |
|
---|
37 | &lfs65_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&upower-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&upower-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &upower-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &upower-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &upower-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &upower-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect3">UPower Dependencies</bridgehead>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
64 | <para role="required"><xref linkend="polkit"/> and
|
---|
65 | <xref linkend="udev"/> (with gudev)</para>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
68 | <para role="optional"><xref linkend="gtk-doc"/></para>
|
---|
69 |
|
---|
70 | <para condition="html" role="usernotes">User Notes:
|
---|
71 | <ulink url="&blfs-wiki;/upower"/></para>
|
---|
72 |
|
---|
73 | </sect2>
|
---|
74 |
|
---|
75 | <sect2 role="installation">
|
---|
76 | <title>Installation of UPower</title>
|
---|
77 |
|
---|
78 | <para>Install <application>UPower</application> by running the following
|
---|
79 | commands:</para>
|
---|
80 |
|
---|
81 | <screen><userinput>./configure --prefix=/usr \
|
---|
82 | --sysconfdir=/etc \
|
---|
83 | --localstatedir=/var \
|
---|
84 | --libexecdir=/usr/lib/upower &&
|
---|
85 | make</userinput></screen>
|
---|
86 |
|
---|
87 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
88 |
|
---|
89 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
90 |
|
---|
91 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
92 |
|
---|
93 | </sect2>
|
---|
94 |
|
---|
95 | <sect2 role="commands">
|
---|
96 | <title>Command Explanations</title>
|
---|
97 |
|
---|
98 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
99 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
100 |
|
---|
101 | </sect2>
|
---|
102 |
|
---|
103 | <sect2 role="content">
|
---|
104 | <title>Contents</title>
|
---|
105 |
|
---|
106 | <segmentedlist>
|
---|
107 | <segtitle>Installed Programs</segtitle>
|
---|
108 | <segtitle>Installed Libraries</segtitle>
|
---|
109 | <segtitle>Installed Directories</segtitle>
|
---|
110 |
|
---|
111 | <seglistitem>
|
---|
112 | <seg>upower and upowerd</seg>
|
---|
113 | <seg>libdevkit-power-gobject.{so,a} and libupower-glib.{so,a}</seg>
|
---|
114 | <seg>/usr/{include/{DeviceKit-power/devkit-power-gobject,
|
---|
115 | libupower-glib},lib/upower}, /var/lib/upower</seg>
|
---|
116 | </seglistitem>
|
---|
117 | </segmentedlist>
|
---|
118 |
|
---|
119 | <variablelist>
|
---|
120 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
121 | <?dbfo list-presentation="list"?>
|
---|
122 | <?dbhtml list-presentation="table"?>
|
---|
123 |
|
---|
124 | <varlistentry id="upower-prog">
|
---|
125 | <term><command>upower</command></term>
|
---|
126 | <listitem>
|
---|
127 | <para>is the <application>UPower</application> command line
|
---|
128 | tool.</para>
|
---|
129 | <indexterm zone="upower upower-prog">
|
---|
130 | <primary sortas="b-upower">upower</primary>
|
---|
131 | </indexterm>
|
---|
132 | </listitem>
|
---|
133 | </varlistentry>
|
---|
134 |
|
---|
135 | <varlistentry id="upowerd">
|
---|
136 | <term><command>upowerd</command></term>
|
---|
137 | <listitem>
|
---|
138 | <para>is the <application>UPower</application> Daemon. It provides the
|
---|
139 | org.freedesktop.UPower service on the system message bus.</para>
|
---|
140 | <indexterm zone="upower upowerd">
|
---|
141 | <primary sortas="b-upowerd">upowerd</primary>
|
---|
142 | </indexterm>
|
---|
143 | </listitem>
|
---|
144 | </varlistentry>
|
---|
145 |
|
---|
146 | <varlistentry id="libdevkit-power-gobject">
|
---|
147 | <term><filename class='libraryfile'>libdevkit-power-gobject.{so,a}</filename></term>
|
---|
148 | <listitem>
|
---|
149 | <para>contains the old DeviceKit-power API functions.</para>
|
---|
150 | <indexterm zone="upower libdevkit-power-gobject">
|
---|
151 | <primary sortas="c-libdevkit-power-gobject">libdevkit-power-gobject.{so,a}</primary>
|
---|
152 | </indexterm>
|
---|
153 | </listitem>
|
---|
154 | </varlistentry>
|
---|
155 |
|
---|
156 | <varlistentry id="libupower-glib">
|
---|
157 | <term><filename class='libraryfile'>libupower-glib.{so,a}</filename></term>
|
---|
158 | <listitem>
|
---|
159 | <para>contains the <application>UPower</application> API
|
---|
160 | functions.</para>
|
---|
161 | <indexterm zone="upower libupower-glib">
|
---|
162 | <primary sortas="c-libupower-glib">libupower-glib.{so,a}</primary>
|
---|
163 | </indexterm>
|
---|
164 | </listitem>
|
---|
165 | </varlistentry>
|
---|
166 |
|
---|
167 | </variablelist>
|
---|
168 |
|
---|
169 | </sect2>
|
---|
170 |
|
---|
171 | </sect1>
|
---|