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