From owner-freebsd-stable Thu Mar 8 14:26:54 2001 Delivered-To: freebsd-stable@freebsd.org Received: from gollum.esys.ca (dhcp198-52.esys.ca [198.161.92.52]) by hub.freebsd.org (Postfix) with ESMTP id 8BC7637B71A; Thu, 8 Mar 2001 14:26:45 -0800 (PST) (envelope-from lyndon@gollum.esys.ca) Received: from localhost (localhost [127.0.0.1]) by gollum.esys.ca (8.11.2/8.11.2) with ESMTP id f28MQbU05037; Thu, 8 Mar 2001 15:26:37 -0700 (MST) (envelope-from lyndon@gollum.esys.ca) Message-Id: <200103082226.f28MQbU05037@gollum.esys.ca> From: Lyndon Nerenberg Organization: ACI / Messagingdirect X-URL: http://www.messagingdirect.com/ To: Andrew Hesford Cc: questions@FreeBSD.ORG, stable@FreeBSD.ORG Subject: Re: ABIT KT7 and temp monitoring In-Reply-To: Message from Andrew Hesford of "Thu, 08 Mar 2001 16:12:54 CST." <20010308161254.A12645@cec.wustl.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5034.984090396.1@localhost> Date: Thu, 08 Mar 2001 15:26:36 -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > man 4 smb > The problem is the smb kernel device supports a limited number of chips. Two problems: 1) /dev/smb* are exclusive access -- only one process can hold them open at a time. (As of a couple of months ago in -stable at least) 2) You still need knowledge of the chipsets. This isn't an abstracted interface. What would work better is: % cat /dev/mbmon cpu[0] temp=73 fan=180 vcc=2.30 ... cpu[1] temp=76 fan=167 vcc=2.32 ... motherboard temp=38 <-- generic motherboard sensor values fan[0]=313 <-- rpm for non-cpu fans fan[1]=-1 . . . % I.e., something suitable for direct display, and which can easily be ripped apart with awk to extract specific values. It should also be possible to ioctl the device in a manner similar to /dev/apm, although defining the variables and data types for the ioctl interface might be a bit of a pain, since the variables returned by the different chips are, well, variable. --lyndon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message