public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] ACPI event - thermal_zone TZ1
@ 2006-09-16 10:36 Mick
  2006-09-16 17:56 ` Richard Fish
  0 siblings, 1 reply; 3+ messages in thread
From: Mick @ 2006-09-16 10:36 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

Hi All,

Every time the fan on my laptop starts I get this in the log:

ACPI event unhandled: thermal_zone TZ1 00000081 00000000

The fan works fine with respect to automatically switching on at two different 
speeds when the CPU gets hot/hotter and switching down/off when the CPU cools 
down enough.

How is the thermal_zone message explained - why is it there?
-- 
Regards,
Mick

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] ACPI event - thermal_zone TZ1
  2006-09-16 10:36 [gentoo-user] ACPI event - thermal_zone TZ1 Mick
@ 2006-09-16 17:56 ` Richard Fish
  2006-09-17  8:32   ` Mick
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Fish @ 2006-09-16 17:56 UTC (permalink / raw
  To: gentoo-user

On 9/16/06, Mick <michaelkintzios@gmail.com> wrote:
> Hi All,
>
> Every time the fan on my laptop starts I get this in the log:
>
> ACPI event unhandled: thermal_zone TZ1 00000081 00000000
>
> The fan works fine with respect to automatically switching on at two different
> speeds when the CPU gets hot/hotter and switching down/off when the CPU cools
> down enough.
>
> How is the thermal_zone message explained - why is it there?

Thermal zone events are caused when one of the temperature monitors in
the system notices that its temp has crossed some threshold.  In your
case, the reaction to this event is to turn on (or speed up) a fan,
but you also get notified of this through the acpi event reporting
mechanism in acpid.

So this is exactly the same problem/solution as your power button
issue.  In /etc/acpi/default.sh, you have an etry:

     *)      log_unhandled $* ;;

This causes anything that is not "button" or "ac_adapter" to log an
event unhandled message.  So here again, add a case _above_ this for
what you want to happen when thermal_zone events occur.  In this case,
maybe just:

      thermal_zone)
          ;; # don't care..fan seems to work

Of course, you could get fancy.  Looks like the first argument might
be the temperature at which the event occurs, so you could for example
compare that to some value (>100?) and do something like go ahead and
log the event as overtemp.  You could even do an automatic shutdown if
it gets too hot.  But that probably isn't necessary, as thermal
throttling should kick in before any damage can occur to the CPU.

-Richard
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] ACPI event - thermal_zone TZ1
  2006-09-16 17:56 ` Richard Fish
@ 2006-09-17  8:32   ` Mick
  0 siblings, 0 replies; 3+ messages in thread
From: Mick @ 2006-09-17  8:32 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

On Saturday 16 September 2006 18:56, Richard Fish wrote:

> So this is exactly the same problem/solution as your power button
> issue.  In /etc/acpi/default.sh, you have an etry:
>
>      *)      log_unhandled $* ;;
>
> This causes anything that is not "button" or "ac_adapter" to log an
> event unhandled message.  So here again, add a case _above_ this for
> what you want to happen when thermal_zone events occur.  In this case,
> maybe just:
>
>       thermal_zone)
>           ;; # don't care..fan seems to work
>
> Of course, you could get fancy.  Looks like the first argument might
> be the temperature at which the event occurs, so you could for example
> compare that to some value (>100?) and do something like go ahead and
> log the event as overtemp.

Thanks Richard!  What is the syntax for e.g. comparing TZ1, and TZ2 and 
generating a log entry (other than ACPI event unhandled:... )
-- 
Regards,
Mick

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-09-17  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-16 10:36 [gentoo-user] ACPI event - thermal_zone TZ1 Mick
2006-09-16 17:56 ` Richard Fish
2006-09-17  8:32   ` Mick

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