From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 6 03:49:59 2009 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFBDB106566C for ; Sun, 6 Dec 2009 03:49:58 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail3.es.net [IPv6:2001:400:4c01::2]) by mx1.freebsd.org (Postfix) with ESMTP id B2B028FC0C for ; Sun, 6 Dec 2009 03:49:57 +0000 (UTC) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id nB63nuxv008712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 5 Dec 2009 19:49:56 -0800 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id EF3331CC0B; Sat, 5 Dec 2009 19:49:55 -0800 (PST) To: Steven Friedrich In-reply-to: Your message of "Sat, 05 Dec 2009 12:42:42 EST." <200912051242.42894.freebsd@insightbb.com> Date: Sat, 05 Dec 2009 19:49:55 -0800 From: "Kevin Oberman" Message-Id: <20091206034955.EF3331CC0B@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-12-05_02:2009-11-30, 2009-12-05, 2009-12-05 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-0912050289 Cc: freebsd-acpi@freebsd.org Subject: Re: ACPI temperature X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Dec 2009 03:49:59 -0000 > From: Steven Friedrich > Date: Sat, 5 Dec 2009 12:42:42 -0500 > > On Saturday 05 December 2009 12:24:34 am you wrote: > > > From: Steven Friedrich > > > Date: Fri, 4 Dec 2009 23:37:04 -0500 > > > Sender: owner-freebsd-acpi@freebsd.org > > > > > > I sent this to questions last Sunday, but only one person responded. He's > > > running FreeBSD 8 and I think his system is reporting bogus temps too. > > > I think there might be a missing scaling factor. I'm a hardware guy, but > > > I don't currently have temperature measuring equipment and I would want > > > to do it on one of my towers (which are currently in storage), not my > > > laptop anyway. > > > > > > I booted my HP Pavilion zd8215us and I immediately invoked > > > chkCPUTemperature. The first temp reported was 52C, which is 125.6F. This > > > leads me to believe that acpi has an anomaly regarding temperature > > > measurement. The ambient temp was 71F (21.6C). The machine had been off > > > for over eight hours. > > > > > > Here's chkCPUTemperature: > > > > > > #!/bin/sh > > > # $Id:$ > > > # > > > > > > # CPU Temperature Information from ACPI > > > POLLING_RATE=`sysctl hw.acpi.thermal.polling_rate|awk '{print $2}'` > > > while [ 1 ] > > > do > > > sysctl hw.acpi.thermal.tz0.temperature > > > sleep $POLLING_RATE > > > done > > > > > > uname -a > > > FreeBSD laptop2.StevenFriedrich.org 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 > > > #1: > > > > Why do you not believe the report? The temperature reported is usually > > measured on the die, not the package. (You couldn't measure it externally, > > if you wanted to.) Due to the VERY low thermal mass of the die, it heats > > up very quickly. > > > I've been running FreeBSD on this laptop since 2005 and only in the past month > has it started shutting down when the temp it 81C. So I found the sysctl where > it reports the temp and I wrote chkCPUTemperature, a bourne script to check > the temp every 10 seconds. > > I have placed 1/2 inch spacers, ok, bottle caps from 2 litre bottles, > under the four corners and it's not shutting down now. I'm an old > hardware guy and I understand the die vs package issue, but what's the > temp diff between the two? I was hoping to spark some interest in this > issue with someone who has the ability to verify the actual temp with > the reported temp. I was trying to find a linux user that might be > seeing something different, possibly indicating that FreeBSD's ACPI > port has a bug not in the linux code. I hate to suggest this to an old hardware guy, but have you blown out your heat sink lately? On my laptop I do that about annually. The first time I did it the temperature of the CPU when the system was idle dropped by 12C. The temperature during a buildworld dropped from 91C to 72C. Of course, you may have already done this. While it is possible that your system is tickling a bug, it really seems unlikely. Again, the temperature read is one of the most trivial ACPI operations. It is not uncommon to not get a temperature at all and it is possible that a system is reporting it incorrectly. It's even possible that the thermal sensor on the die is defective, I really have a hard time believing that the ACPI code in FreeBSD is having a problem with this. There is no scaling. Just take the reported temperature and add 273. You can try booting up a Knoppix CD and see if it reports something different, but FreeBSD and Linux share the same ACPI code which is actually written and supported by Intel, though both do adjust it for their systems. I'm betting that Linux will show the same results as FreeBSD, whether it's right on not. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751