PDA

View Full Version : Gestione ventole sui portatili


Stex75
24-10-2007, 10:07
Sto cercando di installare un programma (dellfand) per gestire in modo migliore le ventole del portatile (la gestione da bios del dell 9400 non è il massimo di certo). Su win uso i8kfangui, la versione per linux e kernel 2.6.x è dellfand:

http://dellfand.dinglisch.net/

Purtroppo sono molto ignorante in queste cose e il mio inglese aiuta poco:dovrebbe bastare scompattarlo e dalla cartella del prg ed eseguire un make.

Tratto dal sito:

Download/Build
dellfand is only available as a source tarball, since the static build would quickly overwhelm my bandwidth quota.
dellfand-0.8.tar.bz2
Extract with
tar xvf dellfand-0.8.tar.bz2
Build with
cd dellfand-0.8; make

CommandLine Usage
Without arguments, the daemon will print the fan status once and exit.
Normal usage is:
dellfand mode sleep-seconds off low high
You must run as root. All arguments are mandatory.
mode
0 - run in the foreground, print stats periodically
1 - run in the background as daemon, no output
sleep-seconds
dellfand will check the CPU temperature with this interval and adjust the fan speed according to the last 3 arguments
off
when the fan is on, turn it off when the temperature has dropped to this level
low
turn the fan to low speed when it reaches this temperature
high
turn the fan to high speed when it reaches this temperature

Info Line
dellfand displays output like this:
Fan 0 Status 1->0 Speed 77640 CPU Temp 29C
Meaning fan 0 is running at 77640rpm, the temperature is 29 degrees celcius and the fan status has just been changed from 1 to 0 (i.e. the fan is moving from low speed to off, so the speed will shortly be 0).


Se digito dellfand da console (sia root che utente normale) mi restituisce un bel command not found, e cmq non è presente da nessuna parte il comando dellfand. Devo copiarlo a "manina" nelle varie cartelle (tipo /usr/bin o sbin, ecc?)

Se si vuole eseguirlo come demone in background c'è uno script (sempre tratto dal sito):

Daemon Usage
If your system is compatible, I recommend using the included init script (etc.init.d.dellfand) for running in daemon mode (which is the mode you'll probably want after testing the parameters). Otherwise, you can just start it by setting the mode argument to 1.
You must run as root.
The init script has a status argument which will print the process and fan status, and return a value dependent on whether dellfand is running or not. Of course, you must amend the script to point at the daemon.
Tested Platforms
I have only tested this software on a Dell Inspiron 6000 with BIOS A09 running Debian on Linux kernel 2.6.18.
I suspect it will work with a large number of other Dell laptops. The list at the i8kfan site is perhaps a good guide.
I have seen reports or been told that dellfand works with the following laptops:
Inspiron 1300, 1520, 6000, 6400, 8600, 9400/Royal; CS400, D520, D610, D820, e1505, XPS m1210, Precision M50
Please let me know if you have it running succesfully (or not) elsewhere.
Cmq non trovo ne il comando dellfand in /usr/sbin ne so come caricare all'avvio lo script sopra segnalato etc.init.d.dellfand che dovrebbe gestire automaticamente le ventole (questo script si "appoggia" ad un file in cui sono specificate le temperature a cui le ventole devono cambiare stato, che dovrebbe essere etc.default.dellfand).

Come distro utilizzo pclinuxos 2007 (derivata da mandriva). Posso eventualmente copiare lo script in /usr/local/bin e questo viene eseguito all'avvio? Devo inserire eventualmente qualcosa in /etc/rc.d/rc.local?

Purtroppo la mia scarsa conoscenza in queste cose mi blocca e info più accurate in giro non ne ho trovate.

Sapete aiutarmi?

Grazie e ciauz!!

mykol
24-10-2007, 10:31
su "Linux Magazine" di novembre 2007 c'è un articolo su quell'argomento.

Tratta di "cpu scaling", "cpu frequency", "powernow", ecc..., credo tutto quanto serve a te.

Stex75
24-10-2007, 10:37
Ciao!

Per la frequenza della cpu non ho problemi (e mai avuti per fortuna sia su fisso che su portatile). Provo cmq a dare un'occhiata, se lo trovo in edicola. Grazie

Mi servirebbe cmq qualche dritta sul com procedere in questo caso con dellfand (magari è la volta buona che imparo qualcosa!! :D)....