[1a55dac4] | 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 |
|
---|
[b5cd92fc] | 7 | <!ENTITY upower-download-http "http://upower.freedesktop.org/releases/upower-&upower-version;.tar.xz">
|
---|
[1a55dac4] | 8 | <!ENTITY upower-download-ftp " ">
|
---|
[e3c48e9] | 9 | <!ENTITY upower-md5sum "1aa2b9e6fd757cd151bbaa4991eacc18">
|
---|
| 10 | <!ENTITY upower-size "416 KB">
|
---|
| 11 | <!ENTITY upower-buildsize "14 MB">
|
---|
[b5cd92fc] | 12 | <!ENTITY upower-time "0.2 SBU">
|
---|
[1a55dac4] | 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 |
|
---|
[b84342d6] | 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>
|
---|
[1a55dac4] | 38 |
|
---|
[89a3b06] | 39 | &lfs73_checked;
|
---|
[1a55dac4] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[b84342d6] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&upower-download-http;"/>
|
---|
| 46 | </para>
|
---|
[1a55dac4] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[b84342d6] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&upower-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[1a55dac4] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[b84342d6] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &upower-md5sum;
|
---|
| 56 | </para>
|
---|
[1a55dac4] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[b84342d6] | 59 | <para>
|
---|
| 60 | Download size: &upower-size;
|
---|
| 61 | </para>
|
---|
[1a55dac4] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[b84342d6] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &upower-buildsize;
|
---|
| 66 | </para>
|
---|
[1a55dac4] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[b84342d6] | 69 | <para>
|
---|
| 70 | Estimated build time: &upower-time;
|
---|
| 71 | </para>
|
---|
[1a55dac4] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect3">UPower Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c341539] | 78 | <para role="required">
|
---|
| 79 | <xref linkend="dbus-glib"/>,
|
---|
| 80 | <xref linkend="intltool"/>,
|
---|
[f57b5c7] | 81 | <xref linkend="libusb"/>,
|
---|
[e6ce81b6] | 82 | <xref linkend="polkit"/>, and
|
---|
[caed4c52] | 83 | <xref linkend="udev"/> or
|
---|
| 84 | <xref linkend="udev-extras"/> (for GUdev)
|
---|
[c341539] | 85 | </para>
|
---|
| 86 |
|
---|
[70727c9] | 87 | <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
|
---|
| 88 | <para role="recommended">
|
---|
| 89 | <xref linkend="pm-utils"/>
|
---|
| 90 | </para>
|
---|
| 91 |
|
---|
[4c2be438] | 92 | <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
|
---|
| 93 | <para role="optional">
|
---|
[c341539] | 94 | <xref linkend="gobject-introspection"/>
|
---|
| 95 | </para>
|
---|
[1a55dac4] | 96 |
|
---|
| 97 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c341539] | 98 | <para role="optional">
|
---|
[3bbf74c5] | 99 | <xref linkend="gtk-doc"/> and
|
---|
| 100 | <xref linkend="python3"/> (used only in the testsuite).
|
---|
[c341539] | 101 | </para>
|
---|
[1a55dac4] | 102 |
|
---|
| 103 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 104 | <ulink url="&blfs-wiki;/upower"/>
|
---|
| 105 | </para>
|
---|
[1a55dac4] | 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="installation">
|
---|
| 109 | <title>Installation of UPower</title>
|
---|
| 110 |
|
---|
[b84342d6] | 111 | <para>
|
---|
| 112 | Install <application>UPower</application> by running the following
|
---|
| 113 | commands:
|
---|
| 114 | </para>
|
---|
[1a55dac4] | 115 |
|
---|
| 116 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 117 | --sysconfdir=/etc \
|
---|
| 118 | --localstatedir=/var \
|
---|
[c341539] | 119 | --libexecdir=/usr/lib/upower \
|
---|
[6d8f6dc] | 120 | --enable-deprecated \
|
---|
[c341539] | 121 | --disable-static &&
|
---|
[1a55dac4] | 122 | make</userinput></screen>
|
---|
| 123 |
|
---|
[b84342d6] | 124 | <para>
|
---|
[e3c48e9] | 125 | To test the results, issue: <command>make check</command>. Some
|
---|
| 126 | checks may not pass due to missing files.
|
---|
[b84342d6] | 127 | </para>
|
---|
[1a55dac4] | 128 |
|
---|
[b84342d6] | 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
[1a55dac4] | 132 |
|
---|
| 133 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
[6d8f6dc] | 140 | <para>
|
---|
| 141 | <option>--enable-deprecated</option>: This switch enables
|
---|
| 142 | deprecated functionality which is still needed by some
|
---|
| 143 | applications.
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
[c341539] | 146 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[b84342d6] | 147 | href="../../xincludes/static-libraries.xml"/>
|
---|
[3990efec] | 148 |
|
---|
[1a55dac4] | 149 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[b84342d6] | 150 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[1a55dac4] | 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
[00c4d39] | 154 | <sect2 role="configuration">
|
---|
| 155 | <title>Configuring your kernel for UPower</title>
|
---|
| 156 |
|
---|
[b84342d6] | 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 'kernel-hacking'
|
---|
| 162 | menu and selecting 'Collect kernel timers statistics'.
|
---|
| 163 | </para>
|
---|
[00c4d39] | 164 |
|
---|
| 165 | </sect2>
|
---|
[1a55dac4] | 166 | <sect2 role="content">
|
---|
| 167 | <title>Contents</title>
|
---|
| 168 |
|
---|
| 169 | <segmentedlist>
|
---|
| 170 | <segtitle>Installed Programs</segtitle>
|
---|
[b35ec46c] | 171 | <segtitle>Installed Libraries</segtitle>
|
---|
[1a55dac4] | 172 | <segtitle>Installed Directories</segtitle>
|
---|
| 173 |
|
---|
| 174 | <seglistitem>
|
---|
[c341539] | 175 | <seg>
|
---|
| 176 | upower and upowerd
|
---|
| 177 | </seg>
|
---|
| 178 | <seg>
|
---|
| 179 | libupower-glib.so
|
---|
| 180 | </seg>
|
---|
| 181 | <seg>
|
---|
[7ded7e3] | 182 | /etc/UPower,
|
---|
| 183 | /usr/include/libupower-glib,
|
---|
| 184 | /usr/lib/upower and
|
---|
| 185 | /var/lib/upower
|
---|
[c341539] | 186 | </seg>
|
---|
[1a55dac4] | 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>
|
---|
[b84342d6] | 198 | <para>
|
---|
| 199 | is the <application>UPower</application> command line tool.
|
---|
| 200 | </para>
|
---|
[1a55dac4] | 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>
|
---|
[b84342d6] | 210 | <para>
|
---|
| 211 | is the <application>UPower</application> Daemon. It provides the
|
---|
| 212 | org.freedesktop.UPower service on the system message bus.
|
---|
| 213 | </para>
|
---|
[1a55dac4] | 214 | <indexterm zone="upower upowerd">
|
---|
| 215 | <primary sortas="b-upowerd">upowerd</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
| 219 |
|
---|
| 220 | <varlistentry id="libupower-glib">
|
---|
[caed4c52] | 221 | <term><filename class="libraryfile">libupower-glib.so</filename></term>
|
---|
[1a55dac4] | 222 | <listitem>
|
---|
[b84342d6] | 223 | <para>
|
---|
| 224 | contains the <application>UPower</application> API functions.
|
---|
| 225 | </para>
|
---|
[1a55dac4] | 226 | <indexterm zone="upower libupower-glib">
|
---|
[c341539] | 227 | <primary sortas="c-libupower-glib">libupower-glib.so</primary>
|
---|
[1a55dac4] | 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
| 232 | </variablelist>
|
---|
| 233 |
|
---|
| 234 | </sect2>
|
---|
| 235 |
|
---|
| 236 | </sect1>
|
---|