CPU temp does not update
I cannot get the CPU temp to update, from cold (after being powered down overnight for example) sensors will report a temp of approx 16-17c and it will not move. If I run for a while and reboot, CPU temp will then show something like 45-50c and again it will not move. In both cases this is similar to the temp reported by BIOS as the system boots.
I think I have shown the relevant information below.
Any suggestions will be gratefully received.
Thank you in anticipation
John Clarke
lm_sensors2.9.0 -2mdk
kernel 2.6.8.1-12mdk
Processor AMD Athlon 2400xp
Jetway V266B mainboard
output of lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333] 00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 AGP] 00:09.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]
00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS) 00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge 00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) 00:11.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 23)
00:11.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 23)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 40)
Output of sensors-detect
Driver `w83781d' (may not be inserted):
Misdetects:
* ISA bus address 0x0290 (Busdriver `i2c-isa')
Chip `Winbond W83697HF' (confidence: 8)
Driver `w83627hf' (should be inserted):
Detects correctly:
* ISA bus address 0x0290 (Busdriver i2c-isa') Chip Winbond W83697HF Super IO Sensors' (confidence: 9)
To make the sensors modules behave correctly, add these lines to /etc/modules.conf:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
To load everything that is needed, add this to some /etc/rc* file:
#----cut here----
# I2C adapter drivers
modprobe i2c-isa
# I2C chip drivers
modprobe w83627hf
# sleep 2 # optional /usr/local/bin/sensors -s # recommended #----cut here----
/etc/sysconfig/lm_sensors
# Generated by sensors-detect on Mon Jan 24 17:25:29 2005 MODULE_0=i2c-isa
MODULE_1=w83627hf
/etc/rc.d/rc.local
touch /var/lock/subsys/local
# I2C adapter drivers
modprobe i2c-isa
# I2C chip drivers
modprobe w83627hf
# sleep 2 # optional /usr/bin/sensors -s # recommended (note not /usr/local/bin/ as Mandrake 10.1 puts sensors in /usr/bin)
The lm_sensors script is in /etc/rc.d/init.d
Finally output of sensors after running for about 1 hour (system had been shut down for approx 2 hours before booting and checking sensors)
# sensors
w83697hf-isa-0290
Adapter: ISA adapter
VCore: +1.66 V (min = +1.71 V, max = +1.89 V)
+3.3V: +3.31 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.51 V (min = -13.18 V, max = -10.88 V)
-5V: -5.35 V (min = -5.25 V, max = -4.75 V)
V5SB: +5.46 V (min = +4.73 V, max = +5.24 V)
VBat: +3.26 V (min = +2.40 V, max = +3.60 V)
fan1: 3199 RPM (min = 10546 RPM, div = 2)
fan2: 0 RPM (min = 10074 RPM, div = 2)
temp1: +27?C (high = +40?C, hyst = +37?C) sensor = thermistor
temp2: +23.5?C (high = +52?C, hyst = +47?C) sensor = thermistor
alarms:
beep_enable:
Sound alarm disabledeeprom-i2c-1-50
Adapter: SMBus Via Pro adapter at 5000 Memory type: DDR SDRAM DIMM Memory size (MB): 512
Hi John,
Quoted 8 lines
I cannot get the CPU temp to update, from cold (after being powered down overnight for example) sensors will report a temp of approx 16-17c and it will not move. If I run for a while and reboot, CPU temp will then show something like 45-50c and again it will not move. In both cases this is similar to the temp reported by BIOS as the system boots. I think I have shown the relevant information below.
Any suggestions will be gratefully received.
You configuration looks OK. I would like you to test and answer the following:
1* Do the voltage and fan speeds change? IOW, is the whole chip stuck or only the temperature channels?
2* If you sit in the BIOS, can you see the temperatures change, or not?
3* If you unload and reload the w83627hf driver, do the temperatures (sometimes) change?
4* Please provide a dump of the chip (isadump 0x295 0x296).
Thanks,
Signature · 2 lines
Jean Delvare http://khali.linux-fr.org/
Hi Jean,
Thanks for the very prompt response, which is very much appreciated. My replies are inline.
Additionally, it may help you to know that if I put my Mandrake 9.1 installation into the same machine (I only have one computer - system hard drives are mounted in removable trays) sensors all work correctly within 9.1, this is using lm_sensors 2.7.0-2mdk and kernel 2.4.21-0.33mdk.
If you need any more information from me, I apologise that I will not be able to reply to you until tomorrow as I will be at work and away from my computer until after midnight today.
Thanks again
John
Quoted 9 lines · Jean Delvare
Hi John,
Quoted 7 lines
I cannot get the CPU temp to update, from cold (after being powered down overnight for example) sensors will report a temp of approx 16-17c and it will not move. If I run for a while and reboot, CPU temp will then show something like 45-50c and again it will not move. In both cases this is similar to the temp reported by BIOS as the system boots. I think I have shown the relevant information below.
Quoted 7 lines
Quoted 1 line
Any suggestions will be gratefully received.
You configuration looks OK. I would like you to test and answer the following:
1* Do the voltage and fan speeds change? IOW, is the whole chip stuck or only the temperature channels?
Yes, voltage & fan speeds do change, also sytem temp (temp1) does change. It is only CPU (temp2) which sticks.
Quoted 1 line
2* If you sit in the BIOS, can you see the temperatures change, or not?
Yes, temperature does change
Quoted 2 lines
3* If you unload and reload the w83627hf driver, do the temperatures (sometimes) change?
I'm not completely sure what you need me to do, so I have rmmod w83627hf and then modprobe w83627hf, issued service lm_sensors restart and then run sensors, the CPU temp does not change.
Quoted 2 lines
4* Please provide a dump of the chip (isadump
0x2950x296).
# isadump 0x295 0x296
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x295 and data register 0x296.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 01 ff 01 ff 00 00 00 00 01 01 01 01 3c 3c 0a 0a
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: 68 00 cf b7 ce 12 30 19 d1 ff ff 76 6b 00 04 d9
30: c4 c3 b1 d9 b2 32 15 3b 31 28 25 40 03 00 00 00
40: 01 00 00 00 00 00 00 57 1f 02 89 c4 54 95 00 a3
50: ff ff 00 ff ff ff 00 00 60 70 ff ff 11 01 ff 05
60: 68 00 cf b7 ce 12 30 19 d1 ff ff 76 6b 00 04 d9
70: c4 c3 b1 d9 b2 32 15 3b 31 28 25 40 03 00 00 00
80: 01 ff 01 ff 00 00 00 00 01 01 01 01 3c 3c 0a 0a
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: 68 00 cf b7 ce 12 30 19 d1 ff ff 76 6b 00 04 d9
b0: c4 c3 b1 d9 b2 32 15 3b 31 28 25 40 03 00 00 00
c0: 01 00 00 00 00 00 00 57 1f 02 89 c4 54 95 00 a3
d0: ff ff 00 ff ff ff 00 00 60 70 ff ff 11 01 ff 05
e0: 68 00 cf b7 ce 12 30 19 d1 ff ff 76 6b 00 04 d9
f0: c4 c3 b1 d9 b2 32 15 3b 31 28 25 40 03 00 00 00[Please do not forget to CC: the sensors list on reply]
Hi again John,
Quoted 5 lines
Quoted 3 lines
If possible, restart your system so that the w83627hf is not even loaded, in case it had a "permanent" (till next reboot) effect on the chip.
Not sure how to do this, should I go to all sensors conf files and replace w83627hf with w83781d and then reboot ?
Simply edit /etc/rc.d/rc.local, replace "modprobe w83627hf" with "modprobe w83781d". Even better, comment out the modprobe line altogether, so that you can load the drivers manually for now. Remove the call to "sensors -s" if you do.
Quoted 5 lines
temp2: +25.5?C (high = +52?C, hyst = +47?C) sensor = thermistor
(...)
isadump0x2950x2961
(...)
50: 19 80 01 2f 00 34 00 ff ff ff ff ff ff ff ff ff
The register values match what was displayed by "sensors". However, configuration register (at 0x52) reads 0x01 which means (surprise) "stop monitoring". This explains why the value is never updated.
The w83781d driver in lm_sensors 2.7.0 explicitely re-enables temp2 and temp3, which is why it works fine on your Mandrake 9.1 system. The w83781d driver in Linux 2.6 re-enables temp3 but for some reason not temp2. Don't even bother testing it, it will not behave any better than w83627hf does. The w83627hf driver in Linux 2.6 doesn't re-enable any of them, thus the problem you observed.
I would like you to dump the chip again (with "isadump 0x295 0x296 1") after a reboot but before you load any chip driver (this supposes that you commented out the modprobe line in /etc/rc.d/rc.local as explained above). That way we will know what state the chip is in in the first place. The datasheet says that temp2 and temp3 are enabled by default, but I start doubting that.
Then you may try loading the w83627hf driver with the init parameter set to 0:
modprobe w83627hf init=0
Among others, it will skip the chip reset. I have been advocating a removal of chip resets from all drivers for a long time now, BTW.
Let us know if temp2 now updates properly or not.
If it does, you may want to add the following line to /etc/modprobe.conf:
options w83627hf init=0
That would solve your problem for now.
Nevertheless, we obviously need to fix the Linux 2.6 drivers so that they re-enable temp2 and temp3 again.
Thanks,
--
Jean Delvare
Hi John,
Quoted 4 lines
Additionally, it may help you to know that if I put my Mandrake 9.1 installation into the same machine (I only have one computer - system hard drives are mounted in removable trays) sensors all work correctly within 9.1, this is using
lm_sensors2.7.0-2mdk and kernel 2.4.21-0.33mdk.
This is an extremely useful information, since it discards the possibility of hardware failure or motherboard wiring oddity.
The w83627hf did not exist back then, so this means that you are using the w83781d driver on your Mandrake 9.1. Can you please confirm?
The w83781d driver is still there in Linux 2.6 and should support your W83697HF chipset just fine. On your Mandrake 10.1 system, please try unloading the w83627hf driver and instead use the w83781d driver. Let us know whether you observe the same problem with CPU temp or not. If possible, restart your system so that the w83627hf is not even loaded, in case it had a "permanent" (till next reboot) effect on the chip.
This test should let us know whether this is a driver issue (w83781d vs w83627hf) or a version issue (lm_sensors 2.7.0 vs linux 2.6).
Quoted 3 lines
Quoted 1 line
4* Please provide a dump of the chip (isadump
0x2950x296).# isadump 0x295 0x296
Ah, my bad. I should have asked for something slightly different:
isadump 0x295 0x296 1
(The "1" stands for Bank #1, where the CPU temp data resides.)
I would like you to run "sensors" right before isadump, so that I can compare whether the temperature reported matches the register values or not. If it matches, this is definitely a hardware configuration problem. If not, the driver is obviously at fault.
In the meantime, I skimmed through the driver source code in search for an obvious problem with temp2 on the W83697HF chip, but couldn't find anything.
Thanks,
--
Jean Delvare
Hi John,
Quoted 1 line
Just a quick follow up to my reply (now I am late for work but who cares)
Your boss maybe? ;)
Quoted 1 line
Despite the error, sensors is now updating as you predicted,
Great :) I was about to ask you.
I will investigate as why the error occurs, but in fact it isn't really a problem as this is only a temporary solution.
Quoted 3 lines
my last question
(I hope) is do I need to run the script with every reboot ? If so can you tell me where to put it please ?
Yes you have to. Put is right before (or right after) the "modprobe w83627hf" in /etc/rc.d/rc.local, that should do it.
Quoted 1 line
Thank you very much for your hard work, it is truly appreciated.
Thanks for your excellent testing! I'm glad we nailed this bug (as I said I seem to remember you are not the first one to report it), and will work on definitive patches ASAP.
Thanks again,
--
Jean Delvare
Hi John,
Quoted 2 lines
here is lsmod immediately after reboot
(...)
(no w83627hf)
Quoted 4 lines
and here is
# isadump 0x295 0x296 1 (..) 50: 2d 80 01 7a 00 7f 00 ff ff ff ff ff ff ff ff ff
To my great surprise, temp2 is *already* disabled at this point. This suggests the following things:
1* This is probably the hardware default, contrary to what the datasheet says.
2* Your BIOS doesn't enable temp2 on regular boot, although it obviously enables it when you enter the setup screen (you saw the temperature update there).
Quoted 4 lines
I have now done modprobe w83627hf init=0
(...)
Unfortunately it does not change (I ran cpuburn for a few minutes, fan speed increased as expected but no change to temp2)
You are lucky that the fan speed changed at all. If it was based solely on the CPU temperature it wouldn't have. I guess it somehow also depends on the system temperature (which is not disabled and probably cannot be). Unless this is a self-regulating fan?
Skipping the init would have preserved a correct setup done by the BIOS, but since such a setup was not done in the first place, it didn't help. No surprise here.
So, what next? You can just reconfigure the chip on the fly, thanks to the following command sequence:
isaset -y 0x295 0x296 0x4e 0x01
isaset -y 0x295 0x295 0x52 0x00
isaset -y 0x295 0x296 0x4e 0x00
Preferably you would prepare the lines in a script so as to run them all in a row. It is important to make sure that nobody accesses the chip between the commands.
You can run this sequence either before loading the w83627hf driver, in which case you would still need "init=0", or after the w83627hf driver has been loaded.
This should hopefully re-enable temp2, for good this time. Of course this is only a temporary method. Now that I know what should be done, I will update the drivers so as to enable the temperature channels by default - maybe with a warning in the logs since the channels may actually not be used (no remote sensor connected). Expect some delay before the update reaches your distribution kernel though.
Thanks,
--
Jean Delvare