Ticket 1382 : Update
Hello there,
I've found the solution to my problem (apparently at least). I downloaded a vanilla kernel, instead of the distro kernel, and voil?. It worked. At least, it compiled, but I'm confident :)
The kernel was Mandrake 9.1 updated 2.4.21-0.25mdk. Compilation was ok with i2c patch only, but broken with lm-sensors patch.
Thanks and all the best :)
Romain
*cough cough*
Looks like I spoke too fast.
While making modules, I got an error message while compiling support for scx200. It's a minor problem for me cuz I don't have the chip, and when I removed support for that chip, compilation of the modules went on. But I thought I'd let you know anyways. This is still with i2c/lm-sensors 2.8.0, and vanilla kernel 2.4.21
By the way, I've just noticed that so far, I hadn't told you how nice the whole thing is. Congrats and thanks! I'm going to use that with a few neat scripts so that I don't burn my new motherboard... socket 370 cards are rare these days !
Cheers,
Romain
Quoted 7 lines
Looks like I spoke too fast.
While making modules, I got an error message while compiling support for scx200. It's a minor problem for me cuz I don't have the chip, and when I removed support for that chip, compilation of the modules went on. But I thought I'd let you know anyways. This is still with i2c/lm-sensors 2.8.0, and vanilla kernel 2.4.21
Known problem. See http://delvare.free.fr/i2c/ for the full story.
Quoted 4 lines
By the way, I've just noticed that so far, I hadn't told you how nice the whole thing is. Congrats and thanks! I'm going to use that with a few neat scripts so that I don't burn my new motherboard... socket 370 cards are rare these days !
Thanks :)
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 7 lines
I've found the solution to my problem (apparently at least). I downloaded a vanilla kernel, instead of the distro kernel, and voil?. It worked. At least, it compiled, but I'm confident :)
The kernel was Mandrake 9.1 updated 2.4.21-0.25mdk. Compilation was ok with i2c patch only, but broken with lm-sensors patch.
I suspect that the Mandrake kernel *already* contains an i2c and/or lm_sensors patches that conflict with the more recent ones you were trying to use. The drivers/sensors/sensors.c file is gone from our distribution by now (as is sensors_init_all).
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Hey Jean :)
Thanx for your quick replies, sorry mine aren't that quick :P
Quoted 4 lines
I suspect that the Mandrake kernel *already* contains an i2c and/or
lm_sensorspatches that conflict with the more recent ones you were trying to use. Thedrivers/sensors/sensors.cfile is gone from our distribution by now (as issensors_init_all).
Ok. I was suspecting the Mandrake kernel... after a while, I've learnt that their kernels have sometimes lost most of their "vanilla" flavour...
2 more questions :
- has anyone found a reliable way to read the via686a's output ? it's offset by approx. 5?C here...
- I've been meaning to use rivatv together with i2c/lm-sensors, cuz I've got a GeForce256 based card here. For some reason though, I can't compile rivatv itself :
In file included from rivatv.h:9,
from i2c-riva.c:28:
rivatv-kcompat.h: In function `kcompat_i2c_client_get':
rivatv-kcompat.h:116: warning: implicit declaration of function `i2c_inc_use_client'rivatv-kcompat.h: In function `kcompat_i2c_client_put':
rivatv-kcompat.h:126: warning: implicit declaration of function `i2c_dec_use_client'
i2c-riva.c: At top level:
i2c-riva.c:242: unknown field `inc_use' specified in initializer i2c-riva.c:242: warning: initialization makes integer from pointer without a cast
Any known fix for that one ?
Merci d'avance et @ bient?t !
Romain
Hi again,
Quoted 7 lines
Quoted 3 lines
2 more questions :
- has anyone found a reliable way to read the via686a's output ? it's offset by approx. 5?C here...Which values are you comparing with? The "idle" temperature may vary from OS to OS (and from OS to BIOS setup screen), so the temperature offset may be normal.
Well, there is a significant difference between the readings I get from the BIOS and those form sensors. I don't think that the CPU has enough time to cool down by over 5?C between the moment I shutdown Linux and I access the BIOS for example...
Quoted 3 lines
If you want to correct it, you still can edit your
/etc/sensors.conffile. "Compute tempX @+5, @-5" should do it (or the contrary, depending on the offset sign).
Well I'll try that ... although I'm not sure is as simple as that, I'll prolly have to do a little benchmark.
Quoted 2 lines
If you believe this is a bug in our driver and can prove it, we'll of course fix it.
I think it's more related to what seems to be a common problem with VIA chipsets, ie the temp readings are not accurate. :(
Quoted 3 lines
See our installation guide here:
http://www.ensicaen.ismra.fr/~delvare/devel/i2c/
It describes your problem and a solution.
Thanx, I hadn't noticed the patch down there, working now :) Although the only sensors listed on the card are eeprom, and not really working. I thought there was a temp reading but maybe the card is too old to have that (3D prophet, Geforce256 based card...)
Quoted 3 lines
Note that the solution doesn't work with Linux 2.4.22 for now, but I'm currently working on an update (Hopefully available within the end of the day).
Well that's ok, I'm sticking to 2.4.21 for now, until grsec is patched too.
If you don't mind my bothering you some more ...
- sensors-detect says:
Detects correctly:
* Bus SMBus Via Pro adapter at 0400' (Non-I2C SMBus adapter) Busdriver i2c-viapro', I2C address 0x2d
Chip `National Semiconductor LM80' (confidence: 3)
However, I don't think I've got that chip anywhere on my PC. I wonder what chip could be misdetected like that, where to look ?
Thanks,
Romain
PS: if you like we can continue in French, unless there are other readers of course, I happen to be French as well :P
Quoted 9 lines
Quoted 5 lines
I suspect that the Mandrake kernel *already* contains an i2c and/or
lm_sensorspatches that conflict with the more recent ones you were trying to use. Thedrivers/sensors/sensors.cfile is gone from our distribution by now (as issensors_init_all).Ok. I was suspecting the Mandrake kernel... after a while, I've learnt that their kernels have sometimes lost most of their "vanilla" flavour...
So that was it.
Quoted 3 lines
2 more questions :
- has anyone found a reliable way to read the via686a's output ? it's offset by approx. 5?C here...
Which values are you comparing with? The "idle" temperature may vary from OS to OS (and from OS to BIOS setup screen), so the temperature offset may be normal.
If you want to correct it, you still can edit your /etc/sensors.conf file. "Compute tempX @+5, @-5" should do it (or the contrary, depending on the offset sign).
If you believe this is a bug in our driver and can prove it, we'll of course fix it.
Quoted 13 lines
- I've been meaning to use rivatv together with i2c/lm-sensors, cuz I've got a GeForce256 based card here. For some reason though, I can't compile rivatv itself :
In file included from rivatv.h:9,
from i2c-riva.c:28:
rivatv-kcompat.h: In function `kcompat_i2c_client_get':
rivatv-kcompat.h:116: warning: implicit declaration of function `i2c_inc_use_client'rivatv-kcompat.h: In function `kcompat_i2c_client_put':
rivatv-kcompat.h:126: warning: implicit declaration of function `i2c_dec_use_client'
Quoted 6 lines
i2c-riva.c: At top level:
i2c-riva.c:242: unknown field `inc_use' specified in initializer i2c-riva.c:242: warning: initialization makes integer from pointer without a castAny known fix for that one ?
See our installation guide here:
http://www.ensicaen.ismra.fr/~delvare/devel/i2c/
It describes your problem and a solution.
Note that the solution doesn't work with Linux 2.4.22 for now, but I'm currently working on an update (Hopefully available within the end of the day).
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 2 lines · Jean Delvare
VIA chipsets have an overall bad reputation (network adapters and motherboards alike) for sure.
That must be it then, I'll just live with it...
Quoted 5 lines
Quoted 3 lines
Well that's ok, I'm sticking to 2.4.21 for now, until grsec is patched too.
FYI, the patches are available by now.
Yup, got 2.4.22 running fine now, thanx :)
Quoted 9 lines
Quoted 8 lines
If you don't mind my bothering you some more ...
- sensors-detect says:
Detects correctly:
* BusSMBus Via Pro adapter at 0400' (Non-I2C SMBus adapter) Busdriveri2c-viapro', I2C address0x2d
Chip `National Semiconductor LM80' (confidence: 3)
However, I don't think I've got that chip anywhere on my PC. I wonder what chip could be misdetected like that, where to look ?
Quoted 6 lines
You should dump the chip contents and post the dump on this mailing-list. We'll take a look and see if we can find out what it is. Telling us what your motherboard is will help too. In order to dump the chip contents, use: "i2cdump 0
0x2d". (Replace 0 with the bus number if it's not 0). Make sure there's no chip driver loaded for that address, or you may confuse that driver with unpredictable results.
Ok here goes.
My motherboard is a Gigabyte GA-6VTXE-A, featuring the infamous ApolloPro133 (VT82C694T and 686B). Now for the dump :
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 01 82 16 00 00 00 00 50 ad ad 00 40 00 00 00 00 ???....P??.@.... 10: 00 00 00 ce a6 2a 39 86 00 00 00 00 00 ce c7 81 ...??*9?.....??? 20: a1 94 8b 56 cf c8 ca 7f 7f 87 ff 91 82 e7 bd e4 ???V??????.????? 30: ba de b5 dc b4 12 86 81 82 ae a4 e1 e1 c7 c0 a2 ???????????????? 40: 01 00 00 00 00 00 00 50 ad ad 00 40 00 00 00 00 ?......P??.@.... 50: 00 00 00 ce c0 2a cc 85 00 00 00 00 00 ce c7 81 ...??*??.....??? 60: a1 94 8c 56 cf c8 ca 7f 7f 87 ff 91 82 e7 bd e4 ???V??????.????? 70: ba de b5 dc b4 12 86 81 82 ae a4 e1 e1 c7 c0 a2 ???????????????? 80: 01 00 00 00 00 00 00 50 ad ad 00 40 00 00 00 00 ?......P??.@.... 90: 00 00 00 cc 76 2a 7f 85 00 00 00 00 00 ce c7 81 ...?v*??.....??? a0: a1 94 8c 56 ce c8 ca 7f 7f 87 ff 91 82 e7 bd e4 ???V??????.????? b0: ba de b5 dc b4 12 86 81 82 ae a4 e1 e1 c7 c0 a2 ???????????????? c0: 01 00 00 00 00 00 00 50 ad ad 00 40 00 00 00 00 ?......P??.@.... d0: 00 00 00 56 28 2a f2 85 00 00 00 00 00 ce c7 81 ...V(*??.....??? e0: a1 94 8b 56 cf c8 ca 7f 7f 87 ff 91 82 e7 bd e4 ???V??????.????? f0: ba de b5 dc b4 12 86 81 82 ae a4 e1 e1 c7 c0 a2 ????????????????
Thanx for your help!
Best regards,
Romain
Hello again,
Quoted 2 lines · Jean Delvare
VIA chipsets have an overall bad reputation (network adapters and motherboards alike) for sure.
I noticed that there's a linear fit in the via686a.c, in the temp conversion section, in the remarks.
The way I understand it, the linear fit is actually valid within a short range of temperatures, while the 5th degree polynomial is actually more accurate for the whole range.
The thing is, since I'm clueless at C, I don't know if the readings output by sensors when questioning the via686a are processed with any of these fits.
I tried applying the linear fit in the common temp range (temp = val x 0.427 + 32.08) in gkrellm, and behold! the readings *look* better. Now, I don't know if it's just a coincidence, or if it's actually the way it should work.
I'd really appreciate your comments on that one.
Thanks,
Romain
Quoted 9 lines
Quoted 4 lines
Which values are you comparing with? The "idle" temperature may vary from OS to OS (and from OS to BIOS setup screen), so the temperature offset may be normal.
Well, there is a significant difference between the readings I get from the BIOS and those form sensors. I don't think that the CPU has enough time to cool down by over 5?C between the moment I shutdown Linux and I access the BIOS for example...
Actually the system would more likely heat up than cool down. The shutdown process is rather CPU intensive AFAIK. And BIOS things aren't optimized for CPU idling either.
Quoted 5 lines
Quoted 2 lines
If you believe this is a bug in our driver and can prove it, we'll of course fix it.
I think it's more related to what seems to be a common problem with VIA chipsets, ie the temp readings are not accurate. :(
VIA chipsets have an overall bad reputation (network adapters and motherboards alike) for sure.
Quoted 4 lines
Thanx, I hadn't noticed the patch down there, working now :) Although the only sensors listed on the card are eeprom, and not really working. I thought there was a temp reading but maybe the card is too old to have that (3D prophet, Geforce256 based card...)
Unload the eeprom module, and load the ddcmon module instead. That's what most video cards want. If your monitor supports it, the module will return some information about it.
If sensors-detect told you to use eeprom, I'd be interested in the sensors-detect log, and in an i2cdump of the chip at address 0x50 on that bus.
Quoted 6 lines
Quoted 3 lines
Note that the solution doesn't work with Linux 2.4.22 for now, but I'm currently working on an update (Hopefully available within the end of the day).
Well that's ok, I'm sticking to 2.4.21 for now, until grsec is patched too.
FYI, the patches are available by now.
Quoted 8 lines
If you don't mind my bothering you some more ...
- sensors-detect says:
Detects correctly:
* BusSMBus Via Pro adapter at 0400' (Non-I2C SMBus adapter) Busdriveri2c-viapro', I2C address0x2d
Chip `National Semiconductor LM80' (confidence: 3)
However, I don't think I've got that chip anywhere on my PC. I wonder what chip could be misdetected like that, where to look ?
You should dump the chip contents and post the dump on this mailing-list. We'll take a look and see if we can find out what it is. Telling us what your motherboard is will help too. In order to dump the chip contents, use: "i2cdump 0 0x2d". (Replace 0 with the bus number if it's not 0). Make sure there's no chip driver loaded for that address, or you may confuse that driver with unpredictable results.
Quoted 2 lines
PS: if you like we can continue in French, unless there are other readers of course, I happen to be French as well :P
Noone but me reads French on this list, methinks ;) So let's stick to English.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 6 lines
Ok here goes.
My motherboard is a Gigabyte GA-6VTXE-A, featuring the infamous ApolloPro133 (VT82C694T and 686B). Now for the dump :
(...)
Doesn't look like a LM80 to my, although this chip is admitedly hard to identify.
Did you try loading the LM80 driver? I wonder if the values would make sense.
Sorry, I can't tell you what it is if it isn't a LM80.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 4 lines · Romain Riviere
Hi again,
..
Quoted 9 lines
If you don't mind my bothering you some more ...
- sensors-detect says:
Detects correctly:
* BusSMBus Via Pro adapter at 0400' (Non-I2C SMBus adapter) Busdriveri2c-viapro', I2C address0x2d
Chip `National Semiconductor LM80' (confidence: 3)
However, I don't think I've got that chip anywhere on my PC. I wonder what chip could be misdetected like that, where to look ?
other chips are often misdetected as LM80's.
Look at your board to see if you can identify.
You can use i2cdump as well.
See bottom of our New Drivers page and our FAQ for more info.
Hello,
Quoted 4 lines
Did you try loading the LM80 driver? I wonder if the values would make sense.
Sorry, I can't tell you what it is if it isn't a LM80.
The values make no sense at all, I have no idea what this chip is. I guess it's another case of "Nevermind" ;)
Quoted 5 lines
Quoted 3 lines
The thing is, since I'm clueless at C, I don't know if the readings output by sensors when questioning the via686a are processed with any of these fits.
Looks like there are, or why would they be in the module code?
Well, the fact that the linear fit was included in the remarks and not in the code itself sortof confused me. Now that I've read the whole thing again, I realize that the fit were in fact used to create the values for the look up tables. Another "nevermind" !
But the readings *do* look better now. I'll probably investigate that a bit, maybe with some help from Gigabyte (they actually answer tech support, unbelievable...). By the way, VIA has released a guide and a small utility to "enable the hardware monitoring functions for VIA southbridge chips VT82C686B and VT8231, and Low-Pin-Count Super I/O chip VT1211". I thought I could find anything useful in there, but no joy. Maybe you guys will!
Best,
Romain
Quoted 7 lines
I noticed that there's a linear fit in the
via686a.c, in the temp conversion section, in the remarks.
The way I understand it, the linear fit is actually valid within a short range of temperatures, while the 5th degree polynomial is actually more accurate for the whole range.
That's not the way I understand it. the 5th degree polynomial is valid for interger (that is, 7-bit) readings, and the linear interpolation is made for the 3 extra bits (value .125 degree). So the whole range has the same average accuracy.
Quoted 3 lines
The thing is, since I'm clueless at C, I don't know if the readings output by sensors when questioning the via686a are processed with any of these fits.
Looks like there are, or why would they be in the module code?
Quoted 5 lines
I tried applying the linear fit in the common temp range (temp = val x 0.427 + 32.08) in gkrellm, and behold! the readings *look* better. Now, I don't know if it's just a coincidence, or if it's actually the way it should work.
I'd really appreciate your comments on that one.
I think it is a coincidence. Either formula should be used, not both. Our formula, derived from Alex van Kaam's one (the author of Motherboard Monitor), is supposed to be better than the linear fits.
Anyway, if you get something better that way, why not...
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/