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.5 platform.
Download (HTTP): http://upower.freedesktop.org/releases/upower-0.9.23.tar.xz
Download MD5 sum: 39cfd97bfaf7d30908f20cf937a57634
Download size: 416 KB
Estimated disk space required: 10 MB
Estimated build time: 0.2 SBU
dbus-glib-0.102, Intltool-0.50.2, libusb-1.0.18, Polkit-0.112, and udev-extras (from systemd) (for GUdev)
GTK-Doc-1.19 and Python-3.3.4 (used only in the testsuite).
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/upower
Install UPower by running the following commands:
./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-deprecated \ --disable-static && make
To test the results, issue: make check. Some checks may not pass due to missing files.
Now, as the root
user:
make install
--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.
To use the command upower -w for information about processor wakeups (this command is used by gnome-power-manager-3.10.1) 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'.
Last updated on 2014-02-20 03:30:41 -0800