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.
Download (HTTP): https://gitlab.freedesktop.org/upower/upower/-/archive/v1.90.10/upower-v1.90.10.tar.bz2
Download SHA256 Sum: c1baf418b685ffe4150c8a75c04da0cec70323fe094b5b257b287eea564d3f56
Download MD5 sum: e67907514deb3accc190506b5957f7e9
Download size: 1,026.1 KB
Estimated disk space required: 5,218.1 KB
Estimated build time: less than 0.1 SBU
libgudev-238 and libusb-1.0.29
GLib-2.86.2 (with GObject Introspection)
Enable the following options in the kernel configuration and recompile the kernel if necessary:
General setup ---> -*- Namespaces support ---> [NAMESPACES] [*] User namespace [USER_NS]
Prepare UPower by running the following commands:
meson setup build \
--prefix=/usr \
--buildtype=release \
-D gtk-doc=false \
-D man=falseninja -C build
![[Note]](../images/note.png)
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
-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.