2.6. DeviceKit-power and devkit-power
In Red Hat Enterprise Linux 6 DeviceKit-power assumes 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”). DeviceKit-power 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
devkit-powercommand and the following options:
- displays an object path for each power devices on the system.
Example 2.6. Sample Output of Object Paths
- 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-detailoption presents more detail than the
--monitoroption. Press Ctrl+C to stop monitoring the system.
- displays all information available for a particular object path.
Example 2.7. Using the -i optionTo obtain information about a battery on your system represented by the object path
devkit-power -i /org/freedesktop/UPower/DeviceKit/power/battery_BAT0