From Fedora Project Wiki

No edit summary
No edit summary
Line 3: Line 3:
|setup=
|setup=
# Check that you have {{package|powertop}} >= 1.97 installed:
# Check that you have {{package|powertop}} >= 1.97 installed:
#:<pre>rpm -q powertop</pre>
#:<pre>$ rpm -q powertop</pre>
#* If not install it.
#* If not install it:
#:<pre># yum install powertop</pre>
 
The calibration process could be affected by other power savings mechanisms. The PowerTOP can control brightness and wireless devices, thus we need to disable screensaver, screen dimming/turning off, transition to sleep mode, HDD power savings and cron service. Generic step-by-step instructions follows, please tune them according to your configuration.
The calibration process could be affected by other power savings mechanisms. The PowerTOP can control brightness and wireless devices, thus we need to disable screensaver, screen dimming/turning off, transition to sleep mode, HDD power savings and cron service. Generic step-by-step instructions follows, please tune them according to your configuration.
# Disable screensaver (if applicable).
# Disable screensaver (if applicable).
# Disable sleep mode, in Gnome 3:
# Disable sleep mode, in Gnome 3:
#:<pre>gnome-control-center power</pre>
#:<pre>$ gnome-control-center power</pre>
#* Uncheck "On battery power"
#* Uncheck "On battery power"
# Disable LCD power savings, in Gnome 3:
# Disable LCD power savings, in Gnome 3:
#:<pre>gnome-control-center screen</pre>
#:<pre>$ gnome-control-center screen</pre>
#* Uncheck "Dim screen to save power".
#* Uncheck "Dim screen to save power".
#* Set "Turn off after" to max. value.
#* Set "Turn off after" to max. value.
# Disable HDD power savings (needs root):
# Disable HDD power savings:
#:<pre>hdparm -B 255 /dev/sda || hdparm -B 254 /dev/sda</pre>
#:<pre># hdparm -B 255 /dev/sda || hdparm -B 254 /dev/sda</pre>
# Disable cron (needs root):
# Disable cron:
#:<pre>service crond stop</pre>
#:<pre># service crond stop</pre>
|actions=
|actions=
# Disconnect AC and run on battery.
# Disconnect AC and run on battery.
# Become root.
# Start calibration by:
# Start calibration by:
#:<pre>powertop --calibrate</pre>
#:<pre># powertop --calibrate</pre>
#*During the calibration process the PowerTOP will change various settings of your system including the LCD backlight, let it run. It will take approx. 10 minutes. Do not use your computer while calibrating. After the calibration the PowerTOP will start automatically.
#*During the calibration process the PowerTOP will change various settings of your system including the LCD backlight, let it run. It will take approx. 10 minutes. Do not use your computer while calibrating. After the calibration the PowerTOP will start automatically.
# Let the PowerTOP run to collect enough data. You can let it run in the background and simultaneously work with your computer as usual. In active idle the collection process can take 1 hour or more. After enough data are collected, the PowerTOP will start showing the estimation of power consumption for each item.
# Let the PowerTOP run to collect enough data. You can let it run in the background and simultaneously work with your computer as usual. In active idle the collection process can take 1 hour or more. After enough data are collected, the PowerTOP will start showing the estimation of power consumption for each item.

Revision as of 17:34, 19 March 2011

Description

This test targets laptop users. It checks the PowerTOP 2.x power estimation engine.

Setup

  1. Check that you have Package-x-generic-16.pngpowertop >= 1.97 installed:
    $ rpm -q powertop
    • If not install it:
    # yum install powertop

The calibration process could be affected by other power savings mechanisms. The PowerTOP can control brightness and wireless devices, thus we need to disable screensaver, screen dimming/turning off, transition to sleep mode, HDD power savings and cron service. Generic step-by-step instructions follows, please tune them according to your configuration.

  1. Disable screensaver (if applicable).
  2. Disable sleep mode, in Gnome 3:
    $ gnome-control-center power
    • Uncheck "On battery power"
  3. Disable LCD power savings, in Gnome 3:
    $ gnome-control-center screen
    • Uncheck "Dim screen to save power".
    • Set "Turn off after" to max. value.
  4. Disable HDD power savings:
    # hdparm -B 255 /dev/sda || hdparm -B 254 /dev/sda
  5. Disable cron:
    # service crond stop

How to test

  1. Disconnect AC and run on battery.
  2. Start calibration by:
    # powertop --calibrate
    • During the calibration process the PowerTOP will change various settings of your system including the LCD backlight, let it run. It will take approx. 10 minutes. Do not use your computer while calibrating. After the calibration the PowerTOP will start automatically.
  3. Let the PowerTOP run to collect enough data. You can let it run in the background and simultaneously work with your computer as usual. In active idle the collection process can take 1 hour or more. After enough data are collected, the PowerTOP will start showing the estimation of power consumption for each item.

Expected Results

  1. PowerTOP successfully collects calibration data.
  2. Power consumption estimation starts showing for each item in the first column.