Re: Getting lm-sensors to detect fan speed, etc
On Tuesday 05 Mar 2002 2:54 am, csj wrote:
> #----cut here----
> # I2C adapter drivers
> # modprobe unknown adapter bt848 #0 using Bit-shift algorithm
> # modprobe unknown adapter bt848 #0 using Bit-shift algorithm
> i2c-viapro
> # I2C chip drivers
> eeprom
> lm80
> lm75
> #----cut here----
This looks OK, I think the stuff responsible for your hardware monitoring are
the i2c-viapro adapter,the lm80 chip and the lm75 chip. Did you have any
problems building the modules ?
It's been a while since I built this stuff as modules, I prefer to use the
mkpatch scripts that come with i2c-sources and lm-sensors-sources, patch my
kernel sources and then compile in support for the bits I need, so don't take
the following as gospel. IIRC what I did when building as modules was
something like this
1) I apt-get'ed lm-sensors-source, i2c-source, lm-sensors,
kernel-source-2.4.XX. I unpacked everything into these dirs:
/usr/src/kernel-source-2.4.XX
/usr/src/modules/i2c
/usr/src/modules/lm-sensors
I symlinked /usr/src/linux to /usr/src/kernel-source-2.4.XX
2) Built and installed my kernel the debian way (kernel-package)
#cd /usr/src/linux
#make menuconfig
I did *not* select any of the i2c stuff in the kernel
#make-kpkg --revision=hostname.01 kernel_image
#make-kpkg modules_image
#cd /usr/src
#dpkg -i kernel-image-2.4.XX_hostname.01_i386.deb
#dpkg -i i2c-2.4.XX_2.62-1+hostname.01_i386.deb
#dpkg -i lm-sensors-2.4.XX_2.62-1+hostname.01_i386.deb
cd /usr/src/linux
#make-kpkg clean modules_clean
3)Re-booted and ran sensors-detect.
In your case I would have added this to /etc/modules
# I2C adapter drivers
i2c-viapro
# I2C chip drivers
lm80
lm75
4)Re-boot. Run sensors - you should get reasonable ouput. All that should
remain is some minor tinkering with /etc/sensors.conf.
How does this compare to what you did ?
--
Simon Hepburn.
Reply to: