soc2007/cnst-sensors update (was: Re: PERFORCE change 124277 for review)

Constantine A. Murenin cnst at FreeBSD.org
Sat Jul 28 19:42:36 UTC 2007


On 28/07/2007 14:31, Constantine A. Murenin wrote:

> http://perforce.freebsd.org/chv.cgi?CH=124277
> 
> Change 124277 by cnst at 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. :)


More information about the freebsd-arch mailing list