From Fedora Project Wiki

Revision as of 19:01, 19 March 2011 by Jskarvad (talk | contribs) (Created page with '{{QA/Test_Case |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 workin...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

  1. Check that you have Package-x-generic-16.pngpm-utils installed:
    $ rpm -q pm-utils
  2. Install test script to /etc/pm/power.d by:
    # wget --directory-prefix=/etc/pm/power.d "http://jskarvad.fedorapeople.org/osd"
  3. Make it executable:
    # chmod a+rx /etc/pm/power.d/osd

How to test

  1. Run on AC.
  2. Disconnect AC and run only on battery.
  3. Wait several seconds.
  4. Re-connect AC.

Expected Results

  1. "BATTERY" is shown in OSD when switched to battery.
  2. "AC LINE" is shown in OSD when switched to AC.