From owner-freebsd-mobile@FreeBSD.ORG Thu Jan 12 13:30:00 2006 Return-Path: X-Original-To: mobile@freebsd.org Delivered-To: freebsd-mobile@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5942716A41F for ; Thu, 12 Jan 2006 13:30:00 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2FCF43D48 for ; Thu, 12 Jan 2006 13:29:59 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from fwd30.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1Ex2WR-0004ll-00; Thu, 12 Jan 2006 14:29:47 +0100 Received: from ramses.kicks-ass.net (Tbu3PgZcQeR-FPzCNnT467N5gc3G1BK1cBTfmZVkaJYLUDaSUSY9rZ@[80.143.219.237]) by fwd30.sul.t-online.de with esmtp id 1Ex2W9-28otd20; Thu, 12 Jan 2006 14:29:29 +0100 Received: from [192.168.1.100] (dslb-084-061-008-144.pools.arcor-ip.net [84.61.8.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id 0AF01B833; Thu, 12 Jan 2006 14:29:20 +0100 (CET) Message-ID: <43C659A5.7080904@brueffer.de> Date: Thu, 12 Jan 2006 14:29:09 +0100 From: Markus Brueffer User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Tobias Roth References: <20060110175214.GA2519@droopy.unibe.ch> In-Reply-To: <20060110175214.GA2519@droopy.unibe.ch> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ID: Tbu3PgZcQeR-FPzCNnT467N5gc3G1BK1cBTfmZVkaJYLUDaSUSY9rZ@t-dialin.net X-TOI-MSGID: 17274f60-b4ad-4062-b5dd-d27593f4d90b Cc: jt@barfoos.de, mobile@freebsd.org Subject: Re: IBM Thinkpad Fan Control (acpi_ibm) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2006 13:30:00 -0000 Tobias Roth schrieb: > With acpi_ibm.ko, I can monitor fan speed, thermal sensors and do > many other nice things. However, my Thinkpad (a T43p) has an awfully > noisy fan, that, once the notebook reaches its standard working > temperature (around 45 deg C), turns on and never stops again. > > The generally accepted solution his to manually lower the fan speed > and live with the higher temperatures, which will still be in an > acceptable range even with slow running fans. The discussion and a > utility for Windows can be found here [1], and a linux tool is > described here [2]. > > Now my question. Since acpi_ibm.ko can already read temperature > sensors and fan speed, would it be feasable to teach it to control > fan speed as well? Is anyone working on it already? Or can someone > outline the steps that have to be taken so I can take a look and > see if I can do it myself? I didn't see any practical value in setting fancontrol and fanspeed last year (that was the time when the T43 wasn't yet around), therefore I didn't implement write support to prevent users from footshooting. Now that there is a real practical use of it, I have implemented the missing bits. >From the new part of the manpage: dev.acpi_ibm.0.fan Indicates whether the fan is in automatic (1) or manual (0) mode. dev.acpi_ibm.0.fan_level Indicates at what speed the fan should run when being in manual mode. Values are ranging from 0 (off) to 7 (max). The resulting speed differs from model to model. On a T41p this is as follows: 0 off 1, 2 ~3000 RPM 3, 4, 5 ~3600 RPM 6, 7 ~4300 RPM Please try the patch at http://people.freebsd.org/~markus/ibm/acpi_ibm.c.diff It should apply cleanly on -CURRENT and 6.0 and works nicely on my T41p. DISCLAIMER: Use this at your own risk. Messing around with fan speeds can seriously damage your notebook. Best regards, Markus