public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: <joerg.beyer-htSm2yLGOjU@public.gmane.org>
To: acpilist <acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: fan
Date: Sun, 1 Sep 2002 23:33:37 +0200	[thread overview]
Message-ID: <200209012133.g81LXbX31417@mailgate5.cinetic.de> (raw)

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

             reply	other threads:[~2002-09-01 21:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-01 21:33 joerg.beyer-htSm2yLGOjU [this message]
     [not found] ` <200209012133.g81LXbX31417-pb599fR3TxVkExQqqHjIK3sFFmKitW5W@public.gmane.org>
2002-09-02 18:26   ` fan Arndt Schoenewald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209012133.g81LXbX31417@mailgate5.cinetic.de \
    --to=joerg.beyer-htsm2ylgoju@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox