From owner-freebsd-acpi@FreeBSD.ORG Tue Dec 8 10:53:22 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 3A57D10656BC for ; Tue, 8 Dec 2009 10:53:22 +0000 (UTC) (envelope-from freebsd@insightbb.com) Received: from mxsf00.insightbb.com (mxsf00.insightbb.com [74.128.0.70]) by mx1.freebsd.org (Postfix) with ESMTP id 064988FC23 for ; Tue, 8 Dec 2009 10:53:21 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.47,361,1257138000"; d="scan'208";a="722099618" Received: from unknown (HELO mxsf10.insightbb.com) ([172.31.249.60]) by mxsf00.insightbb.com with ESMTP; 08 Dec 2009 05:53:19 -0500 X-IronPort-AV: E=Sophos;i="4.47,361,1257138000"; d="scan'208";a="7990259" Received: from unknown (HELO asav01.insightbb.com) ([172.31.249.123]) by mxsf10.insightbb.com with ESMTP; 08 Dec 2009 05:53:19 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgEANu+HUvQLicL/2dsb2JhbACBTI53AccKgjCCAgQ X-IronPort-AV: E=Sophos;i="4.47,361,1257138000"; d="scan'208";a="237477875" Received: from 208-46-39-11.dia.static.qwest.net (HELO laptop2.stevenfriedrich.org) ([208.46.39.11]) by asavout01.insightbb.com with ESMTP; 08 Dec 2009 05:53:18 -0500 To: freebsd-acpi@freebsd.org From: Steven Friedrich Date: Tue, 8 Dec 2009 05:53:18 -0500 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200912080553.18363.freebsd@insightbb.com> 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: Tue, 08 Dec 2009 10:53:22 -0000 On Sunday 06 December 2009 01:05:04 pm you wrote: > On 5 Dec 2009, at 04:37, Steven Friedrich wrote: > > 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. > > As others have said, 52C is pretty normal. > > -- > Rui Paulo > The 52C was only suspect because it reached it so quickly. It usually runs around 73C, when building ports, etc. In case anyone is interested, here are the scripts and themes I threw together. You may have to modify for your system. here's readCPUTemp, be sure to change ^[ to ESC, i.e., in vi use Control-V ESC #!/bin/sh # $Id:$ # ON_LIMIT_BLINK=78 ON_LIMIT_RED=75 # read CPU Temperature Information from ACPI and display in C and F CPU_TEMP_C=`sysctl hw.acpi.thermal.tz0.temperature|awk '{print substr($2, 1, 4)}'` CPU_TEMP_C_INTEGER=`printf "%d" $CPU_TEMP_C 2>&1 | tail -n 1` [ "`tty`" = "not a tty" ] && (printf "%sC/%sF\n" $CPU_TEMP_C `toFahrenheit $CPU_TEMP_C`;exit) if [ $CPU_TEMP_C_INTEGER -ge $ON_LIMIT_BLINK ]; then printf "%s%sC/%sF\n" "^[[5m^[[31m" $CPU_TEMP_C `toFahrenheit $CPU_TEMP_C` elif [ $CPU_TEMP_C_INTEGER -ge $ON_LIMIT_RED ]; then printf "%s%sC/%sF\n" "^[[25m^[[31m" $CPU_TEMP_C `toFahrenheit $CPU_TEMP_C` else printf "%s%sC/%sF\n" "^[[25m^[[39m" $CPU_TEMP_C `toFahrenheit $CPU_TEMP_C` fi here's chkCPUTemperature, which loops #!/bin/sh # $Id:$ # # CPU Temperature Information from ACPI POLLING_RATE=`sysctl hw.acpi.thermal.polling_rate|awk '{print $2}'` while [ 1 ] do readCPUTemp sleep $POLLING_RATE done Here's a superkaramba theme: # CPU Temperature monitor # General KARAMBA X=600 Y=500 W=445 H=40 BOTTOM=true ontop=true interval=10000 locked=true # grey #defaultfont font="Arial" fontsize=36 color=150,150,150 # black defaultfont font="Arial" fontsize=36 color=0,0,0 # cpu temp from acpi text x=0 y=00 value="acpi tz0" text x=180 y=00 sensor=program program="readCPUTemp"