Cedric Pradalier wrote:
There have been a report on debian-powerpc saying that
the i2c bus on which the adm1030 is plugged is not considered as a
sensor bus by default.
http://lists.debian.org/debian-powerpc/ ... html#00356Quote:
Luca Bigliardi - shammash (translated) wrote:
at first I started to look for docs about how configuring that bus with lmsensors
because I didn't manage to make it work and I though I wasn't able to
configure it (I had never used lmsensors before)
I understood it was a problem in ben's code ed
indeed, talking with the lm-sensors developers,
it became clear that the bus wasn't properly initialized.
then the patch.
Code:
--- linux-2.6.8.1/drivers/i2c/busses/i2c-keywest.c.orig 2004-07-24 22:39:04.000000000 +0200
+++ linux-2.6.8.1/drivers/i2c/busses/i2c-keywest.c 2004-08-17 21:03:23.000000000 +0200
@@ -618,6 +618,8 @@
chan->iface = iface;
chan->chan_no = i;
chan->adapter.id = I2C_ALGO_SMBUS;
+ if (i==1)
+ chan->adapter.class = I2C_CLASS_HWMON;
chan->adapter.algo = &keywest_algorithm;
chan->adapter.algo_data = NULL;
chan->adapter.client_register = NULL;
Luca Bigliardi - shammash (translated) wrote:
yes, now everything works, in the end the only thing to do is to patch
and then to tweak a bit the sensors.conf file: I put 10 degrees less
in the system fan because it seemed impossible to me that the
temperature was higher than the processor : )
Best regards.