From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 25 20:14:56 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 797E516A41B; Wed, 25 Jul 2007 20:14:56 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 0633B13C46E; Wed, 25 Jul 2007 20:14:55 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-187-205.dclient.hispeed.ch ([80.218.187.205] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IDmcM-0006rH-F0; Wed, 25 Jul 2007 21:33:54 +0200 Message-ID: <46A7A5B1.8020900@gahr.ch> Date: Wed, 25 Jul 2007 21:34:09 +0200 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.5 (X11/20070723) MIME-Version: 1.0 To: freebsd-acpi@freebsd.org, freebsd-hackers@freebsd.org X-Enigmail-Version: 0.95.2 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig1439401C7BF64E1F5E915EB9" X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: apci_thermal doesn't send 0x80 or 0x81 notifies X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2007 20:14:56 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1439401C7BF64E1F5E915EB9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3D1 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! --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enig1439401C7BF64E1F5E915EB9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGp6W2wMJqmJVx944RCtr+AKCLMokzq82Vld4mHMv6HBU/lBr8mACaAnRP +hXkKGF+lnupeTSw6oLF4LE= =GSKK -----END PGP SIGNATURE----- --------------enig1439401C7BF64E1F5E915EB9--