Re: No sensors found on i2c-usb-tiny

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jan,

On Tue, 6 Nov 2012 16:54:53 -0800, Guenter Roeck wrote:
> On Tue, Nov 06, 2012 at 11:31:44PM +0100, Jan Weber wrote:
> > On 11/5/12, Jean Delvare <khali@xxxxxxxxxxxx> wrote:
> > > # echo tmp75 0x48 > /sys/class/i2c-adapter/i2c-0/new_device
> > 
> > now it works, at least partially. I used the 'tee' command as
> > suggested by Andrey. That did the trick.
> > 
> > I tested it with a different system running a 3.x kernel. But it
> > doesn't work on the 2.6.24 kernel, because the new_device and
> > delete_device files are not present. Just for curiosity's sake - if I
> > may occupy some more of your precious time - what might be the cause
> > for those attribute files not being present? What part of the i2c
> > subsystem creates them?
> 
> It was introduced with a kernel version later than 2.6.24.

2.6.31 to be precise:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=99cd8e25875a109455b709b5a41d4891b8d8e58e

With kernel 2.6.24 you could use a different approach:

# modprobe lm75 force=0,0x48

Note that this will create an "lm75" i2c client rather than "tmp75", as
"tmp75" wasn't supported back then, but AFAIK the chips are fully
compatible so that should be OK. If this is a problem for you, I can
write a custom stand-alone lm75 driver for your system in exchange of
any item in my wish list below.

-- 
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux