[ltp] Fan always on problem... does it happen on R52 with the Intel Media Gr

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Thu, 11 Aug 2005 14:14:54 +0100 (BST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323328-1122867914-1123766094=:589
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Thu, 11 Aug 2005, Leon Brokken wrote:

> I've checked the archives, but can only dig up the init script, not the
> ibm_manage_fan.sh script.
> Could someone please post it again, or giveme a pointer as to where to
> find it?
>
> Not that my T41 is noisy at all, but it would be nice to not be running
> the fan if not necessary.
>
> Cheers, Leon.

If this helps, it's in my personal archive here:

From: Paul RIVIER <paul.rivier@eleve.emn.fr>
Subject: [ltp] Fan management for thinkpad
Date: Mon, 11 Jul 2005 12:46:54 +0200

I'll attach my own versions of Paul's scripts I nabbed at the time -
from memory all I did was add some chkconfig lines for Red Hat/Fedora
to the init - will be ignored by other distros - and a signal trap
in the main script for ^C and exit to always turn the fan back on in
case I was testing.  I maybe also changed the path to /usr/local/sbin.
The credit for the idea and script should go entirely to Paul.

To install just:
# cp ibm_manage_fan.sh /usr/local/sbin/
# cp init-script /etc/init.d/ibm_manage_fan

and turn on the service for your distro in the usual way - for
Fedora/RH:
# chkconfig ibm_manage_fan on
# service ibm_manage_fan start

You can tweak the battery and AC temperature limits.  Be *very*
careful using the scripts obviously.  I haven't checked for other
possible cases where they may crash and the fan stay off - in which
case you'll melt.  I don't really use it much.
--8323328-1122867914-1123766094=:589
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=init-script
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.63.0508111414540.589@localhost>
Content-Description: 
Content-Disposition: attachment; filename=init-script

IyEvYmluL3NoDQojDQojIGlibV9tYW5hZ2VfZmFuOiAgIENvbnRyb2xzIGZh
bg0KIw0KIyBjaGtjb25maWc6IDM0NSA5OCAwMg0KIyBkZXNjcmlwdGlvbjog
U3Rhcn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jaCAvdmFyL3J1bi9pYm0tbWFuYWdlLWZhbi1lbmFibGVkDQog
ICAgL3Vzci9sb2NhbC9zYmluL2libV9tYW5hZ2VfZmFuLnNoICYNCiAgICBl
Y2hvICJkb25lLiINCiAgICBleGl0IDANCiAgICA7Ow0KDQogIHJlc3RhcnR8
cmVsb2FkfGZvcmNlLXJlbG9hZCkNCiAgICBzZXQgLWUNCiAgICBlY2hvIC1u
ICJSZXN0YXJ0aW5nIHRoaW5rcGFkIGZhbiBtYW5hZ2VtZW50Li4uICINCiAg
ICAkMCBzdG9wID4gL2Rldi9udWxsDQogICAgJDAgc3RhcnQgPiAvZGV2L251
bGwNCiAgICBlY2hvICJkb25lLiINCiAgICBleGl0IDANCiAgICA7Ow0KDQog
IHN0b3ApDQogICAgZWNobyAtbiAiU3RvcHBpbmcgdGhpbmtwYWQgZmFuIG1h
bmFnZW1lbnQgLi4uICINCiAgICBybSAtZiAvdmFyL3J1bi9pYm0tbWFuYWdl
LWZhbi1lbmFibGVkDQogICAgc2xlZXAgNQ0KICAgIGVjaG8gLW4gZW5hYmxl
ID4gL3Byb2MvYWNwaS9pYm0vZmFuDQogICAgZWNobyAiZG9uZS4iDQogICAg
ZXhpdCAwDQogICAgOzsNCg0KICAqKQ0KICAgICAgZWNobyAiVXNhZ2U6ICQw
IHtzdG9wfHN0YXJ0fHJlc3RhcnR8cmVsb2FkfGZvcmNlLXJlbG9hZH0iID4m
Mg0KICAgICAgZXhpdCAxDQogICAgOzsNCmVzYWMNCg==

--8323328-1122867914-1123766094=:589
Content-Type: APPLICATION/x-sh; name=ibm_manage_fan.sh
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.63.0508111414541.589@localhost>
Content-Description: 
Content-Disposition: attachment; filename=ibm_manage_fan.sh

IyEvYmluL3NoCgojIGlibV9tYW5hZ2VfZmFuIHdyaXR0ZW4gYnkgUGF1bCBS
SVZJRVIgKHBhdWwucml2aWVyQGVsZXZlLmVtbi5mcikKIyB2ZXJza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