Severity: serious Tags: Patch After looking at the calculations made in sensors3.conf causing the problems I found that the difference between versions 2.10 and 3.0: In version 2.10 the calculated values can be used in a subsequent calculation, while it does not work for version 3.0 :-(, see code below:
compute in0 (24/14.7 + 1) * @ , @ / (24/14.7 + 1) compute in5 (160/35.7)*(@ - in0) + @, (@ + in0*160/35.7)/(1+160/35.7) As a workaround, I've changed the calculated 5V value with a fixed value of 5V, see patch below for calculation of -12V and -5V values: --- /etc/sensors3.conf 2007-12-20 08:07:03.000000000 +0100 +++ /etc/sensors3.conf~ 2007-12-04 09:35:44.000000000 +0100 @@ -985,16 +985,14 @@ label in4 "+12V" label in5 "-12V" label in6 "-5V" -# Vs = (1+R1/R2)*Vin + compute in0 (24/14.7 + 1) * @ , @ / (24/14.7 + 1) compute in2 (22.1/30 + 1) * @ , @ / (22.1/30 + 1) compute in3 (2.8/1.9) * @, @ * 1.9/2.8 compute in4 (160/30.1 + 1) * @, @ / (160/30.1 + 1) -# Vs = Vin + (R4/R3)*(Vin - V5) - compute in5 (160/35.7)*(@ - 5) + @, (@ + 5 * 160/35.7)/ (1 + 160/35.7) -# compute in5 (160/35.7)*(@ - in0) + @, (@ + in0 * 160/35.7)/ (1 + 160/35.7) - compute in6 (36/16.2)*(@ - 5) + @, (@ + 5 * 36/16.2) / (1 + 36/16.2) -# compute in6 (36/16.2)*(@ - in0) + @, (@ + in0 * 36/16.2) / (1 + 36/16.2) + compute in5 (160/35.7)*(@ - in0) + @, (@ + in0 * 160/35.7)/ (1 + 160/35.7) + compute in6 (36/16.2)*(@ - in0) + @, (@ + in0 * 36/16.2) / (1 + 36/16.2) + set in0_min 5 * 0.95 set in0_max 5 * 1.05 # What is your VTT? It is probably not this value... On Mon, 2007-12-17 at 22:41 +0100, Svante Signell wrote: > On Mon, 2007-12-17 at 22:22 +0100, Aurelien Jarno wrote: > > severity 456774 normal > > thanks > > > > Svante Signell a écrit : > > > Package: lm-sensors > > > Version: 1:3.0.0-4 > > > Severity: grave > > > Justification: renders package unusable > > > > > > Some voltage readings are not reported by versions 3 of lm-sensors. > > > Configuration files tried with versions 3 are both the > > > old /etc/sensors.conf and the new /etc/sensors3.conf, same result, see > > > below. > > > > Could you please tell me which values are not reported? From what I see > > there are a few error messages that are not present in lm-sensors 2, but > > all values are actually reported. > > > > Also this is the only chip known to have this problem, and the lm80 is a > > relatively rare chip. I am therefore downgrading the severity. > > Is it so rare? I have an lm80 on more than one of my old computers, > Pentium 2, Celeron 1-2, Pentium 3 based from around 1998-2001. > > See below for version 3: the negative voltages -12V and -5V are not > reported. > > > > With lm-sensors 1:2.10.1-3 (latest from stable): > > > (No problems with any of the 2.x versions) > > > lm80-i2c-0-28 > > > Adapter: SMBus PIIX4 adapter at 5000 > > > > -12V: -12.06 V (min = -12.61 V, max = -11.40 V) > > > -5V: -5.15 V (min = -5.25 V, max = -4.74 V) > > > > > > > With lm-sensors3 (currently 1:3.0.0-4): > > > lm80-i2c-0-28 > > > Adapter: SMBus PIIX4 adapter at 5000 > > > > ERROR: Can't get value of subfeature in5_input: No such subfeature known > > > ERROR: Can't get value of subfeature in5_max: No such subfeature known > > > ERROR: Can't get value of subfeature in5_min: No such subfeature known > > > -12V: +0.00 V (min = +0.00 V, max = +0.00 V) > > > ERROR: Can't get value of subfeature in6_input: No such subfeature known > > > ERROR: Can't get value of subfeature in6_max: No such subfeature known > > > ERROR: Can't get value of subfeature in6_min: No such subfeature known > > > -5V: +0.00 V (min = +0.00 V, max = +0.00 V) > > > > Installed: > > > ii libsensors3 1:2.10.5-3 > > > library to read temperature/voltage/fan sensors > > > ii libsensors4 1:3.0.0-4 > > > library to read temperature/voltage/fan sensors > > > ii lm-sensors 1:3.0.0-4 > > > utilities to read temperature/voltage/fan sensors > > > > > > > > > > > > > > > >