From Fedora Project Wiki

No edit summary
No edit summary
 
Line 12: Line 12:
# Run on AC.
# Run on AC.
# In terminal run:
# In terminal run:
#:<pre># tail -f /tmp/pmtd-pm.log</pre>
#:<pre># touch /tmp/pmtd-pm.log && tail -f /tmp/pmtd-pm.log</pre>
# Disconnect AC and run only on battery.
# Disconnect AC and run only on battery.
# Wait several seconds.
# Wait several seconds.

Latest revision as of 19:30, 12 April 2012

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-pm /etc/pm/power.d/

How to test

  1. Run on AC.
  2. In terminal run:
    # touch /tmp/pmtd-pm.log && tail -f /tmp/pmtd-pm.log
  3. Disconnect AC and run only on battery.
  4. Wait several seconds.
  5. Re-connect AC.

Expected Results

  1. System properly reacts to AC / battery change.
  2. "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.
  3. "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.