From Fedora Project Wiki

(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...')
 
No edit summary
Line 1: Line 1:
{{QA/Test_Case
{{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 working properly.
|description=This test case tests the pm-powersave command (pm-utils package) and the AC / battery detection (upower package).
{{admon/note|This test targets laptop users. 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=
|setup=
# Check that you have {{package|pm-utils}} installed:
# Check that you have ''pm-test-day'' package installed:
#:<pre>$ rpm -q pm-utils</pre>
#:<pre>$ rpm -q pm-test-day</pre>
# Install test script to /etc/pm/power.d by:
# Install the test script that will react to the AC / battery transitions:
#:<pre># wget --directory-prefix=/etc/pm/power.d "http://jskarvad.fedorapeople.org/osd"</pre>
#:<pre># ln -s /usr/share/pm-test-day/osd /etc/pm/power.d/</pre>
# Make it executable:
#:<pre># chmod a+rx /etc/pm/power.d/osd</pre>


|actions=
|actions=

Revision as of 23:28, 19 March 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. 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/share/pm-test-day/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.

Expected Results

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