Show Table of Contents
2.6. UPower
In Red Hat Enterprise Linux 6 DeviceKit-power assumed the power management functions that were part of HAL and some of the functions that were part of GNOME Power Manager in previous releases of Red Hat Enterprise Linux (refer also to Section 2.7, “GNOME Power Manager”. Red Hat Enterprise Linux 7, DeviceKit-power was renamed to UPower. UPower provides a daemon, an API, and a set of command-line tools. Each power source on the system is represented as a device, whether it is a physical device or not. For example, a laptop battery and an AC power source are both represented as devices.
You can access the command-line tools with the
upower command and the following options:
--enumerate,-e- displays an object path for each power devices on the system, for example:
/org/freedesktop/UPower/devices/line_power_AC/org/freedesktop/UPower/devices/battery_BAT0 --dump,-d- displays the parameters for all power devices on the system.
--wakeups,-w- displays the CPU wakeups on the system.
--monitor,-m- monitors the system for changes to power devices, for example, the connection or disconnection of a source of AC power, or the depletion of a battery. Press Ctrl+C to stop monitoring the system.
--monitor-detail- monitors the system for changes to power devices, for example, the connection or disconnection of a source of AC power, or the depletion of a battery. The
--monitor-detailoption presents more detail than the--monitoroption. Press Ctrl+C to stop monitoring the system. --show-info object_path,-i object_path- displays all information available for a particular object path. For example, to obtain information about a battery on your system represented by the object path
/org/freedesktop/UPower/devices/battery_BAT0, run:~]$
upower -i /org/freedesktop/UPower/devices/battery_BAT0

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.