QA:Testcase DeviceKit power
DeviceKit-power is a little service that takes data from the kernel, and processes it so that it's easy to consume. Known consumers are gnome-power-manager and the XFCE battery widget. DeviceKit-power gets all the data from the kernel over the dbus service DeviceKit.
How to test
- Ensure packages are installed by typing:
# yum install gnome-power-manager DeviceKit-power
- Remove and insert the AC adaptor while watching output from the following commands:
# devkit --monitorand
# devkit-power --monitor
- Launch Applications -> System Tools -> Power Statistics and inspect the displayed performance metrics
- Examine wake-ups by typing:
# devkit-power --wakeups
- Run devkit-power-daemon in verbose mode:
# killall devkit-power-daemon; /usr/libexec/devkit-power-daemon --verbose
- Crash test - devkit-power: use
# pkill -SIGSEGV devkit-power; use invalid input
- Crash test - devkit-power-daemon:
# pkill -SIGSEGV devkit-power-daemon; use dbus-send; use d-feet to execute methods
- All steps successfully executed with no SELinux errors or permission denials
- Inserting and removing AC adapter is observed by using devkit monitor tools
- gnome-power-statistics - All percentages are 0..100 and the values look sensible (for instance, Voltage is 0..20V, not 340034V). If this is the case please open a bug and dump the output of /sys/class/power_supply/*/*. If the values in /sys are wrong, then it's not a DeviceKit-power bug, it's a kernel bug or hardware fault.
- devkit-power - produces userspace and kernel wakeups, and that these are sensible. The first time you run this command, you'll probably get no data, but just try again in a few seconds, and you should have some values. We don't poll by default all the time, as this itself would use power.
- devkit-power-daemon or devkit-power should not crash unless killed