UPower-0.9.21

Introduction to UPower

The UPower package provides an interface to enumerating power devices, listening to device events and querying history and statistics. Any application or service on the system can access the org.freedesktop.UPower service via the system message bus.

This package is known to build and work properly using an LFS-7.4 platform.

Package Information

UPower Dependencies

Required

dbus-glib-0.100.2, Intltool-0.50.2, libusb-1.0.9, Polkit-0.111, and udev-Installed LFS Version or udev-extras (from systemd) (for GUdev)

Recommended (runtime)

Optional (Required if building GNOME)

gobject-introspection-1.36.0

Optional

GTK-Doc-1.19 and Python-3.3.2 (used only in the testsuite).

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/upower

Installation of UPower

Install UPower by running the following commands:


./configure --prefix=/usr        \
            --sysconfdir=/etc    \
            --enable-deprecated  \
            --disable-static     \
            --localstatedir=/var \
            --libexecdir=/usr/lib/upower &&
make

To test the results, issue: make check. Some checks may not pass due to missing files.

Now, as the root user:

make install

Command Explanations

--enable-deprecated: This switch enables deprecated functionality which is still needed by some applications.

--disable-static: This switch prevents installation of static versions of the libraries.

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.

Configuring your kernel for UPower

To use the command upower -w for information about processor wakeups (this command is used by gnome-power-manager-3.8.2) you need to enable CONFIG_TIMER_STATS. This is achieved in make menuconfig by going to the 'kernel-hacking' menu and selecting 'Collect kernel timers statistics'.

Contents

Installed Programs: upower and upowerd
Installed Libraries: libupower-glib.so
Installed Directories: /etc/UPower, /usr/include/libupower-glib, /usr/lib/upower and /var/lib/upower

Short Descriptions

upower

is the UPower command line tool.

upowerd

is the UPower Daemon. It provides the org.freedesktop.UPower service on the system message bus.

libupower-glib.so

contains the UPower API functions.

Last updated on 2013-08-20 13:51:02 -0700