smsc47m1 FAN problem on MS-6796 chipset Intel 865G
Quoted 96 lines
Hi Martin,
I will use english so other people might profit from solution. Please dont forget to reply (or just CC) to the lm-sensors address.
Quoted 6 lines
Ahoj!
Obraciam sa na VAs s prosbou o pomoc. Mam motherboard MS-6797 a dopatral som sa, ze FAN senzor je SMSC LPC47M15x. Problem je, ze oba FANy bezia na maximalne otacky a neviem ich nijako regulovat. Do jadra 2.6.11 som napatchoval linux-2.6.12-rc3-i2c-smsc47m1-select-pwm-clock.diff
a prekompiloval modul, vyzera to takto:For non native czech or slovaks I will translate. WHen he do PWM enable fans will stop. He uses that patch backported to 2.6.11
to have clock selection sysfs interface.Quoted 29 lines
i2c_isa 1920 0 smsc47m1 9996 1 i2c_sensor 3072 1 smsc47m1 i2c_core 18704 3 i2c_isa,smsc47m1,i2c_sensorobraz drivera
ls -l
/sys/bus/i2c/devices/0-0800/(quoted diff) +0
-2-r--r--r-- 1 root root 4096 Jun 10 14:14 alarms -rw-r--r-- 1 root root 4096 Jun 10 14:13 detach_statelrwxrwxrwx 1 root root 0 Jun 10 14:13 driver ->
../../../../bus/i2c/drivers/smsc47m1(quoted diff) +0
-7-rw-r--r-- 1 root root 4096 Jun 10 14:14 fan1_div -rw-r--r-- 1 root root 0 Jun 10 14:20 fan1_input -rw-r--r-- 1 root root 4096 Jun 10 14:14 fan1_min -rw-r--r-- 1 root root 4096 Jun 10 14:14 fan2_div -r--r--r-- 1 root root 4096 Jun 10 14:14 fan2_input -rw-r--r-- 1 root root 4096 Jun 10 14:14 fan2_min -r--r--r-- 1 root root 4096 Jun 10 14:14 namedrwxr-xr-x 2 root root 0 Jun 10 14:13 power
(quoted diff) +0
-6-rw-r--r-- 1 root root 0 Jun 10 14:14 pwm1 -rw-r--r-- 1 root root 0 Jun 10 14:17 pwm1_clock -rw-r--r-- 1 root root 0 Jun 10 14:21 pwm1_enable -rw-r--r-- 1 root root 0 Jun 10 14:32 pwm2 -rw-r--r-- 1 root root 0 Jun 10 14:17 pwm2_clock -rw-r--r-- 1 root root 0 Jun 10 14:45 pwm2_enableQuoted 1 line
Utilita pwmconfig zlyha, zastavi oba FANy a neviem ich znova nahodit pomocou
pwmconfig will fail to get two fans back and this wont help:
Quoted 4 lines
echo 1 >
pwm1_enable
echo 1 >pwm2_enableRestartujem stroj aby sa neuprazil procesor.
He will restart the machine so the procesor wont die.
Quoted 3 lines
Neviete poradit kde by som sa blizsie dopatral k informaciam? Ci sa niekomu podarilo spravit speed regulaciu a ako merat teplotu CPU na tejto doske? Nateraz viem zapnut a vypnut FANy. Dakujem.
He asks about temperature and other stuff and how to regulate it with temps.
Please run sensors-detect command to see what chips you have. Your chip has also a HW monitor block but i think it is not yet supported. And also I think nobody is working on that. If you want to fund or donate the motherboard or write the support by yourself we can discuss it in further emails.
And now I will try to write something about the solution.
Do t the same without the patch? ( I guess so)
What will happen if you do after thay are stopped:
echo 0 >
pwm1_enable
echo 0 >pwm2_enableWill they spin again? (I think you made a mistake in description)
Please try with the power off/boot:
What will happen when you do:echo 1 >
pwm1_enable
echo 1 >pwm2_enableecho 255 > pwm1
echo 255 > pwm2echo 0 > pwm1
echo 0 > pwm2Will they spin again? If so your fans are polarity inverted so 0 is full speed.
If it does not help you can try:
To play with thepwm1_clockandpwm2_clock
This are valid possibilites:
40, 60, 80, 120, 15625, 23438, 31250, 46876
You can echo them similar way as the values above.
I would suggest to pick up some higher frequency to the beginning.
Quoted 4 lines
I hope this will help.
Regards
Rudolf
Hi,
I have compiled kernel-2.6.12-rc6 with patch linux-2.6.12-rc3-i2c-smsc47m1-m15x-m192-support.diff and installed lm_sensors-2.9.1.
I don't know how next solution is affected by patching.
Using sensors-detect gives:
No i2c device files found. Use prog/mkdev/mkdev.sh to create them. After creating appropriate /dev/i2c-x I run sensors-detect. The process didn't detect sensors expect (after starting /etc/init.d/lm_sensors start)
odule Size Used byi2c_isa 1920 0i2c_core 18064 1 i2c_isa
As you see, the list doesn't contain smsc47m1 module as I expected. So I continued loading by hands, modprobe smsc47m1
lsmod
Module Size Used by smsc47m1 8968 0 i2c_sensor 3072 1 smsc47m1 i2c_isa 1920 0 i2c_core 18064 3 smsc47m1,i2c_sensor,i2c_isa
sensors
command gives:
smsc47m1-isa-0800
Adapter: ISA adapter fan1: 0 RPM (min = 5120 RPM, div = 1) fan2: 0 RPM (min = 2560 RPM, div = 2)
Image of the driver si located at:/sys/bus/i2c/devices/0-0800/
where are files as follows:
-r--r--r-- 1 root root 4096 Jun 10 18:55 alarms lrwxrwxrwx 1 root root 0 Jun 10 18:55 bus -> ../../../../bus/i2c lrwxrwxrwx 1 root root 0 Jun 10 18:55 driver -> ../../../../bus/i2c/drivers/smsc47m1 -rw-r--r-- 1 root root 4096 Jun 10 18:55 fan1_div -r--r--r-- 1 root root 4096 Jun 10 18:55 fan1_input -rw-r--r-- 1 root root 4096 Jun 10 18:55 fan1_min -rw-r--r-- 1 root root 4096 Jun 10 18:55 fan2_div -r--r--r-- 1 root root 4096 Jun 10 18:55 fan2_input -rw-r--r-- 1 root root 4096 Jun 10 18:55 fan2_min -r--r--r-- 1 root root 4096 Jun 10 18:55 name drwxr-xr-x 2 root root 0 Jun 10 18:55 power -rw-r--r-- 1 root root 4096 Jun 10 18:57 pwm1 -rw-r--r-- 1 root root 4096 Jun 10 18:57 pwm1_enable -rw-r--r-- 1 root root 4096 Jun 10 18:57 pwm2 -rw-r--r-- 1 root root 4096 Jun 10 18:57 pwm2_enable
Stopping and working in the maximum regime can be done by echo 0 > pwm1_enable
echo 0 > pwm2_enable
echo 1 > pwm1_enable
echo 1 > pwm2_enable
The speed regulation can be controled writing a value from the range 0 - maximal speed, to 255 - stop spining, the polarity is reversed.
Sorry Rudolf, but I don't understand you how can I play with pwmX_clock? I have files as listed above only. What is the fan speed? Is it possible to measure it?
Thank you Rudolf for your advice. I lowered speed of fans and I can hear my typing fingers on keyboard, uhfff!
I read somewhere that my chip has HW block. I don't know if I will be able to write support, but I can try. If you have any advice how to start, I will be glad.
Cheers,
Martin
Hi Martin,
Quoted 51 lines
Hi,
I have compiled kernel-2.6.12-rc6 with patch linux-2.6.12-rc3-i2c-smsc47m1-m15x-m192-support.diff and installed lm_sensors-2.9.1.
I don't know how next solution is affected by patching.Using sensors-detect gives:
No i2c device files found. Useprog/mkdev/mkdev.shto create them. After creating appropriate/dev/i2c-xI run sensors-detect. The process didn't detect sensors expect (after starting/etc/init.d/lm_sensorsstart)
odule Size Used byi2c_isa1920 0i2c_core18064 1i2c_isaAs you see, the list doesn't contain smsc47m1 module as I expected. So I continued loading by hands, modprobe smsc47m1
lsmodModule Size Used by smsc47m1 8968 0 i2c_sensor 3072 1 smsc47m1 i2c_isa 1920 0 i2c_core 18064 3 smsc47m1,i2c_sensor,i2c_isasensors
command gives:
smsc47m1-isa-0800Adapter: ISA adapter fan1: 0 RPM (min = 5120 RPM, div = 1) fan2: 0 RPM (min = 2560 RPM, div = 2)Image of the driver si located at:
/sys/bus/i2c/devices/0-0800/
where are files as follows:-r--r--r-- 1 root root 4096 Jun 10 18:55 alarms lrwxrwxrwx 1 root root 0 Jun 10 18:55 bus -> ../../../../bus/i2c lrwxrwxrwx 1 root root 0 Jun 10 18:55 driver -> ../../../../bus/i2c/drivers/smsc47m1(quoted diff) +0
-7-rw-r--r-- 1 root root 4096 Jun 10 18:55 fan1_div -r--r--r-- 1 root root 4096 Jun 10 18:55 fan1_input -rw-r--r-- 1 root root 4096 Jun 10 18:55 fan1_min -rw-r--r-- 1 root root 4096 Jun 10 18:55 fan2_div -r--r--r-- 1 root root 4096 Jun 10 18:55 fan2_input -rw-r--r-- 1 root root 4096 Jun 10 18:55 fan2_min -r--r--r-- 1 root root 4096 Jun 10 18:55 namedrwxr-xr-x 2 root root 0 Jun 10 18:55 power
(quoted diff) +0
-4-rw-r--r-- 1 root root 4096 Jun 10 18:57 pwm1 -rw-r--r-- 1 root root 4096 Jun 10 18:57 pwm1_enable -rw-r--r-- 1 root root 4096 Jun 10 18:57 pwm2 -rw-r--r-- 1 root root 4096 Jun 10 18:57 pwm2_enable
Quoted 8 lines
Stopping and working in the maximum regime can be done by echo 0 >
pwm1_enable
echo 0 >pwm2_enable
echo 1 >pwm1_enable
echo 1 >pwm2_enableThe speed regulation can be controled writing a value from the range 0 - maximal speed, to 255 - stop spining, the polarity is reversed.
Ok. I will check the datasheet if there is some polarity bit.
Quoted 3 lines
Sorry Rudolf, but I don't understand you how can I play with
pwmX_clock? I have files as listed above only. What is the fan speed? Is it possible to measure it?
The pwmX_clock is base clock of PWM changing it affects the curve (fanspeed versus PWM value)
I suggesed that because I was trying you to help you with your problem. You dont need to play with it unless the fans are doing the high pitch noise. (you can change the frq to get rid of it)
Fan speed is measured but not in correct range. You need to change the fan divisor. (It is described in FAQ) But all you need is to write echo 4 > fan1_div and fan2_div too. If the fans are slow try 8 instead.
You can edit /etc/sensors.conf for that (just add correct set fanX_div statements to correct sections)
Quoted 5 lines
Thank you Rudolf for your advice. I lowered speed of fans and I can hear my typing fingers on keyboard, uhfff!
I read somewhere that my chip has HW block. I don't know if I will be able to write support, but I can try. If you have any advice how to start, I will be glad.
Ah it seems that someone is working on that results after summer. So be patient please.
Regards
Rudolf