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-pm /etc/pm/power.d/
How to test
- Run on AC.
- In terminal run:
# touch /tmp/pmtd-pm.log && tail -f /tmp/pmtd-pm.log
- Disconnect AC and run only on battery.
- Wait several seconds.
- Re-connect AC.
Expected Results
- System properly reacts to AC / battery change.
- "BATTERY" is written to /tmp/pmtd-pm.log (and displayed in terminal, if you run the tail -f /tmp/pmtd-pm.log) when switched to battery.
- "AC LINE" is written to /tmp/pmtd-pm.log (and displayed in terminal, if you run the tail -f /tmp/pmtd-pm.log) when switched to AC.