Skip to contentSkip to conversation

lm-sensors are out of control !

DISCUSSION Dimitris Theoharis 2 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hello

I have been using lm-sensors on Debian for long time and they have been working great. Today i noticed that they display the wrong temperature as you will see below. I have booted in Windows and my temp. monitoring program says CPU is 36C . It never goes beyond 45C.. I then entered in my BIOS to check for temps and the BIOS too says 36C. IN fact lm sensors used to display 36-40C always.

Well , today for no reason when i run sensors i get these temps :

sensors
as99127f-i2c-0-2d

Adapter: SMBus I801 adapter at e800
VCore 1:   +1.50 V  (min =  +1.20 V, max =  +1.60 V)              
VCore 2:   +1.79 V  (min =  +1.20 V, max =  +1.60 V)              
+3.3V:     +3.31 V  (min =  +2.96 V, max =  +3.63 V)              
+5V:       +5.00 V  (min =  +4.49 V, max =  +5.51 V)              
+12V:     +11.92 V  (min =  +9.55 V, max = +14.41 V)              
-12V:      -1.72 V  (min =  -4.07 V, max =  -0.32 V)              
-5V:       -1.28 V  (min =  -1.76 V, max =  -0.82 V)              
fan1:     2824 RPM  (min = 4655 RPM, div = 2)                     
fan2:     4687 RPM  (min =   -1 RPM, div = 2)                     
fan3:        0 RPM  (min = 10546 RPM, div = 2)                     
M/B Temp:    +35 C  (high =    +0 C, hyst =   -96 C)          
CPU Temp:  +83.0 C  (high =  +120 C, hyst =  +100 C)          
temp3:      -1.0 C  (high =  +160 C, hyst =  +150 C)          
vid:      +1.525 V  (VRM Version 9.0)

alarms:
beep_enable:
Sound alarm enabled

CPU 83C!!! This is not right .

My motherboard is an Asus P4T533-C and this is my cpu info

cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.53GHz
stepping : 7
cpu MHz : 2850.518
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
bogomips : 5652.48

What could be causing it to display wrong temps?

Thanks

Dim

#1 lore raw

Hi Dimitris,

Quoted 12 lines

I have been using lm-sensors on Debian for long time and they have been working great. Today i noticed that they display the wrong temperature as you will see below. I have booted in Windows and my temp. monitoring program says CPU is 36C . It never goes beyond 45C.. I then entered in my BIOS to check for temps and the BIOS too says 36C. In fact lm sensors used to display 36-40C always.

Well, today for no reason when i run sensors i get these temps :

sensors
as99127f-i2c-0-2d
(...)

Quoted 7 lines
M/B Temp:    +35 C  (high =    +0 C, hyst =   -96 C)
CPU Temp:  +83.0 C  (high =  +120 C, hyst =  +100 C)
temp3:      -1.0 C  (high =  +160 C, hyst =  +150 C)

(...)
CPU 83C!!! This is not right .
(...)
What could be causing it to display wrong temps?

I suspect you are using 2.6 kernels and upgraded recently.

From the early days of AS99127F support, temp2 and temp3 have been reporting half the temperature values they should have, for no reason that I could find. In order to present valid temperatures in "sensors", the default libsensors configuration file would multiply them by 2:

chip "as99127f-*"
(...)
compute temp2 @*2, @/2
compute temp3 @*2, @/2

Some times ago I decided to sanitize this and fixed both the w83781d driver (both lm_sensors and Linux 2.6) and the libsensors default configuration file. So if you moved to a recent 2.6 kernel but dit not update your libsensors configuration file (/etc/sensors.conf), the result you obtain was expected.

All you have to do is edit /etc/sensors.conf and delete the compute lines for as99127f's temp2 and temp3.

If your board required different compute lines before (not just the multiplication by 2), you have to adjust them manually, not delete them. Alternatively you can simly fetch the updated default configuration file here, and start from there:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/etc/sensors.conf.eg

Thanks,
--
Jean Delvare

#2 lore raw
In reply to Dimitris Theoharis

Hi Dimitris,

Quoted 3 lines

What is even more strange is that gkrellm displays the correct CPU temp but when i run sensors its wrong.
And yes i just upgraded to 2.6.11

gkrellm does not use libsensors. I consider it an error since it means more work for the maintainers to catch up with the changes and fixes we do to the various hardware monitoring drivers, let alone the fact that they have to handle the labeling and scaling of inputs on their own, but in some rare cases it has the side effect of making gkrellm immune to problems that will affect all programs using libsensors.

Hope that helps,
--
Jean Delvare