From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 10 08:04:50 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 726F716A46C for ; Fri, 10 Aug 2007 08:04:50 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with SMTP id A406B13C474 for ; Fri, 10 Aug 2007 08:04:49 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 19539 invoked by uid 399); 10 Aug 2007 07:38:09 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 10 Aug 2007 07:38:09 -0000 X-Originating-IP: 127.0.0.1 Date: Fri, 10 Aug 2007 00:38:06 -0700 (PDT) From: Doug Barton To: =?iso-8859-15?Q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: <86myx0pa9i.fsf@ds4.des.no> Message-ID: References: <86myx0pa9i.fsf@ds4.des.no> X-message-flag: Outlook -- Not just for spreading viruses anymore! X-OpenPGP-Key-ID: 0xD5B2F0FB Organization: http://www.FreeBSD.org/ MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1543664049-1186731489=:910" Cc: hackers@freebsd.org Subject: Re: Core temperature 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: Fri, 10 Aug 2007 08:04:50 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1543664049-1186731489=:910 Content-Type: TEXT/PLAIN; format=flowed; charset=iso-8859-15 Content-Transfer-Encoding: 8BIT On Fri, 10 Aug 2007, Dag-Erling Smørgrav wrote: > I've written a quick-and-dirty driver for the built-in digital > temperature sensor in Intel's Core and Core 2 CPUs (and Xeons built on > the Core architecture). The driver exports four sysctl nodes under > hw.coretemp: > > hw.coretemp.tjmax Maximum core temperature (currently hardcoded > To 100°C, may actually be 85°C on some systems) > > hw.coretemp.delta current temperature in °C below Tj(max) > > hw.coretemp.interrupt Lower 32 bits of the IA32_THERMAL_INTERRUPT MSR > > hw.coretemp.status Lower 32 bits of the IA32_THERMAL_STATUS MSR > > I intend to move these into dev.cpu.N in a later version. This is working for me on my C2D: sysctl hw.coretemp hw.coretemp.tjmax: 100 hw.coretemp.delta: -42 hw.coretemp.interrupt: 9954320 hw.coretemp.status: 2284454592 That temp agrees with the one reported by wmbsdbatt, for what that's worth. hth, Doug -- This .signature sanitized for your protection --0-1543664049-1186731489=:910--