Your T43 Fan Script

Solaris, RedHat, FreeBSD and the like
Post Reply

Do you use a fan script?

Yes
3
33%
No
6
67%
 
Total votes: 9

Message
Author
fhobia
Posts: 2
Joined: Sat Aug 06, 2005 12:05 pm
Contact:

Your T43 Fan Script

#1 Post by fhobia » Sat Nov 12, 2005 10:49 pm

Hello all,

I've been fooling around with the ibm-acpi module, which now allows us to manipulate the fan manually depending on the thermal readings. I realize it's dangerous to do this, so I thought I would share the script I am using. Do you see any harm with it?

Furthermore, I was curious what other T43 owners were using? So, please share what script you're using or none if you aren't!


Well, here is mine adapted from http://www.thinkwiki.org/wiki/ACPI_fan_ ... ol_scripts:

Code: Select all

#!/bin/sh

IBM_ACPI=/proc/acpi/ibm
THERMAL=$IBM_ACPI/thermal
FAN=$IBM_ACPI/fan

NO_FAN_TRIPPOINT=50
FIXED_FAN_TRIPPOINT=55
AUTO_FAN_TRIPPOINT=60

SLEEP_SECONDS=5

trap "echo enable > $FAN; exit 0" HUP KILL INT ABRT STOP QUIT SEGV TERM

echo disable > $FAN
while [ 1 ];
do
   TEMPERATURES=`sed s/temperatures:// < $THERMAL`
   MAX_TEMPERATURE=0

   for TEMPERATURE in $TEMPERATURES
   do
      if [ $TEMPERATURE -gt $MAX_TEMPERATURE ] ; then
         MAX_TEMPERATURE=$TEMPERATURE
      fi
   done

   if [ $MAX_TEMPERATURE -le $NO_FAN_TRIPPOINT ] ; then
      echo disable > /proc/acpi/ibm/fan
   elif [ $MAX_TEMPERATURE -ge $FIXED_FAN_TRIPPOINT ] && \
    [ $MAX_TEMPERATURE -lt $AUTO_FAN_TRIPPOINT ] ; then
      echo 0x2F 0x02 > /proc/acpi/ibm/ecdump
   elif [ $MAX_TEMPERATURE -ge $AUTO_FAN_TRIPPOINT ] ; then
      echo enable > /proc/acpi/ibm/fan
   fi

   sleep $SLEEP_SECONDS
done
Thanks,
-Brian

fran1451
Posts: 3
Joined: Thu Nov 10, 2005 4:15 am

Re: Your T43 Fan Script

#2 Post by fran1451 » Sun Nov 13, 2005 6:39 pm

fhobia wrote:Hello all,

I've been fooling around with the ibm-acpi module, which now allows us to manipulate the fan manually depending on the thermal readings. I realize it's dangerous to do this, so I thought I would share the script I am using. Do you see any harm with it?
Hi,

I would appreciate if some code gurus would adapt the code for windows... I think it must be possible to do! Any volunteers? :)

smugiri
Senior Member
Senior Member
Posts: 774
Joined: Tue Nov 23, 2004 4:29 pm
Location: Mississauga, ON
Contact:

#3 Post by smugiri » Fri Dec 09, 2005 11:42 pm

Steve

redchair
Posts: 20
Joined: Thu Feb 16, 2006 11:43 am

#4 Post by redchair » Sat Jul 22, 2006 8:36 pm

I use a fan script, but it doesn't actually read temperatures, it just leaves the fan on at a constant 0x2F 0x01 level. As for danger, we can only hope that the undocumented use of the ecdump is doing what we want it to do and nothing more or less, right?

The reason why this is because with my usage the operating temperature range of the computer is 62 C max when the fan is completely off, and 46 C max when I let the EC handle the cooling all by itself. That, combined with the fact that cpufreq seems to reduce the 2GHz cpu to 800 MHz at any temperature above 55C, I feel I am happy with just a constant fan that maintiains my comp at around 48-57 C regardless of what I'm doing (web, writing, programming). This self-throttling behavior is for "balanced" ATM in the BIOS only.

For something that I'll probably put in another topic later: Here is how you prevent the t43p from changing /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq to 800000 at 55C:
[[http://www.thinkwiki.org/wiki/How_to_ma ... cy_Scaling
"You may need to set your BIOS to "maximum performance" if you are using Linux to set the CPU speed. This is necessary to prevent odd behaviour (cpufreq 'freezing' at certain frequencies) with the T4x series."
T43p 2668

mfratt
Sophomore Member
Posts: 162
Joined: Tue Feb 14, 2006 7:39 pm
Location: North of Boston
Contact:

#5 Post by mfratt » Wed Aug 16, 2006 11:03 am

X60s 1704-69U (Core Duo 1.66LV, 1.5GB, 100GB 5400, 12.1" XGA, WWAN, 8 Cell, DVDRW in X6)
External Storage: 250GB + 500GB Porshce

T40 Project: (Planned) P-M 2GHz, 2GB, 100GB, DVDRW

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 0 guests