UPower-1.90.10

Introduction to UPower

The UPower package provides an interface for 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 12.4 platform.

Package Information

UPower Dependencies

Required

libgudev-238 and libusb-1.0.29

Optional (Required if building GNOME)

GLib-2.86.2 (with GObject Introspection)

Optional

libxslt-1.1.43, docbook-xsl-nons-1.79.2, PyGObject-3.54.5,

Kernel Configuration

Enable the following options in the kernel configuration and recompile the kernel if necessary:

General setup --->
  -*- Namespaces support --->                                       [NAMESPACES]
    [*] User namespace                                                 [USER_NS]

Installation of UPower

Prepare UPower by running the following commands:

meson setup build         \
      --prefix=/usr       \
      --buildtype=release \
      -D gtk-doc=false    \
      -D man=false
ninja -C build
[Note]

Note

The test suite should be run from a local GUI session started with dbus-launch. On 32-bit machines, one test will fail due to rounding errors: Tests.test_battery_energy_charge_mixed. On some systems, two tests relating to the headphone hotplug feature are known to fail. Those can be safely ignored since the functionality still works. To test the results, issue:

LC_ALL=C ninja -C build test

Now Install the package, as the root user:

ninja -C build install

Command Explanations

-D gtk-doc=false: Prevents building the documentation. Remove this if you have GTK-Doc installed and wish to build the documentation.

-D man=false: Prevents building the manual pages. Remove this if you have libxslt-1.1.43 and docbook-xsl-nons-1.79.2 installed and wish to build the manual pages.

Contents

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

Short Descriptions

upower

is the UPower command line tool

libupower-glib.so

contains the UPower API functions