fan control
I noticed that not only can I check the status of the fan in /proc/acpi/fan but I can change it. Since this issue does not seem to be documented (am I wrong?) I want to be sure I am not doing anything wrong.
Here is the structure of my /proc/acpi/fan directory
$ ls -R /proc/acpi/fan /proc/acpi/fan: C1D9 C1DA C1DB C1DC
/proc/acpi/fan/C1D9:
state
/proc/acpi/fan/C1DA:
state
/proc/acpi/fan/C1DB:
state
/proc/acpi/fan/C1DC:
state
If the fan is off, I see:
$ cat /proc/acpi/fan/*/* status: off status: off status: off status: off
If it is spinning slowly, I get
$ cat /proc/acpi/fan/*/* status: off status: off status: off status: on
If it is at maximum speed, I have
$ cat /proc/acpi/fan/*/* status: on status: on status: on status: on
And analogous things for the intermediate situations.
Now, I noticed that if I echo 0 into the state files, the fan start spinning. So that, for instance, if I am in the case when only the first state is on, then
$ cat /proc/acpi/fan/*/* status: off status: off status: off status: on $ echo -n 0 > /proc/acpi/fan/C1DB/state $ cat /proc/acpi/fan/*/* status: off status: off status: on status: on
and the fan spins faster...
To go back, it is sufficient to echo 3 into the same file and the corresponding state goes off.
I understand this procedure might be very dangerous. How am I sure that, after playing with the fans, the control of them goes back to the thermal zones?
Any pointer is appreciated.
Daniele
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines
I understand this procedure might be very dangerous. How am I sure that, after playing with the fans, the control of them goes back to the thermal zones?
After stop it, try to compile a kernel, it must level up the
temperature and spin up the fan.
Signature · 4 lines
Un saludo
Raul Aranda Blasco
[email protected]
http://elistan.dragon-lance.netA message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines
Quoted 2 lines
I understand this procedure might be very dangerous. How am I sure that, after playing with the fans, the control of them goes back to the thermal zones?
After stop it, try to compile a kernel, it must level up the
temperature and spin up the fan.
I think I didn't explain the question correctly. The fans and the thermal zones do work well. No problems at all. I was just wondering about the consequences of playing with the fans (like I did with changing their status). If I reboot, then the next session is OK..., but within the same session, suppose I just switch the fans from one to two and then back to one. Then, I start some heavy job and the temperature increases. Will then the kernel spin the fun up or my previous action prevents it from doing so?
Daniele
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Daniele Boffi
I think I didn't explain the question correctly. The fans and the thermal zones do work well. No problems at all. I was just wondering about the consequences of playing with the fans (like I did with changing their status). If I reboot, then the next session is OK..., but within the same session, suppose I just switch the fans from one to two and then back to one. Then, I start some heavy job and the temperature increases. Will then the kernel spin the fun up or my previous action prevents it from doing so?
That's what I meant before
After changing the fan speeds and stopping them, try to compiling a
kernel and use "acpi -V" to see how the temperature goes up and the fan starts to work (managed by the thermal zone).
Signature · 4 lines
Un saludo
Raul Aranda Blasco
[email protected]
http://elistan.dragon-lance.net