From owner-freebsd-stable@FreeBSD.ORG Tue Aug 1 18:25:06 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD77E16A4ED for ; Tue, 1 Aug 2006 18:25:06 +0000 (UTC) (envelope-from john@baldwin.cx) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1054043D68 for ; Tue, 1 Aug 2006 18:25:05 +0000 (GMT) (envelope-from john@baldwin.cx) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k71IOv5Q081309; Tue, 1 Aug 2006 14:24:59 -0400 (EDT) (envelope-from john@baldwin.cx) From: John Baldwin To: freebsd-stable@freebsd.org Date: Tue, 1 Aug 2006 13:44:34 -0400 User-Agent: KMail/1.9.1 References: <200607311335.k6VDZkBt098907@lurza.secnetix.de> In-Reply-To: <200607311335.k6VDZkBt098907@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608011344.35306.john@baldwin.cx> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 01 Aug 2006 14:25:04 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1630/Tue Aug 1 11:38:56 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Oliver Fromme Subject: Re: Monitoring temperature with acpi (sysctls) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2006 18:25:07 -0000 On Monday 31 July 2006 09:35, Oliver Fromme wrote: > John Baldwin wrote: > > Mike Jakubik wrote: > > > I tried that, unfortunately it does not work. All i want to know is if > > > this a shortcoming of freebsd or the motherboard, if its the later, i > > > will contact the manufacturer. > > > > If ACPI doesn't include the sysctl's that's due to your BIOS, not FreeBSD. > > You can verify by doing an acpidump and seeing if you have any thermal > > zones listed in your ASL. > > I have a similar problem. This is what sysctl says: > > hw.acpi.thermal.tz0.temperature: 8.3C > hw.acpi.thermal.tz0.active: -1 > hw.acpi.thermal.tz0.passive_cooling: 1 > hw.acpi.thermal.tz0.thermal_flags: 0 > hw.acpi.thermal.tz0._PSV: 9.8C > hw.acpi.thermal.tz0._HOT: -1 > hw.acpi.thermal.tz0._CRT: 31.3C > hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 > dev.acpi_tz.0.%desc: Thermal Zone > dev.acpi_tz.0.%driver: acpi_tz > dev.acpi_tz.0.%location: handle=\_TZ_.THM0 > dev.acpi_tz.0.%pnpinfo: _HID=none _UID=0 > > The value of tz0.temperature is always 8.3C and never seems > to change. In reality it should be rathe 20C and change > slightly during day and night. > > This is an excerpt from "acpidump -d" on that machine, which > seems to imply that it _should_ support thermal readings > (but I'm not a low-level ACPI expert): > > Scope (_TZ) > { > Name (\TEMP, 0x0AFF) > ThermalZone (THM0) > { > Name (_TSP, 0x3C) > Name (_TC1, 0x04) > Name (_TC2, 0x04) > Name (_PSL, Package (0x01) > { > \_PR.CPU0 > }) > Method (_PSV, 0, NotSerialized) > { > Store ("_PSV Method", Debug) > Return (0x0B0E) > } > Method (_SCP, 1, NotSerialized) > { > Notify (THM0, 0x81) > } > Method (_TMP, 0, NotSerialized) > { > Store ("_TMP Method", Debug) > Return (TEMP) > } > Method (_CRT, 0, NotSerialized) > { > Store ("_CRT Method", Debug) > Return (0x0BE5) > } > } > } > > Is it a bug in the ACPI BIOS or a bug in FreeBSD code? Well, your _TMP method just returns the TEMP constant. It may be that your BIOS is supposed to be overwriting the TEMP constant periodically. It's not a bug in FreeBSD though. -- John Baldwin