public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* fan control
@ 2003-05-01 16:51 Daniele Boffi
       [not found] ` <20030501185137.C926-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
  0 siblings, 1 reply; 24+ messages in thread
From: Daniele Boffi @ 2003-05-01 16:51 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: fan control
@ 2003-05-02  8:17 Herbert Nachtnebel
       [not found] ` <B900970C7DD9474C972986EB3EC7C58F12EC9A-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
  0 siblings, 1 reply; 24+ messages in thread
From: Herbert Nachtnebel @ 2003-05-02  8:17 UTC (permalink / raw)
  To: Daniele Boffi, Raul Aranda Blasco
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> > > 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.
> > 

Yes it will, if not please report it to the list.

Herbert.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: fan control
@ 2003-05-02 10:30 Herbert Nachtnebel
  0 siblings, 0 replies; 24+ messages in thread
From: Herbert Nachtnebel @ 2003-05-02 10:30 UTC (permalink / raw)
  To: Daniele Boffi; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> Then, which is strange, it looked like
> 
> status:                  off
> status:                  off
> status:                  on
> status:                  off
>
> when the temperature was more than 62 C and, finally

That's not strange. It's only the way the BIOS presents your devices. >From the naming of your FAN devices I see that you are using a Compaq notebook. They replace the meaningful names they use for developing with a rather strange sort of autogenerated names to obscure the interpreted ACPI source code. Linux presents all devices with the name declared in the DSDT (in contrast to the other operating system). For you it now  appears that the FANs aren't sorted in the correct way.

> As a conclusion, I am now convinced that my bios is smart enough and that
> there is no risk of burning the CPU. Acpi does a good job, some report is not
> correct (same is happening with processor performance: works fine but is
> always reporting status P0).

The risk of burning the CPU is really very small. There exist a critical temprature where the system is powered off immediately. Only when the BIOS vendor has screwed the thermal zone table (oh yes, also that exists) it could happen that your CPU is burned.

Regards, Herbert.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: fan control
@ 2003-05-02 10:50 Herbert Nachtnebel
       [not found] ` <B900970C7DD9474C972986EB3EC7C58F0D409F-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
  0 siblings, 1 reply; 24+ messages in thread
From: Herbert Nachtnebel @ 2003-05-02 10:50 UTC (permalink / raw)
  To: Daniele Boffi; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> I am afraid I couldn't get it. I think the fans are sorted correctly (in
> reverse order). Usally I see something like

That's really not difficult - you have

/proc/acpi/fan:
C1D9  C1DA  C1DB  C1DC

and the alphanumeric ordering of the names of your FAN's don't represents the ordering in which they are activated from the thermal zone. If you now use ls/find/cat to display the state, you will not see the behaviour you expect.

Herbert.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: fan control
@ 2003-05-02 11:11 Herbert Nachtnebel
       [not found] ` <B900970C7DD9474C972986EB3EC7C58F12EC9E-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
  0 siblings, 1 reply; 24+ messages in thread
From: Herbert Nachtnebel @ 2003-05-02 11:11 UTC (permalink / raw)
  To: Daniele Boffi; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Please tell me the contents of /proc/acpi/thermal_zone/THRM/trip_points.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: fan control
@ 2003-05-02 11:41 Herbert Nachtnebel
  0 siblings, 0 replies; 24+ messages in thread
From: Herbert Nachtnebel @ 2003-05-02 11:41 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> > Please tell me the contents of /proc/acpi/thermal_zone/THRM/trip_points.
>
> I have three thermal zones. The one related to CPU is:

Oops, sorry. To intimate with my rewritten naming and didn't expect more than one tz.

> /proc/acpi/thermal_zone/TZ1/trip_points
> 
> critical (S5):           93 C
> passive:                 91 C: tc1=1 tc2=2 tsp=100 devices=0xc184c940
> active[0]:               78 C: devices=0xc18f1a40
> active[1]:               72 C: devices=0xc18f1b80
> active[2]:               67 C: devices=0xc18f1c80
> active[3]:               40 C: devices=0xc18f1d80

Ok, four trip points, four FAN "devices"/states, lowest one at 40 deg. 
You told us that your lowest temperature is about 50 deg. Hence the last one
should be on and you don't see it => something to investigate.

What hardware are you using?


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 24+ messages in thread
[parent not found: <B900970C7DD9474C972986EB3EC7C58F0D40A0@andromeda.agcad.local>]
* Re: fan control
@ 2003-05-02 12:00 Herbert Nachtnebel
       [not found] ` <B900970C7DD9474C972986EB3EC7C58F0D40A1-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
  0 siblings, 1 reply; 24+ messages in thread
From: Herbert Nachtnebel @ 2003-05-02 12:00 UTC (permalink / raw)
  To: Daniele Boffi; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> In this moment:
>
> $ cat /proc/acpi/thermal_zone/TZ1/temperature
> temperature:             50 C
>
> $ cat /proc/acpi/fan/FAN*/state
> status:                  on
> status:                  off
> status:                  off
> status:                  off

Ah, here it is - correct.

> (I changed the name of the fans to the more readable FAN[0-3], OK?)

:-)

> if I  echo -n 3 > /proc/acpi/fan/FAN0/state

> then the fan stops.
> After reaching the second trip point, the fan starts up and I have the
> following status report

You have explicitely turned it off.

> $ cat /proc/acpi/fan/FAN*/state
> status:                  off
> status:                  on
> status:                  off
> status:                  off
> 
> This is what is strange.

Well, not really. ACPI fan (speed) control is a little bit artificial. In your case there are four devices presented to the system which has to be activated or deactivated according to the temprature measured by TZ1. What the system doesn't know is that these four devices are in fact the same and are translated into different rotating speeds of the FAN. To correctly achieve the result you are expect, the acpi subsystem would have to guess that an activated FAN device means that all other FAN devices before that device also are activated. A little bit much guessing, not?

Have a look, if the temperature is dropping again under the second treshold in your above situation than you will see that the state of the devices will be correctly again.

Ciao,
Herbert.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

end of thread, other threads:[~2003-05-06 15:04 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-01 16:51 fan control Daniele Boffi
     [not found] ` <20030501185137.C926-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2003-05-01 18:23   ` 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

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