%general-entities; ]> $Date$ UPower-&upower-version; UPower 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. &lfs112_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &upower-md5sum; Download size: &upower-size; Estimated disk space required: &upower-buildsize; Estimated build time: &upower-time; UPower Dependencies Required , , and Optional (Required if building GNOME) Optional , , , (for part of the test suite), and libimobiledevice User Notes: Kernel Configuration Enable the following options in the kernel configuration and recompile the kernel if necessary: General Setup ---> [*] Namespaces support ---> [CONFIG_NAMESPACES] [*] User namespace [CONFIG_USER_NS] upower Installation of UPower First, remove an unneeded dependency from a test: sed '/parse_version/d' -i src/linux/integration-test.py Install UPower by running the following commands: mkdir build && cd build && meson --prefix=/usr \ --buildtype=release \ -Dgtk-doc=false \ -Dman=false \ -Dsystemdsystemunitdir=no \ -Dudevrulesdir=/usr/lib/udev/rules.d \ .. && ninja mkdir build && cd build && meson --prefix=/usr \ --buildtype=release \ -Dgtk-doc=false \ -Dman=false \ .. && ninja To test the results, issue: LC_ALL=C ninja test. Some checks may not pass due to missing files. Test suite should be run from a local GUI session started with dbus-launch. Now, as the root user: ninja install Command Explanations -Dgtk-doc=false: Prevents building the documentation. Remove this if you have GTK-Doc installed and wish to build the documentation. -Dman=false: Prevents building the manual pages. Remove this if you have GTK-Doc installed and wish to build the manual pages. -Dsystemdsystemunitdir=no: Removes the dependency on systemd. -Dudevrulesdir=/usr/lib/udev/rules.d: Tells the build system where to install udev rules because the information is missing in /usr/lib/pkgconfig/libudev.pc Configuring UPower Systemd Unit To start the UPower service at boot, enable the previously installed systemd unit by running the following command as the root user: upower systemctl enable upower Contents Installed Program Installed Libraries Installed Directories upower libupower-glib.so /etc/UPower, /usr/include/libupower-glib, and /var/lib/upower Short Descriptions upower is the UPower command line tool upower libupower-glib.so contains the UPower API functions libupower-glib.so