[ltp] powerconsumption X200, X200s, X30x

Volker Krueger linux-thinkpad@linux-thinkpad.org
Sat, 02 May 2009 17:40:21 +0200


This is a multi-part message in MIME format.
--------------070803020002010108020303
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

this is a repost, since the other thread got shanghaied by an Xserver 
benchmark discussion :-)

I look forward to a good exchange of experience and comments concerning 
reducing the powerconsumption of the X200, X200s and X30x

I am particularly curious about Ferdinand's settings since he has such a 
low powerconsumtion with this X300

best,
Volker


--------------070803020002010108020303
Content-Type: message/rfc822;
 name="Re: [ltp] Thinkpad Power Consumption Roundup [TPCR].eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="Re: [ltp] Thinkpad Power Consumption Roundup [TPCR].eml"

Return-Path: linux-thinkpad-admin@linux-thinkpad.org
Received: from 130.225.192.226 (LHLO mail.imi.aau.dk) (130.225.192.226) by
 mail.imi.aau.dk with LMTP; Thu, 30 Apr 2009 09:56:36 +0200 (CEST)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mail.imi.aau.dk (Postfix) with ESMTP id A0E8E4C151
	for <vok@imi.aau.dk>; Thu, 30 Apr 2009 09:56:36 +0200 (CEST)
X-Virus-Scanned: amavisd-new at diego.external.imi.aau.dk
X-Spam-Flag: NO
X-Spam-Score: -2.387
X-Spam-Level: 
X-Spam-Status: No, score=-2.387 tagged_above=-10 required=4.6
	tests=[AWL=1.212, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.imi.aau.dk ([127.0.0.1])
	by localhost (mail.imi.aau.dk [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 78pB8tBmcrz0 for <vok@imi.aau.dk>;
	Thu, 30 Apr 2009 09:56:32 +0200 (CEST)
Received: from parabel.matrix.de (parabel.levigo.net [62.206.214.16])
	by mail.imi.aau.dk (Postfix) with ESMTP id 0293D4C148
	for <vok@cvmi.aau.dk>; Thu, 30 Apr 2009 09:56:31 +0200 (CEST)
Received: by parabel.matrix.de (Postfix, from userid 28)
	id B982833C78; Thu, 30 Apr 2009 10:04:01 +0200 (CEST)
Delivered-To: linux-thinkpad@matrix.de
Received: from sputnik.urmx.de (sputnik.urmx.de [88.198.51.18])
	by parabel.matrix.de (Postfix) with ESMTP id 9B9A033C78
	for <linux-thinkpad@linux-thinkpad.org>; Thu, 30 Apr 2009 10:03:17 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by sputnik.urmx.de (Postfix) with ESMTP id 21C4E600376C
	for <linux-thinkpad@linux-thinkpad.org>; Thu, 30 Apr 2009 10:03:18 +0200 (CEST)
X-Virus-Scanned: amavisd-new at urmx.de
X-policyd-weight: using cached result; rate: -7.6
Received: from mail.imi.aau.dk (diego.external.imi.aau.dk [130.225.192.226])
	by sputnik.urmx.de (Postfix) with ESMTP id AD8886003756
	for <linux-thinkpad@linux-thinkpad.org>; Thu, 30 Apr 2009 10:03:01 +0200 (CEST)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mail.imi.aau.dk (Postfix) with ESMTP id CABBE4C151
	for <linux-thinkpad@linux-thinkpad.org>; Thu, 30 Apr 2009 09:55:28 +0200 (CEST)
X-Virus-Scanned: amavisd-new at diego.external.imi.aau.dk
Received: from mail.imi.aau.dk ([127.0.0.1])
	by localhost (mail.imi.aau.dk [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 2x4styAGPEDN for <linux-thinkpad@linux-thinkpad.org>;
	Thu, 30 Apr 2009 09:55:23 +0200 (CEST)
Received: from [192.168.1.103] (d83-183-138-26.cust.tele2.se [83.183.138.26])
	by mail.imi.aau.dk (Postfix) with ESMTP id 1FFAD4C148
	for <linux-thinkpad@linux-thinkpad.org>; Thu, 30 Apr 2009 09:55:22 +0200 (CEST)
Message-ID: <49F95B2E.1020507@cvmi.aau.dk>
From: Volker Krueger <vok@cvmi.aau.dk>
User-Agent: Thunderbird 2.0.0.21 (X11/20090409)
MIME-Version: 1.0
To: linux-thinkpad@linux-thinkpad.org
Subject: Re: [ltp] Thinkpad Power Consumption Roundup [TPCR]
References: <49DCA866.10709@shacknet.at>
In-Reply-To: <49DCA866.10709@shacknet.at>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: linux-thinkpad-admin@linux-thinkpad.org
Errors-To: linux-thinkpad-admin@linux-thinkpad.org
X-BeenThere: linux-thinkpad@linux-thinkpad.org
X-Mailman-Version: 2.0.8
Precedence: bulk
Reply-To: linux-thinkpad@linux-thinkpad.org
List-Help: <mailto:linux-thinkpad-request@linux-thinkpad.org?subject=help>
List-Post: <mailto:linux-thinkpad@linux-thinkpad.org>
List-Subscribe: <http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad>,
	<mailto:linux-thinkpad-request@linux-thinkpad.org?subject=subscribe>
List-Id: This list for users of Linux on IBM Thinkpads. <linux-thinkpad.linux-thinkpad.org>
List-Unsubscribe: <http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad>,
	<mailto:linux-thinkpad-request@linux-thinkpad.org?subject=unsubscribe>
List-Archive: <http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/>
Date: Thu, 30 Apr 2009 10:02:54 +0200

Hi guys,

i thought it might make sense to revisit the power-consumption issue.

I realized in the meantime (I had a bit of time over eastern) how are 
things working under ubuntu. Many things are still not clear to me so I 
decided to not use laptop-mode-tools and make a powersave file myself, 
which I placed in /etc/pm/power.d

Below are powersave.sh and xorg.conf
i use the latest ubuntu version.

With these, I use right now long-term 9.1W, but short-term right now 
8.0W and 7.5W shortterm when the disk is off.

best,
Volker


/etc/pm/power.d/powersave.sh:

#!/bin/bash
if on_ac_power; then
# normal settings

  hdparm -B 200 -S 240 -M 254 /dev/sda
  mount -o remount,commit=60 /
  mount -o remount,commit=60 /home

  echo 0 > /proc/sys/vm/laptop_mode

  echo 10 > /proc/sys/vm/dirty_ratio
  echo 5 > /proc/sys/vm/dirty_background_ratio
  echo 500 > /proc/sys/vm/dirty_writeback_centisecs
  echo max_performance > 
/sys/class/scsi_host/host0/link_power_management_policy
  echo max_performance > 
/sys/class/scsi_host/host1/link_power_management_policy   

  modprobe e1000e
 
  echo 0 > /proc/sys/kernel/nmi_watchdog
  echo 0 > /sys/devices/system/cpu/sched_mc_power_savings
else
# Turn on power savings
  hdparm -B 1 -S 12 /dev/sda

  mount -o remount,commit=600 /
  mount -o remount,commit=600 /home

 
  echo 5 > /proc/sys/vm/laptop_mode
  echo 90 > /proc/sys/vm/dirty_ratio
  echo 1 > /proc/sys/vm/dirty_background_ratio
  echo 30000 > /proc/sys/vm/dirty_writeback_centisecs
  echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
  echo min_power > /sys/class/scsi_host/host1/link_power_management_policy
  echo 1 > /sys/devices/system/cpu/sched_mc_power_savings
  echo 0 > /proc/sys/kernel/nmi_watchdog
  echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

  echo 10 > /sys/module/snd_hda_intel/parameters/power_save

  iwconfig wlan0 power on

  echo 5 > /sys/bus/pci/drivers/iwlagn/*/power_level

  echo 5 > /proc/sys/vm/laptop_mode
 
  rmmod e1000e

fi

/etc/X11/xorg.conf
Section "Device"
    Identifier    "Configured Video Device"
        Option "AccelMethod" "UXA"
EndSection

Section "Monitor"
    Identifier    "Configured Monitor"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Monitor        "Configured Monitor"
    Device        "Configured Video Device"
EndSection



-- 
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

--------------070803020002010108020303--