Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84411 - lm_sensors-2.8.7 returns incorrect sensor values with kernel-2.6.11
Summary: lm_sensors-2.8.7 returns incorrect sensor values with kernel-2.6.11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 09:42 UTC by Thomas Jäger
Modified: 2005-03-07 13:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Jäger 2005-03-07 09:42:11 UTC
After updating to development-sources-2.6.11 lm_sensors returns incorrect sensor values. With development-sources-2.6.10 the values were ok, /etc/sensors.conf wasn't changed, all i2c-modules were compiled and loaded as modules



Reproducible: Always
Steps to Reproduce:
1. booting kernel-2.6.10
2. /etc/init.d/lm_sensors start
3. sensors

1. booting kernel-2.6.11
2. /etc/init.d/lm_sensors start
3. sensors

CPU and MB temp. values are to high




# emerge info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.11 i686)
=================================================================
System uname: 2.6.11 i686 AMD Athlon(TM) XP2400+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 07:32:41)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.4_p6, 1.9.4, 1.6.3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks gpg sandbox sfperms userpriv"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.ynet.sk/pub
http://gentoo.mirror.solnet.ch http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/misc /usr/local/portage/gentoo-de"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow 3dnowex X X509 alsa apache2 avi bitmap-fonts cdr chroot
crypt cscope cups curl dedicated dga divx4linux dmx dvb dvd dvdr dvdread emboss
encode esd f77 faad fam flac font-server foomaticdb fortran gd gdbm ggi gif
gnome gnutls gpm gstreamer gtk gtk2 imagemagick imap imlib imlib2
insecure-drivers java jbig jpeg junit libg++ libwww live lzw-tiff mad makecheck
mbox mikmod mmx mmx2 motif mozilla moznoirc moznomail mozp3p mozxmlterm mp3 mpeg
ncurses network nls noantlr nobcel nobeanutils nobsh nocommonslogging
nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan
noxerces nvidia oav oggvorbis opengl openssh oss pam parse-clocks pdflib perl
pg-hier pg-intdatetime pg-vacuumdelay png postgres ppds pwdb python qt quicktime
readline real samba sasl scanner sdl speex spell sse ssl svga tcltk tcpd theora
tiff tls transcode truetype truetype-fonts type1-fonts usb v4l v4l2 vanilla
vidix vim-with-x voodoo3 wmf xml xml2 xmms xprint xv xvid xvmc zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS


# lsmod
Module                  Size  Used by
w83781d                33192  0
i2c_viapro              6544  0
i2c_sensor              2944  1 w83781d
i2c_core               18512  3 w83781d,i2c_viapro,i2c_sensor
snd_cmipci             29056  2
snd_opl3_lib            9408  1 snd_cmipci
snd_hwdep               7392  1 snd_opl3_lib
snd_mpu401_uart         6336  1 snd_cmipci
snd_rawmidi            20576  1 snd_mpu401_uart
snd_seq_oss            32448  0
snd_seq_midi_event      6464  1 snd_seq_oss
snd_seq                50768  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6988  4 snd_opl3_lib,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss            48288  0
snd_pcm                81352  2 snd_cmipci,snd_pcm_oss
snd_timer              21700  3 snd_opl3_lib,snd_seq,snd_pcm
snd_page_alloc          7620  1 snd_pcm
snd_mixer_oss          17664  2 snd_pcm_oss
snd                    45924  14
snd_cmipci,snd_opl3_lib,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               7648  2 snd
usblp                  11072  0
usb_storage            66816  0
uhci_hcd               29200  0
usbcore               105272  4 usblp,usb_storage,uhci_hcd
3c59x                  37800  0
mii                     4032  1 3c59x
dm_crypt               10376  0
aes_i586               37888  0


# cat /etc/sensors.conf
[...]
chip "lm78-*" "lm78-j-*" "lm79-*" "w83781d-*"

# These are as advised in the LM78 and LM79 data sheets, and used on almost
# any mainboard we have seen.

    label in0 "VCore 1"
    label in1 "VCore 2"
    label in2 "+3.3V"
    label in3 "+5V"
    label in4 "+12V"
    label in5 "-12V"
    label in6 "-5V"

# For positive voltages (in3, in4), two resistors are used, with the following
# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
#   R1 = R2 * (Vs/Vin - 1)
# For negative voltages (in5, in6) two resistors are used, with the following
# formula (Rin,Rf: resistor values, Vs: read voltage, Vin: pin voltage)
#   Rin = (Vs * Rf) / Vin
#
# Here are the official LM78 and LM79 data sheet values.
#       Vs     R1,Rin   R2,Rf    Vin
# in3   +5.0      6.8    10     +2.98
# in4  +12.0     30      10     +3.00
# in5  -12.0    240      60     +3.00
# in6   -5.0    100      60     +3.00
#
# These would lead to these declarations:
# compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
# compute in4 ((30/10)+1)*@  ,  @/((30/10)+1)
# compute in5 -(240/60)*@    ,  -@/(240/60)
# compute in6 -(100/60)*@    ,  -@/(100/60)
#
# On almost any mainboard we have seen, the Winbond compute values lead to
# much better results, though.
#
#       Vs     R1,Rin   R2,Rf    Vin
# in4  +12.0     28      10     +3.00
# in5  -12.0    210      60.4   +3.00
# in6   -5.0     90.9    60.4   +3.00
#
# These leads to these declarations:

    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
    compute in5 -(210/60.4)*@  ,  -@/(210/60.4)
    compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)

# Here, we assume the VID readings are valid, and we use a max. 5% deviation

    set in0_min vid*0.95

    set in0_max vid*1.05
    set in1_min vid*0.95
    set in1_max vid*1.05
    set in2_min 3.3 * 0.95
    set in2_max 3.3 * 1.05
    set in3_min 5.0 * 0.95
    set in3_max 5.0 * 1.05
    set in4_min 12 * 0.95
    set in4_max 12 * 1.05
    set in5_max -12 * 0.95
    set in5_min -12 * 1.05
    set in6_max -5 * 0.95
    set in6_min -5 * 1.05
[...]

# sensors-detect
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.

# sensors
as99127f-i2c-0-2d
Adapter: SMBus Via Pro adapter at e800
VCore 1:   +1.74 V  (min =  +0.00 V, max =  +2.58 V)
VCore 2:   +0.11 V  (min =  +2.34 V, max =  +2.58 V)       ALARM
+3.3V:     +3.33 V  (min =  +3.14 V, max =  +3.46 V)
+5V:       +4.89 V  (min =  +4.73 V, max =  +5.24 V)
+12V:     +12.52 V  (min = +10.82 V, max = +13.19 V)
-12V:     -13.29 V  (min = -13.22 V, max = -10.74 V)       ALARM
-5V:       -4.07 V  (min =  -5.25 V, max =  -4.74 V)       ALARM
fan1:        0 RPM  (min =    0 RPM, div = 2)
fan2:        0 RPM  (min =    0 RPM, div = 2)
fan3:        0 RPM  (min =    0 RPM, div = 2)
M/B Temp:    +28 C  (high =  +105 C, hyst =    +0 C)
CPU Temp: +146.0 C  (high =  +190 C, hyst =  +170 C)          (beep)
temp3:     -63.0 C  (high =  +244 C, hyst =  +242 C)
ERROR: Can't get VID data!
alarms:
beep_enable:
          Sound alarm enabled
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-07 11:03:52 UTC
did you try lm_sensors 2.9.0 ?
Comment 2 Thomas Jäger 2005-03-07 12:03:43 UTC
yes, i tried lm_sensors-2.9.0 - the same results
Comment 3 Thomas Jäger 2005-03-07 13:57:20 UTC
I did some further investigations and found the 

  compute temp2 @*2.0, @/2.0

statement for the as99127f chip in /etc/sensors.conf. It seems that this
correction is no longer needed for the kernel 2.6.11 (at least for my mb: ASUS A7V266EX)