From Fedora Project Wiki

No edit summary
No edit summary
Line 14: Line 14:
# Wait several seconds.
# Wait several seconds.
# Re-connect AC.
# 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.
 
|results=
|results=
# System properly reacts to AC / battery change.
# System properly reacts to AC / battery change.

Revision as of 09:06, 29 September 2011

Description

This test case tests the pm-powersave command (pm-utils package) and the AC / battery detection (upower package).

Note.png
This test targets laptop users.
Note.png
If you do not have laptop feel free to skip this test. In this case please leave the corresponding column in the results table blank.

Setup

  1. Check that you have pm-test-day package installed:
    $ rpm -q pm-test-day
  2. 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

  1. Run on AC.
  2. Disconnect AC and run only on battery.
  3. Wait several seconds.
  4. 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

  1. System properly reacts to AC / battery change.
  2. "BATTERY" is shown in OSD when switched to battery.
  3. "AC LINE" is shown in OSD when switched to AC.