source: general/sysutils/upower.xml@ 4e5b62c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 4e5b62c was 4e5b62c, checked in by Fernando de Oliveira <fernando@…>, 11 years ago

Update to upower-0.9.23.

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

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