public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* fan
@ 2002-09-01 21:33 joerg.beyer-htSm2yLGOjU
       [not found] ` <200209012133.g81LXbX31417-pb599fR3TxVkExQqqHjIK3sFFmKitW5W@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: joerg.beyer-htSm2yLGOjU @ 2002-09-01 21:33 UTC (permalink / raw)
  To: acpilist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-02 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-01 21:33 fan joerg.beyer-htSm2yLGOjU
     [not found] ` <200209012133.g81LXbX31417-pb599fR3TxVkExQqqHjIK3sFFmKitW5W@public.gmane.org>
2002-09-02 18:26   ` fan Arndt Schoenewald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox