From Fedora Project Wiki
Description
This test case tests the pm-powersave command (pm-utils package) and the AC / battery detection (upower package).
Setup
- Check that you have pm-test-day package installed:
$ rpm -q pm-test-day
- Install the test script that will react to the AC / battery transitions:
# ln -s /usr/bin/pmtd-osd /etc/pm/power.d/
How to test
- Run on AC.
- Disconnect AC and run only on battery.
- Wait several seconds.
- Re-connect AC.
If the OSD is not shown, patch the pmtd-osd by following command:
# echo 'echo "$STR" >> /tmp/pmtd-osd.log' >> /usr/bin/pmtd-osd
and than read the OSD messages from /tmp/pmtd-osd.log If this work, consider this test as passed.
Expected Results
- System properly reacts to AC / battery change.
- "BATTERY" is shown in OSD when switched to battery.
- "AC LINE" is shown in OSD when switched to AC.