I'm sorry i think i have sent the email to wrong mailing list(s).
Cem
Cem Kayali, 05/07/09 16:09:

Hi,

I have searched through Google and maling lists, and couldn't find a
good script that adjusts cpu frequency with respect to cpu temperature
(there are different approaches as far as i see).

This is very important for notebooks, and generally cooling problem
arises once a script (especially compiling process) uses cpus for
along time. In other words, this small script helps your notebook to
live longer (hopefully).

How to use:

1- According to number of cpus, add/remove temp{0} lines. Below one is
for core duo cpu and it checks temperature of both core. I would first
test value of 'envstat | grep cpu0 | cut -d \ -f 9 | cut -b 1,2'
command to make sure it gives the temperature of the core 0.