Best Gateway Solo 1450 page ... ever

| | Comments (0) |

OK, so the bar is fairly low when it comes to pages about how to deal with the Gateway Solo 1450 and Linux. This page is the only place I've seen a sane way to deal with the CPU fan (besides my mentions of it). Here at least you can find out how to set the trip points.

The page is fairly old (2004), and I reproduce the fan section here if only because I fear the page disappearing:

Turning off the Fan
If you were wondering why I made this page despite the fact that there are several already out there, it was for this section right here. The general solution to this problem is to make some stupid shell script that checks the temperature and manually activates/deactivates the fan. This is the wrong way to do it. You see, since you already went through the hassle of installing the latest ACPI patch, you can make use of the kernel's ability to do this for you!

Add this to the earliest boot script you can find, like rc.sysinit under Redhat. The idea is that you want to turn off the fan before you start fsck'ing your disk so that you can squeeze the most out of your battery life.

echo 100:90:85:80:80 > /proc/acpi/thermal_zone/THRM/trip_points
echo 30 > /proc/acpi/thermal_zone/THRM/polling_frequency

# It's safe to turn the fan off now.
echo -n 3 > /proc/acpi/fan/FAN0/state


WARNING These numbers represent the temperature in Celsius at which each state should be triggered. The numbers you should inject into "/proc/acpi/thermal_zone/THRM/trip_points" may be different for your computer. Before you set these numbers, check what the current values are set to by using cat /proc/acpi/thermal_zone/THRM/trip_points. Note that while some fields may be omitted when you read this file (on my machine the Hot field is not shown), all fields must be set when you write to it. The correct order is Critical:Hot:Passive:Active0:Active1 (note colon seperation).

Alternatively, you can use this shell script which I wrote to do the same thing in a more user friendly manner. This script only changes the fields which you mean to change, and not any others. I highly recommend that you use this script (below) because it has the least chance of melting your processor.

function reset_trip_points
{
if [ -f /proc/acpi/thermal_zone/THRM/trip_points -a -f /proc/acpi/thermal_zone/THRM/polling_frequency ]
then

ifs=$IFS
IFS="
"
for i in `cat /proc/acpi/thermal_zone/THRM/trip_points`
do
j="${i%% C*}"
j="${j##* }"
i=${i%%[ :]*}
i=${i//[][]/}
case "$i" in
critical|hot|passive|active0|active1)
eval "[ \"x\$$i\" = x0 ] && $i=\$j"
;;
esac
done
IFS=$ifs

echo $critical:$hot:$passive:$active0:$active1 > /proc/acpi/thermal_zone/THRM/trip_points

# Activate the kernel's temperature control system
echo 30 > /proc/acpi/thermal_zone/THRM/polling_frequency

# It's safe to turn the fan off now.
echo -n 3 > /proc/acpi/fan/FAN0/state
fi
}

# Set the new value for the temperature you would like to change, or leave it
# at zero to get the default.
critical=0
hot=0
passive=0
active0=0
active1=80

# Make the Kernel handle CPU temperature management.
# Do this before the filesystem checks so that the fan will turn off and stop
# draining the battery.
reset_trip_points

Leave a comment

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appears Saturdays in the Los Angeles Daily News, is now available on the Daily News Technology page.

About this blog

Comments are back: Comments have returned to Click, but due to the thousands of spam comments clogging up the system each day, commenters must now log in. To comment, either create a Movable Type account when prompted, or create and use a Typekey account. Movable Type, as configured on this blog, allows commenters to create a Movable Type account, verify it via e-mail and then sign in to comment. Other methods of verification are OpenID, Live Journal and Vox.




Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Entry

This page contains a single entry by Steven Rosenberg published on October 10, 2008 1:00 AM.

The hidden power of Gmail, the increasing reach of everything Google and the inevitability of cloud computing was the previous entry in this blog.

Debian Lenny: Stable not in Sept. '08, maybe in June '09 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

Powered by Movable Type 4.21-en

Advertisement

Other blogs

About The Run Defense in Inside USC with Scott Wolf
HS FOOT: Taft up 16-0 after three quarters in Daily News High School Spotlight
Halftime: Lakers 50, Suns 44 in Inside the Lakers
Elton Brand saga Part I in Inside the Clippers
Kings vs. Capitals in Inside the Kings