From Fedora Project Wiki
Description
This test targets the laptop users. It checks if the pm-powersave command (pm-utils package) and the AC / battery detection (upower package) is working properly.
Setup
- Check that you have
pm-utils
installed:$ rpm -q pm-utils
- Install test script to /etc/pm/power.d by:
# wget --directory-prefix=/etc/pm/power.d "http://jskarvad.fedorapeople.org/osd"
- Make it executable:
# chmod a+rx /etc/pm/power.d/osd
How to test
- Run on AC.
- Disconnect AC and run only on battery.
- Wait several seconds.
- Re-connect AC.
Expected Results
- "BATTERY" is shown in OSD when switched to battery.
- "AC LINE" is shown in OSD when switched to AC.