you can paste the following perl one liner into the terminal to control the fan, just change the bold value at the end. Possible values are 0x1F to turn it off, 0x20 for maximum speed and 0x00 to reset it to its default behaviour. It's not a very convenient way, but it works, and is especially useful if you got a noisy fan.
sudo perl -e 'use POSIX; $i=IOPORTS; sysopen($i,"/dev/port",O_RDWR); sub i{sysseek $i,$_[0],0; sysread $i,$res,1; return unpack("C",$res)} sub o{sysseek $i,$_[1],0; syswrite $i,pack("C",$_[0]),1} sub w{$k=0; while((i($_[0])&0x02)&&($k<100)){sleep(0.01); $k++} return -($k==100)} sub e{o(0x81,0x66); if(!w(0x66)){o($_[0],0x62)} if(!w(0x66)){o($_[1],0x62)}} e(0x55,0x1F); close($i);'
Fortunately the AA1 has a built-in protection that starts the fan at maximum speed, if it's been previously turned off, once the processor reaches 70°C, and turns it off when the processor has been cooled down to 60°C after about 30 seconds.
Trouvé ici : http://macles.blogspot.com/2008/08/reading-internal-thermal-(...)
[^] # Re: bien mais des defauts !
Posté par Zorro . En réponse au journal Acer Aspire One Linux. Évalué à 3.
you can paste the following perl one liner into the terminal to control the fan, just change the bold value at the end. Possible values are 0x1F to turn it off, 0x20 for maximum speed and 0x00 to reset it to its default behaviour. It's not a very convenient way, but it works, and is especially useful if you got a noisy fan.
sudo perl -e 'use POSIX; $i=IOPORTS; sysopen($i,"/dev/port",O_RDWR); sub i{sysseek $i,$_[0],0; sysread $i,$res,1; return unpack("C",$res)} sub o{sysseek $i,$_[1],0; syswrite $i,pack("C",$_[0]),1} sub w{$k=0; while((i($_[0])&0x02)&&($k<100)){sleep(0.01); $k++} return -($k==100)} sub e{o(0x81,0x66); if(!w(0x66)){o($_[0],0x62)} if(!w(0x66)){o($_[1],0x62)}} e(0x55,0x1F); close($i);'Fortunately the AA1 has a built-in protection that starts the fan at maximum speed, if it's been previously turned off, once the processor reaches 70°C, and turns it off when the processor has been cooled down to 60°C after about 30 seconds.
Trouvé ici : http://macles.blogspot.com/2008/08/reading-internal-thermal-(...)