Hi all,
for a monitoring system I am reading the hw.sensors sysctls using
sysctl(3). To know what that sensor is trying to say to me I check
sensor.desc to see what that sensor is measuring.
lm0 tells me:
hw.sensors.8=lm0, Temp1, temp, 33.00 degC / 91.40 degF
hw.sensors.9=lm0, Temp2, temp, 53.50 degC / 128.30 degF
Admtemp (Japsers machine):
<jasper> hw.sensors.0=admtemp0, External Temp, 63.00 degC
<jasper> hw.sensors.1=admtemp0, Internal Temp, 34.00 degC
The description is different, Temp1 vs Internal Temp. Now I am not
quite sure how I should map the sysctls to the values I hope to get,
trying to fill following struct:
typedef struct {
float temp1;
float temp2;
float temp3;
float vc0;
float vc1;
float v33;
float v50p;
float v12p;
float v12n;
float v50n;
int rot1;
int rot2;
int rot3;
} hwstats_t;
Is reading the sensor.desc the right way to do this, and if so, is the
information in sensor.desc consistent across all drivers?
Wijnand