[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    apci_thermal doesn't send 0x80 or 0x81 notifies
From:       Pietro Cerutti <gahr () gahr ! ch>
Date:       2007-07-25 19:34:09
Message-ID: 46A7A5B1.8020900 () gahr ! ch
[Download RAW message or body]


Hi lists,
under heavy loads, my laptop's temperature reaches the
hw.acpi.thermal.tz0._CRT level, at which point it shuts down.

Passive cooling is not supported on my system:
# sysctl hw.acpi.thermal.tz0.passive_cooling=1
hw.acpi.thermal.tz0.passive_cooling: 0
sysctl: hw.acpi.thermal.tz0.passive_cooling: Operation not supported by
device

My idea was to write a little script invoked by devd when acpi_thermal
sends a temperature change (0x80) or trip point change (0x81) notify, so
I added these lines to my /etc/devd.conf file:

notify 100 {
   match "system"    "ACPI";
   match "subsystem" "Thermal";
   match "notify"    "0x80";
   action "/root/bin/acpi_thermal";
};

However, I noticed that the script is never called.
I added a device_printf(9) debug call at the beginning of the
acpi_tz_notify_handler function of acpi_thermal.c (line 752), but
nothing is printed where it should.

So my question:
is acpi_thermal missing the 0x80 and 0x81 notifies, or I am missing
something?
Note that 0xcc works, since the following is called when the temperature
reaches the hw.acpi.thermal.tz0._CRT level.

notify 10 {
   match "system"    "ACPI";
   match "subsystem" "Thermal";
   match "notify"    "0xcc";
   action "logger -p kern.emerg 'WARNING: system temperature too high,
shutting
};

Thanks for any input!

P.S.
freebsd-acpi@ people, please CC me or freebsd-hackers@ since I'm not on
your list!

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic