Log in

No account? Create an account
Pete Zaitcev's Journal -- Day [entries|friends|calendar]
Pete Zaitcev

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

[17 Oct 2004|01:23pm]
I managed to extract useful output from sensors on my VIA EPIA M10 with an 800MHz C3. It turned out that fresh lm_sensors-2.8.8 shipping with Fedora apply a factor of 1000 to temperature measurements before reporting it by doing this:

  getsysname(the_feature, rindex(n, '\0'), &mag, rindex(altn, '\0'));
  fscanf(f, "%lf", value);
  for (; mag > 0; mag --)
    *value /= 10.0;

It appears that the built-in magnitude adjustment cannot be changed with any configuration.

So, my current compute clause for vt8231 in /etc/sensors.conf is this:

compute temp3 (@*1000*0.08275)-16.09750, (@+16.0975)/(0.08275*1000)

VIA is just terrible at documenting untold numbers of versions for their EPIA boards, so nothing I could find on their website or VIAarea was of any help. The VIAarea forums represent a typical cesspool of clueless rumormongering where few voices of sanity are drowned by endless drumbeat of ignorant. If the source of lm_sensors and vt8231 weren't available, it would have been a lost cause without salvation. Thank heavens for RMS and his printer.

Gotta poke Greg Kroah and Aaron Marsh about integrating the vt8231 into the 2.6.

post comment

[ viewing | October 17th, 2004 ]
[ go | previous day|next day ]