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.6 systemd platform.

Package Information

UPower Dependencies


dbus-glib-0.102, libusb-1.0.19, Polkit-0.112, and Systemd (for GUdev and Logind)

Optional (Required if building GNOME)



GTK-Doc-1.20, Python-3.4.1 (used only in the testsuite) and libimobiledevice

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

Installation of UPower

Install UPower by running the following commands:

./configure --prefix=/usr        \
            --sysconfdir=/etc    \
            --localstatedir=/var \
            --disable-static     &&

To test the results, issue: make check. Test suite should be run from a local GUI session started with dbus-launch.

Now, as the root user:

make install

Command Explanations

--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) 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'.

Systemd Units

To start the upowerd daemon at boot, enable the previously installed systemd unit by running the following command as the root user:

systemctl enable upower


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

Short Descriptions


is the UPower command line tool.


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


contains the UPower API functions.

Last updated on 2014-08-30 20:54:00 -0700