From: gmitra@upjs.sk (Martin Gmitra)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] smsc47m1 FAN problem on MS-6796 chipset Intel 865G
Date: Fri, 10 Jun 2005 19:29:41 +0000 [thread overview]
Message-ID: <20050610172841.GA23885@upjs.sk> (raw)
> 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.
>
> > 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.
>
> > i2c_isa 1920 0
> > smsc47m1 9996 1
> > i2c_sensor 3072 1 smsc47m1
> > i2c_core 18704 3 i2c_isa,smsc47m1,i2c_sensor
> >
> > obraz drivera
> >
> > ls -l /sys/bus/i2c/devices/0-0800/
> >
> > -r--r--r-- 1 root root 4096 Jun 10 14:14 alarms
> > -rw-r--r-- 1 root root 4096 Jun 10 14:13 detach_state
> > lrwxrwxrwx 1 root root 0 Jun 10 14:13 driver ->
> > ../../../../bus/i2c/drivers/smsc47m1
> > -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 name
> > drwxr-xr-x 2 root root 0 Jun 10 14:13 power
> > -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_enable
> >
> >
> > Utilita pwmconfig zlyha, zastavi oba FANy a neviem ich znova nahodit pomocou
> pwmconfig will fail to get two fans back and this wont help:
>
> > echo 1 > pwm1_enable
> > echo 1 > pwm2_enable
>
> > Restartujem stroj aby sa neuprazil procesor.
>
> He will restart the machine so the procesor wont die.
>
> > 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_enable
>
> Will 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_enable
>
> echo 255 > pwm1
> echo 255 > pwm2
>
> echo 0 > pwm1
> echo 0 > pwm2
>
> Will 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 the pwm1_clock and pwm2_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.
>
> 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 by
i2c_isa 1920 0
i2c_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
next reply other threads:[~2005-06-10 19:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-10 19:29 Martin Gmitra [this message]
2005-06-10 20:08 ` [lm-sensors] smsc47m1 FAN problem on MS-6796 chipset Intel 865G Rudolf Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050610172841.GA23885@upjs.sk \
--to=gmitra@upjs.sk \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.