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
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:
displays an object path for each power devices on the system, for example:
displays the parameters for all power devices on the system.
displays the CPU wakeups on the system.
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.
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-detail option presents more detail than the
--monitor option. Press Ctrl+C to stop monitoring the system.
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
upower -i /org/freedesktop/UPower/devices/battery_BAT0