fan
Hi,
I am unsure if the fan handling on my laptop works, so I made a experiment. I wanted to switch the fan on and off via echo -n 0 > /proc/acpi/fan/FAN/state
to switch the fan off and echo -n 1 >.../state to switch the fan on. That did not work. First of all: cat /proc/acpi/fan/FAN/state
always said that "status: on" - but the fan some times
on, some times off.
For better debugging, I added a printk in fan.c:acpi_fan_write_state, as you can see below. I echo'd the values you can see. The fan began to work when I said "echo -n 3> /proc/a/f/F/state".
from var log messages:
Sep 1 23:05:03 wally kernel: fan_write 0, state_string '0' Sep 1 23:05:22 wally kernel: fan_write 1, state_string '1' Sep 1 23:05:22 wally kernel: acpi_bus-0472 [06] acpi_bus_set_power : Device does not support D1 Sep 1 23:06:27 wally kernel: fan_write 3, state_string '3' Sep 1 23:06:27 wally kernel: acpi_power-0363 [07] acpi_power_transition : Error transitioning device [FAN] to D3 Sep 1 23:06:27 wally kernel: acpi_bus-0521 [06] acpi_bus_set_power : Error transitioning device [FAN] to D3 Sep 1 23:06:42 wally kernel: fan_write 1, state_string '1' Sep 1 23:06:42 wally kernel: acpi_bus-0472 [06] acpi_bus_set_power : Device does not support D1 Sep 1 23:06:50 wally kernel: fan_write 3, state_string '3' Sep 1 23:06:55 wally kernel: fan_write 0, state_string '0'
I am using linux-2.4.20-pre5 with latest apci patch, everthing enabled, on a laptop. If you need more input, please ask.
Here my questions:
is echo -n 0 >/proc/acpi/fan/FAN/state
ment to stop the fan and
is echo -n 1 >/proc/acpi/fan/FAN/state
ment to start the fan?
What does the "Error transitioning device [FAN] to D3" mean?
TIA
Joerg
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Quoted 7 lines · On Sun, Sep 01, 2002 at 11:33:37PM +0200…
[...]
Here my questions:is echo -n 0 >/proc/acpi/fan/FAN/state ment to stop the fan and
is echo -n 1 >/proc/acpi/fan/FAN/state ment to start the fan?
No, as I understand it, "echo -n 0 >/proc/acpi/fan/FAN/state" should start the fan and "echo -n 3 >/proc/acpi/fan/FAN/state" should stop it.
But, actually, on my system the "3" doesn't stop the fan but makes it turn slower (and less noisy); "0" turns it back to full speed.
(I have a Gericom 1st Supersonic M6-T laptop.)
Quoted 1 line
What does the "Error transitioning device [FAN] to D3" mean?
Don't know for sure, sorry, but it seems that the system fails to remove the power to the fan.
Good luck,
Arndt
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390