[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 " ">
|
---|
[c341539] | 9 | <!ENTITY upower-md5sum "9503a853e894630e023ee244d295fd27">
|
---|
[b5cd92fc] | 10 | <!ENTITY upower-size "394 KB">
|
---|
[c341539] | 11 | <!ENTITY upower-buildsize "8.5 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 |
|
---|
| 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 |
|
---|
[00c4d39] | 37 | &lfs70_checked;
|
---|
[1a55dac4] | 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>
|
---|
[c341539] | 64 | <para role="required">
|
---|
| 65 | <xref linkend="dbus-glib"/>,
|
---|
| 66 | <xref linkend="intltool"/>,
|
---|
| 67 | <xref linkend="polkit"/> and
|
---|
| 68 | <xref linkend="udev"/>
|
---|
| 69 | </para>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 72 | <para role="recommended">
|
---|
| 73 | <xref linkend="gobject-introspection"/>
|
---|
| 74 | (Required if building GNOME)
|
---|
| 75 | </para>
|
---|
[1a55dac4] | 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c341539] | 78 | <para role="optional">
|
---|
| 79 | <xref linkend="gtk-doc"/>
|
---|
| 80 | </para>
|
---|
[1a55dac4] | 81 |
|
---|
| 82 | <para condition="html" role="usernotes">User Notes:
|
---|
| 83 | <ulink url="&blfs-wiki;/upower"/></para>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of UPower</title>
|
---|
| 89 |
|
---|
| 90 | <para>Install <application>UPower</application> by running the following
|
---|
| 91 | commands:</para>
|
---|
| 92 |
|
---|
| 93 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 94 | --sysconfdir=/etc \
|
---|
| 95 | --localstatedir=/var \
|
---|
[c341539] | 96 | --libexecdir=/usr/lib/upower \
|
---|
| 97 | --disable-static &&
|
---|
[1a55dac4] | 98 | make</userinput></screen>
|
---|
| 99 |
|
---|
| 100 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 101 |
|
---|
| 102 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 103 |
|
---|
| 104 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="commands">
|
---|
| 109 | <title>Command Explanations</title>
|
---|
| 110 |
|
---|
[c341539] | 111 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 112 | href="../../xincludes/static-libraries.xml"/>
|
---|
[3990efec] | 113 |
|
---|
[1a55dac4] | 114 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 115 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
[00c4d39] | 119 | <sect2 role="configuration">
|
---|
| 120 | <title>Configuring your kernel for UPower</title>
|
---|
| 121 |
|
---|
| 122 | <para>To use the command <command>upower -w</command> for information about
|
---|
| 123 | processor wakeups (this command is used by <xref linkend="gnome-power-manager"/>)
|
---|
| 124 | you need to enable CONFIG_TIMER_STATS. This is achieved in
|
---|
| 125 | <command>make menuconfig</command> by going to the 'kernel-hacking'
|
---|
| 126 | menu and selecting 'Collect kernel timers statistics'.</para>
|
---|
| 127 |
|
---|
| 128 | </sect2>
|
---|
[1a55dac4] | 129 | <sect2 role="content">
|
---|
| 130 | <title>Contents</title>
|
---|
| 131 |
|
---|
| 132 | <segmentedlist>
|
---|
| 133 | <segtitle>Installed Programs</segtitle>
|
---|
[b5cd92fc] | 134 | <segtitle>Installed Library</segtitle>
|
---|
[1a55dac4] | 135 | <segtitle>Installed Directories</segtitle>
|
---|
| 136 |
|
---|
| 137 | <seglistitem>
|
---|
[c341539] | 138 | <seg>
|
---|
| 139 | upower and upowerd
|
---|
| 140 | </seg>
|
---|
| 141 | <seg>
|
---|
| 142 | libupower-glib.so
|
---|
| 143 | </seg>
|
---|
| 144 | <seg>
|
---|
| 145 | /etc/UPower, /usr/include/libupower-glib,
|
---|
| 146 | /usr/lib/upower and /var/lib/upower
|
---|
| 147 | </seg>
|
---|
[1a55dac4] | 148 | </seglistitem>
|
---|
| 149 | </segmentedlist>
|
---|
| 150 |
|
---|
| 151 | <variablelist>
|
---|
| 152 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 153 | <?dbfo list-presentation="list"?>
|
---|
| 154 | <?dbhtml list-presentation="table"?>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="upower-prog">
|
---|
| 157 | <term><command>upower</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>is the <application>UPower</application> command line
|
---|
| 160 | tool.</para>
|
---|
| 161 | <indexterm zone="upower upower-prog">
|
---|
| 162 | <primary sortas="b-upower">upower</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="upowerd">
|
---|
| 168 | <term><command>upowerd</command></term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>is the <application>UPower</application> Daemon. It provides the
|
---|
| 171 | org.freedesktop.UPower service on the system message bus.</para>
|
---|
| 172 | <indexterm zone="upower upowerd">
|
---|
| 173 | <primary sortas="b-upowerd">upowerd</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="libupower-glib">
|
---|
[c341539] | 179 | <term><filename class='libraryfile'>libupower-glib.so</filename></term>
|
---|
[1a55dac4] | 180 | <listitem>
|
---|
| 181 | <para>contains the <application>UPower</application> API
|
---|
| 182 | functions.</para>
|
---|
| 183 | <indexterm zone="upower libupower-glib">
|
---|
[c341539] | 184 | <primary sortas="c-libupower-glib">libupower-glib.so</primary>
|
---|
[1a55dac4] | 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | </variablelist>
|
---|
| 190 |
|
---|
| 191 | </sect2>
|
---|
| 192 |
|
---|
| 193 | </sect1>
|
---|