W83627DHG driver on MSI 975x board
On Sun, 2008-03-09 at 20:08 +0100, Joakim Larsson wrote:
ok, so I downloaded the Ubuntu Feisty 2.6.20 kernel source and compiled the modules and then just copied the driver from the 2.6.24 kernel source and recompiled it. Then I did make modules_install. The modules now loads successfully:
$ sudo modprobe hwmon-vid $ sudo modprobe w83627ehf $ dmesg <snip> [ 127.521735] w83627ehf: Found W83627DHG chip at 0x290 <snip>
However when I run sensors I got the following output:
$ sudo sensors w83627dhg-isa-0290 Adapter: ISA adapter
And no other output. I'll try to debug but any hint's appreciated! :-)
BR
Joakim
Quoted 17 lines
I downloaded the latest sensors-detect script from lm-sensors.org
<snip>
Quoted 9 lines
Quoted 2 lines
So I suspect that the latest sensors-detect script is doing something wrong.
I don't think so. sensors-detect tells that you have a W83627DHG and I believe it is true. However,
http://www.lm-sensors.org/wiki/Devices
says that support for this chip was only added in kernel 2.6.21, while you're apparently running 2.6.20. This explains why the w83627ehf driver says "no device found".Got it, I'll try to backport the 2.6.20 code as a module and see if it loads.
Quoted 7 lines
// joakim
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Joakim,
Quoted 12 lines
ok, so I downloaded the Ubuntu Feisty 2.6.20 kernel source and compiled the modules and then just copied the driver from the 2.6.24 kernel source and recompiled it. Then I did make
modules_install. The modules now loads successfully:$ sudo modprobe hwmon-vid $ sudo modprobe w83627ehf $ dmesg <snip> [ 127.521735] w83627ehf: Found W83627DHG chip at 0x290 <snip>
Quoted 7 lines
However when I run sensors I got the following output:
$ sudo sensors w83627dhg-isa-0290 Adapter: ISA adapterAnd no other output. I'll try to debug but any hint's appreciated! :-)
Verify that you have a directory in /sys/class/hwmon/ (probably it is /sys/class/hwmon/hwmon0/). You can actually view the plain-text data read from your chip in /sys/class/hwmon/hwmon0/device/.
Assuming that's all working, sensors just needs you to edit /etc/sensors.conf and set up the motherboard-specific parameters, such as what fans are really present, what the voltage measurements mean, etc. Your BIOS setup should be useful in getting those numbers right.
Good luck!
David
Quoted 23 lines
BR
Joakim
Quoted 18 lines
I downloaded the latest sensors-detect script from lm-sensors.org
<snip>
Quoted 9 lines
Quoted 2 lines
So I suspect that the latest sensors-detect script is doing something wrong.
I don't think so. sensors-detect tells that you have a W83627DHG and I believe it is true. However,
http://www.lm-sensors.org/wiki/Devices
says that support for this chip was only added in kernel 2.6.21, while you're apparently running 2.6.20. This explains why the w83627ehf driver says "no device found".Got it, I'll try to backport the 2.6.20 code as a module and see if it loads.
// joakim
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Joakim,
Quoted 14 lines · Joakim Larsson
On Sun, 2008-03-09 at 20:08 +0100, Joakim Larsson wrote:
ok, so I downloaded the Ubuntu Feisty 2.6.20 kernel source and compiled the modules and then just copied the driver from the 2.6.24 kernel source and recompiled it. Then I did make
modules_install. The modules now loads successfully:$ sudo modprobe hwmon-vid $ sudo modprobe w83627ehf $ dmesg <snip> [ 127.521735] w83627ehf: Found W83627DHG chip at 0x290 <snip>
Quoted 7 lines
However when I run sensors I got the following output:
$ sudo sensors w83627dhg-isa-0290 Adapter: ISA adapterAnd no other output. I'll try to debug but any hint's appreciated! :-)
What version of lm-sensors are you using again? w83627dhg support was added in 2.10.2.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Jean,
thanks for the hint, Ubuntu Feisty uses lm-sensors 2.10.1 So I compiled and installed the latest version (3.0.1) and starts to get some results from sensor, see below. I will go through the configuration now and figure out why the fan still sounds like my vacuum cleaner.
BR
Joakim
joakim@montecristo:~$ sensors -v sensors version 3.0.1 with libsensors version 3.0.1 joakim@montecristo:~$ sensors w83627dhg-isa-0290 Adapter: ISA adapter VCore: +1.35 V (min = +0.00 V, max = +1.74 V) in1: +12.46 V (min = +6.39 V, max = +0.90 V) ALARM AVCC: +3.28 V (min = +0.54 V, max = +2.05 V) ALARM 3VCC: +3.28 V (min = +0.66 V, max = +0.00 V) ALARM in4: +1.86 V (min = +1.07 V, max = +0.39 V) ALARM in5: +1.46 V (min = +1.02 V, max = +0.06 V) ALARM in6: +5.04 V (min = +2.59 V, max = +4.12 V) ALARM VSB: +3.28 V (min = +0.02 V, max = +1.60 V) ALARM VBAT: +3.09 V (min = +1.58 V, max = +0.32 V) ALARM Case Fan: 0 RPM (min = 376 RPM, div = 64) ALARM CPU Fan: 2481 RPM (min = 2109 RPM, div = 16) Aux Fan: 1298 RPM (min = 439 RPM, div = 16) fan4: 0 RPM (min = 8881 RPM, div = 4) ALARM fan5: 0 RPM (min = 10227 RPM, div = 4) ALARM Sys Temp: +37.0°C (high = +0.0°C, hyst = +16.0°C) ALARM sensor thermistor CPU Temp: +18.0°C (high = +110.0°C, hyst = +125.0°C) sensor = diode AUX Temp: +64.0°C (high = +120.0°C, hyst = +115.0°C) sensor thermistor
Quoted 19 lines · Jean Delvare
Hi Joakim,
Quoted 16 lines · Joakim Larsson
On Sun, 2008-03-09 at 20:08 +0100, Joakim Larsson wrote:
ok, so I downloaded the Ubuntu Feisty 2.6.20 kernel source and compiled the modules and then just copied the driver from the 2.6.24 kernel source and recompiled it. Then I did make
modules_install. The modules now loads successfully:$ sudo modprobe hwmon-vid $ sudo modprobe w83627ehf $ dmesg <snip> [ 127.521735] w83627ehf: Found W83627DHG chip at 0x290 <snip>However when I run sensors I got the following output:
Quoted 9 lines
Quoted 5 lines
$ sudo sensors w83627dhg-isa-0290 Adapter: ISA adapterAnd no other output. I'll try to debug but any hint's appreciated! :-)
What version of lm-sensors are you using again? w83627dhg support was added in 2.10.2.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Joakim,
Quoted 10 lines · Joakim Larsson
thanks for the hint, Ubuntu Feisty uses lm-sensors 2.10.1 So I compiled and installed the latest version (3.0.1) and starts to get some results from sensor, see below. I will go through the configuration now and figure out why the fan still sounds like my vacuum cleaner.
BR
Joakim
Quoted 7 lines
joakim@montecristo:~$ sensors -v sensors version 3.0.1 with libsensors version 3.0.1 joakim@montecristo:~$ sensors w83627dhg-isa-0290 Adapter: ISA adapter VCore: +1.35 V (min = +0.00 V, max = +1.74 V) in1: +12.46 V (min = +6.39 V, max = +0.90 V) ALARM
Probably +12V
Quoted 5 lines
AVCC: +3.28 V (min = +0.54 V, max = +2.05 V) ALARM 3VCC: +3.28 V (min = +0.66 V, max = +0.00 V) ALARM in4: +1.86 V (min = +1.07 V, max = +0.39 V) ALARM in5: +1.46 V (min = +1.02 V, max = +0.06 V) ALARM in6: +5.04 V (min = +2.59 V, max = +4.12 V) ALARM
and +5V. If your system uses DDR2 SDRAM, in4 could be Vdimm. in5 could be Vagp. If I'm right, you can add the following lines to the w83627dhg-* section in /etc/sensors3.conf:
label in1 "+12V" label in4 "Vdimm" label in5 "Vagp" label in6 "+5V"
Quoted 2 lines
VSB: +3.28 V (min = +0.02 V, max = +1.60 V) ALARM VBAT: +3.09 V (min = +1.58 V, max = +0.32 V) ALARM
To get rid of the alarms, uncomment the "set in*" statements, adjust the limits as needed (typically -10% and +10% of the nominal value), and run "sensors -s".
Quoted 5 lines
Case Fan: 0 RPM (min = 376 RPM, div = 64) ALARM CPU Fan: 2481 RPM (min = 2109 RPM, div = 16) Aux Fan: 1298 RPM (min = 439 RPM, div = 16) fan4: 0 RPM (min = 8881 RPM, div = 4) ALARM fan5: 0 RPM (min = 10227 RPM, div = 4) ALARM
I guess that you have only 2 fans in this system, so you can add:
ignore fan1
ignore fan4
ignore fan5
And change fan3's label:
label fan3 "Case Fan"
These are very reasonable fan speeds and I have to admit that I am surprised the one the fans "sounds like your vacuum cleaner".
Quoted 3 lines
Sys Temp: +37.0°C (high = +0.0°C, hyst = +16.0°C) ALARM sensor = thermistor CPU Temp: +18.0°C (high = +110.0°C, hyst = +125.0°C) sensor = diode AUX Temp: +64.0°C (high = +120.0°C, hyst = +115.0°C) sensor = thermistor
While temp1 and temp3 look reasonable, temp2 is way too low to be correct. What does the BIOS display? Maybe you need to add some arbitrary offset.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Jean,
I got rid of all the Alarms now by tweaking the sensors3.conf
Quoted 7 lines · Jean Delvare
Quoted 5 lines
Case Fan: 0 RPM (min = 376 RPM, div = 64) ALARM CPU Fan: 2481 RPM (min = 2109 RPM, div = 16) Aux Fan: 1298 RPM (min = 439 RPM, div = 16) fan4: 0 RPM (min = 8881 RPM, div = 4) ALARM fan5: 0 RPM (min = 10227 RPM, div = 4) ALARMI guess that you have only 2 fans in this system, so you can add:
There are three including the one in the power supply. The big case fan has a manual speed control that I have set to "low".
Quoted 2 lines
These are very reasonable fan speeds and I have to admit that I am surprised the one the fans "sounds like your vacuum cleaner".
I have read about the motherboard that it has only speed control for the CPU fan but so far I have not been able to find the control i/o for it with pwmconfig (see output below), so I need to dig further.
Maybe I got a silent vacuum cleaner but there is a sustained/constant noise when the computer is heated up. When the Smart Fan is enabled in BIOS the computer is somewhat less noisy between 30 degrees and up with 2-3 distinctive steps in speeds for the CPU fan before it reaches cruising temperature.
I will try to
- upgrade BIOS (Need to boot into Window$!!!, Grrrr....)
- set the silent chassi fan to mid or high to help CPU fan
- check air flows including heat pipe from CPU fan
- turn off Smart Fan and try to get CPU fan control to work
Do you know where to find info on how to set the target temp for the Smart Fan feature from Linux? I know there is no support in lm-sensors yet but it would be fun to try it out.
BR
Joakim
Quoted 8 lines
Quoted 4 lines
Sys Temp: +37.0°C (high = +0.0°C, hyst = +16.0°C) ALARM sensor = thermistor CPU Temp: +18.0°C (high = +110.0°C, hyst = +125.0°C) sensor = diode AUX Temp: +64.0°C (high = +120.0°C, hyst = +115.0°C) sensor = thermistorWhile temp1 and temp3 look reasonable, temp2 is way too low to be correct. What does the BIOS display? Maybe you need to add some arbitrary offset.
$ sudo pwmconfig This program will search your sensors for pulse width modulation (pwm) controls, and test each one to see if it controls a fan on your motherboard. Note that many motherboards do not have pwm circuitry installed, even if your sensor chip supports pwm.
We will attempt to briefly stop each fan using the pwm controls. The program will attempt to restore each fan to full speed after testing. However, it is ** very important ** that you physically verify that the fans have been to full speed after the program has completed.
Found the following devices:
hwmon0/device is w83627dhg
Found the following PWM controls:
hwmon0/device/pwm1
hwmon0/device/pwm2
hwmon0/device/pwm3
hwmon0/device/pwm4
Giving the fans some time to reach full speed...
Found the following fan sensors:
hwmon0/device/fan1_input current speed: 0 ... skipping! hwmon0/device/fan2_input current speed: 2410 RPM hwmon0/device/fan3_input current speed: 1278 RPM hwmon0/device/fan4_input current speed: 0 ... skipping! hwmon0/device/fan5_input current speed: 0 ... skipping!
Warning!!! This program will stop your fans, one at a time, for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!! If you do not want to do this hit control-C now!!! Hit return to continue:
Testing pwm control hwmon0/device/pwm1 ...
hwmon0/device/fan2_input ... speed was 2410 now 2410
no correlation
hwmon0/device/fan3_input ... speed was 1278 now 1278
no correlation
No correlations were detected.
There is either no fan connected to the output of hwmon0/device/pwm1, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)
Did you see/hear a fan stopping during the above test (n)?
Testing pwm control hwmon0/device/pwm2 ...
hwmon0/device/fan2_input ... speed was 2410 now 2343
no correlation
hwmon0/device/fan3_input ... speed was 1278 now 1259
no correlation
No correlations were detected.
There is either no fan connected to the output of hwmon0/device/pwm2, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)
Did you see/hear a fan stopping during the above test (n)?
Testing pwm control hwmon0/device/pwm3 ...
hwmon0/device/fan2_input ... speed was 2410 now 2410
no correlation
hwmon0/device/fan3_input ... speed was 1278 now 1259
no correlation
No correlations were detected.
There is either no fan connected to the output of hwmon0/device/pwm3, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)
Did you see/hear a fan stopping during the above test (n)?
Testing pwm control hwmon0/device/pwm4 ...
hwmon0/device/fan2_input ... speed was 2410 now 2343
no correlation
hwmon0/device/fan3_input ... speed was 1278 now 1259
no correlation
No correlations were detected.
There is either no fan connected to the output of hwmon0/device/pwm4, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)
Did you see/hear a fan stopping during the above test (n)?
Testing is complete.
Please verify that all fans have returned to their normal speed.
The fancontrol script can automatically respond to temperature changes of your system by changing fanspeeds.
Do you want to set up its configuration file now (y)?
What should be the path to your fancontrol config file (/etc/fancontrol)?
Loading configuration from /etc/fancontrol ...
Select fan output to configure, or other action:
1) Change INTERVAL 3) Save and quit
2) Just quit 4) Show configuration
select (1-n): 2
joakim@montecristo:~$
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Joakim,
Quoted 11 lines · Joakim Larsson
Hi Jean,
I got rid of all the Alarms now by tweaking the sensors3.conf
Quoted 6 lines · Jean Delvare
Quoted 5 lines
Case Fan: 0 RPM (min = 376 RPM, div = 64) ALARM CPU Fan: 2481 RPM (min = 2109 RPM, div = 16) Aux Fan: 1298 RPM (min = 439 RPM, div = 16) fan4: 0 RPM (min = 8881 RPM, div = 4) ALARM fan5: 0 RPM (min = 10227 RPM, div = 4) ALARM
Quoted 4 lines
Quoted 1 line
I guess that you have only 2 fans in this system, so you can add:
There are three including the one in the power supply. The big case fan has a manual speed control that I have set to "low".
In most cases, the fan in the PSU is not connected to a motherboard fan header and thus can neither be monitored nor controlled by the hardware monitoring chip.
Quoted 6 lines
Quoted 2 lines
These are very reasonable fan speeds and I have to admit that I am surprised the one the fans "sounds like your vacuum cleaner".
I have read about the motherboard that it has only speed control for the CPU fan but so far I have not been able to find the control i/o for it with pwmconfig (see output below), so I need to dig further.
Where did you read this? Different revisions of the same motherboard may behave differently in this respect. On top of that, users don't always realize the difference between thermo-regulated fans and fans controlled by a hardware monitoring chip. That being said...
Quoted 5 lines
Maybe I got a silent vacuum cleaner but there is a sustained/constant noise when the computer is heated up. When the Smart Fan is enabled in BIOS the computer is somewhat less noisy between 30 degrees and up with 2-3 distinctive steps in speeds for the CPU fan before it reaches cruising temperature.
... if your BIOS advertises a "Smart Fan" feature, your motherboard can certainly control the fans. So I am very surprised that pwmconfig didn't find any pwm/fan correlation. This could mean that the fan speed control is done by ACPI, in which case you probably shouldn't use the w83627ehf driver at all :( You can figure out by disassembling your DSDT and looking for references to thermal zones (TZ), fans, etc.
Quoted 3 lines
I will try to
- upgrade BIOS (Need to boot into Window$!!!, Grrrr....)
- set the silent chassi fan to mid or high to help CPU fan
I have done that on both my workstation and my home server and I confirm that it helps a lot. Large case fans can lower the case temperature significantly for almost no increase in noise level.
Quoted 2 lines
- check air flows including heat pipe from CPU fan
- turn off Smart Fan and try to get CPU fan control to work
I am really curious what this "Smart Fan" option does exactly (and how), and trying without it is a good idea.
Quoted 4 lines
Do you know where to find info on how to set the target temp for the Smart Fan feature from Linux? I know there is no support in lm-sensors yet but it would be fun to try it out.
It really depends on how this "Smart Fan" feature is implemented. If it is handled by the W83627DHG it's only a matter of writing the target temperature value to some sysfs file under /sys/class/hwmon. If it's handled by ACPI, older kernels would let you override the thermal trip points, but this is no longer possible. If control is achieved by yet another mean I can't even think of, I really can't help.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors