From owner-freebsd-arch@FreeBSD.ORG Sat Jul 28 19:42:36 2007 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B27216A41A; Sat, 28 Jul 2007 19:42:36 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from mojo.ru (mojo.ru [84.252.152.63]) by mx1.freebsd.org (Postfix) with ESMTP id 8344713C469; Sat, 28 Jul 2007 19:42:35 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from [192.168.0.16] (nc-76-4-28-21.dhcp.embarqhsd.net [76.4.28.21]) (authenticated bits=0) by mojo.ru (8.12.11.20060308/8.12.10) with ESMTP id l6SJgZdw022881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Jul 2007 23:42:39 +0400 Message-ID: <46AB9C21.7010706@FreeBSD.org> Date: Sat, 28 Jul 2007 15:42:25 -0400 From: "Constantine A. Murenin" Organization: Google Summer of Code 2007 Student @ The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-gb, en-gb-oed, en, en-us, ru, ru-ru, ru-su MIME-Version: 1.0 To: Perforce Change Reviews References: <200707281831.l6SIVKDW071679@repoman.freebsd.org> In-Reply-To: <200707281831.l6SIVKDW071679@repoman.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Shteryana Shopova , freebsd-arch@FreeBSD.org, "Constantine A. Murenin" Subject: soc2007/cnst-sensors update (was: Re: PERFORCE change 124277 for review) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-arch@FreeBSD.org, "Constantine A. Murenin" , Shteryana Shopova List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2007 19:42:36 -0000 On 28/07/2007 14:31, Constantine A. Murenin wrote: > http://perforce.freebsd.org/chv.cgi?CH=124277 > > Change 124277 by cnst@dale on 2007/07/28 18:30:44 > > add 'sensors' display to systat(1) BTW, for those who are following this project: sensor_attach(9), sysctl(3), sensorsd(8) and systat(1) are now fully functional in regards to sensors framework -- here is a snippet of what I get from systat(1) on FreeBSD with the code that's already in p4: Sensor Value Status Description lm0.temp0 59.00 degC lm0.temp1 46.50 degC lm0.fan1 917 RPM lm0.volt0 1.23 V DC (VCore) lm0.volt1 12.30 V DC (+12V) lm0.volt2 3.33 V DC (+3.3V) lm0.volt3 3.31 V DC (+3.3V) ... The status field in this example is always empty because lm(4) doesn't keep the state of its sensors -- sensor status is mostly intended for logical drive sensors (i.e. raid) and ipmi(4)-style sensors, as well as any other hardware that is smart enough to know what acceptable values are. (Description field is optional, too.) If the driver provides status for its sensors, then sensorsd(8) will automatically alert when the said status changes -- no additional configuration is required. For hardware that does not provide status, sensorsd(8) can be configured with specific limits for each sensor or for sensors of certain type. For more details, see sensorsd.conf(5). P.S. Work on sysctl(8) is still ongoing, but the above parts are mostly done (although I still have a few plans on making them even better). Cheers, Constantine, Google Summer of Code 2007 Student @ The FreeBSD Project. :)