source: general/sysutils/upower.xml@ b84342d6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 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 b84342d6 was b84342d6, checked in by Krejzi <krejzi@…>, 12 years ago

accountsservice 0.6.20, anjuta 3.4.1, glib 2.32.2, gtk+ 3.4.2, polkit 0.105, polkit-gnome 0.105, udisks 1.96.0, upower 0.9.16

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

  • Property mode set to 100644
File size: 6.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 "65030caf519b8a06856c12b6668a9f57">
10 <!ENTITY upower-size "394 KB">
11 <!ENTITY upower-buildsize "8.5 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 &lfs70_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="polkit"/> and
82 <xref linkend="udev"/>
83 </para>
84
85 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
86 <para role="optional">
87 <xref linkend="gobject-introspection"/>
88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="gtk-doc"/>
93 </para>
94
95 <para condition="html" role="usernotes">User Notes:
96 <ulink url="&blfs-wiki;/upower"/></para>
97
98 </sect2>
99
100 <sect2 role="installation">
101 <title>Installation of UPower</title>
102
103 <para>
104 Install <application>UPower</application> by running the following
105 commands:
106 </para>
107
108<screen><userinput>./configure --prefix=/usr \
109 --sysconfdir=/etc \
110 --localstatedir=/var \
111 --libexecdir=/usr/lib/upower \
112 --disable-static &amp;&amp;
113make</userinput></screen>
114
115 <para>
116 To test the results, issue: <command>make check</command>.
117 </para>
118
119 <para>
120 Now, as the <systemitem class="username">root</systemitem> user:
121 </para>
122
123<screen role="root"><userinput>make install</userinput></screen>
124
125 </sect2>
126
127 <sect2 role="commands">
128 <title>Command Explanations</title>
129
130 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
131 href="../../xincludes/static-libraries.xml"/>
132
133 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
134 href="../../xincludes/gtk-doc-rebuild.xml"/>
135
136 </sect2>
137
138 <sect2 role="configuration">
139 <title>Configuring your kernel for UPower</title>
140
141 <para>
142 To use the command <command>upower -w</command> for information about
143 processor wakeups (this command is used by <xref linkend="gnome-power-manager"/>)
144 you need to enable CONFIG_TIMER_STATS. This is achieved in
145 <command>make menuconfig</command> by going to the &apos;kernel-hacking&apos;
146 menu and selecting &apos;Collect kernel timers statistics&apos;.
147 </para>
148
149 </sect2>
150 <sect2 role="content">
151 <title>Contents</title>
152
153 <segmentedlist>
154 <segtitle>Installed Programs</segtitle>
155 <segtitle>Installed Library</segtitle>
156 <segtitle>Installed Directories</segtitle>
157
158 <seglistitem>
159 <seg>
160 upower and upowerd
161 </seg>
162 <seg>
163 libupower-glib.so
164 </seg>
165 <seg>
166 /etc/UPower, /usr/include/libupower-glib,
167 /usr/lib/upower and /var/lib/upower
168 </seg>
169 </seglistitem>
170 </segmentedlist>
171
172 <variablelist>
173 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
174 <?dbfo list-presentation="list"?>
175 <?dbhtml list-presentation="table"?>
176
177 <varlistentry id="upower-prog">
178 <term><command>upower</command></term>
179 <listitem>
180 <para>
181 is the <application>UPower</application> command line tool.
182 </para>
183 <indexterm zone="upower upower-prog">
184 <primary sortas="b-upower">upower</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="upowerd">
190 <term><command>upowerd</command></term>
191 <listitem>
192 <para>
193 is the <application>UPower</application> Daemon. It provides the
194 org.freedesktop.UPower service on the system message bus.
195 </para>
196 <indexterm zone="upower upowerd">
197 <primary sortas="b-upowerd">upowerd</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="libupower-glib">
203 <term><filename class='libraryfile'>libupower-glib.so</filename></term>
204 <listitem>
205 <para>
206 contains the <application>UPower</application> API functions.
207 </para>
208 <indexterm zone="upower libupower-glib">
209 <primary sortas="c-libupower-glib">libupower-glib.so</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 </variablelist>
215
216 </sect2>
217
218</sect1>
Note: See TracBrowser for help on using the repository browser.