public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniele Boffi <boffi-piYtxHxN1XRAly3Pu9w1wA@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: fan control
Date: Thu, 1 May 2003 18:51:37 +0200	[thread overview]
Message-ID: <20030501185137.C926@fermat.unipv.it> (raw)

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

             reply	other threads:[~2003-05-01 16:51 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-01 16:51 Daniele Boffi [this message]
     [not found] ` <20030501185137.C926-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2003-05-01 18:23   ` fan control Raul Aranda Blasco
     [not found]     ` <1051813408.607.3.camel-bi+AKbBUZKZeoWH0uzbU5w@public.gmane.org>
2003-05-01 18:33       ` Daniele Boffi
     [not found]         ` <20030501203309.B1662-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2003-05-01 18:56           ` Raul Aranda Blasco
  -- strict thread matches above, loose matches on Subject: below --
2003-05-02  8:17 Herbert Nachtnebel
     [not found] ` <B900970C7DD9474C972986EB3EC7C58F12EC9A-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
2003-05-02  8:31   ` Daniele Boffi
     [not found]     ` <20030502103102.A2867-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2003-05-02  8:56       ` Ducrot Bruno
     [not found]         ` <20030502085643.GH2954-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2003-05-02  9:23           ` Markus Gaugusch
2003-05-02  9:03       ` Franck SICARD
2003-05-02  9:24       ` Stefan Behnel
     [not found]         ` <3EB23932.9090508-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
2003-05-02 11:38           ` Ducrot Bruno
     [not found]             ` <20030502113819.GJ2954-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2003-05-06  9:21               ` Éric Brunet
     [not found]                 ` <20030506092120.GA24982-l5PIGlIYzrxGWvitb5QawA@public.gmane.org>
2003-05-06 10:56                   ` Adachi, Kenichi
     [not found]                     ` <01bb01c313be$1845afc0$b8d21b2b-5Bsh/8v8vXc@public.gmane.org>
2003-05-06 15:04                       ` Ducrot Bruno
2003-05-02  9:53   ` Daniele Boffi
2003-05-02 10:30 Herbert Nachtnebel
2003-05-02 10:50 Herbert Nachtnebel
     [not found] ` <B900970C7DD9474C972986EB3EC7C58F0D409F-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
2003-05-02 11:04   ` Daniele Boffi
2003-05-02 11:11 Herbert Nachtnebel
     [not found] ` <B900970C7DD9474C972986EB3EC7C58F12EC9E-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
2003-05-02 11:17   ` Daniele Boffi
2003-05-02 11:41 Herbert Nachtnebel
     [not found] <B900970C7DD9474C972986EB3EC7C58F0D40A0@andromeda.agcad.local>
     [not found] ` <B900970C7DD9474C972986EB3EC7C58F0D40A0-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
2003-05-02 11:43   ` Daniele Boffi
2003-05-02 12:00 Herbert Nachtnebel
     [not found] ` <B900970C7DD9474C972986EB3EC7C58F0D40A1-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
2003-05-02 12:06   ` Daniele Boffi

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=20030501185137.C926@fermat.unipv.it \
    --to=boffi-piytxhxn1xraly3pu9w1wa@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