* sensors-detect enhancement needed for sysfs
@ 2005-05-19 6:24 Mark Studebaker
2005-05-19 6:24 ` Mark M. Hoffman
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Mark Studebaker @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
I've enhanced i2cdetect, i2cdump, and i2cset using the new common
function in
i2cbusses.c to list all the i2c busses, whether in 2.4 or 2.6 kernels.
In 2.6 it's essentially 'cat /sys/class/i2c-adapter/*/device/name' but
see i2cbusses for details like finding the sysfs mount point.
We need a perl volunteer to make a similar enhancement at two places
in sensors-detect where it scans /proc/bus/i2c.
Note that the adapter name, but not the algorithm, is available in
sysfs.
I've hacked around that in libsensors and in the programs above.
Guess it's not really necessary.
Anybody like to tackle sensors-detect?
^ permalink raw reply [flat|nested] 5+ messages in thread
* sensors-detect enhancement needed for sysfs
2005-05-19 6:24 sensors-detect enhancement needed for sysfs Mark Studebaker
@ 2005-05-19 6:24 ` Mark M. Hoffman
2005-05-19 6:24 ` Mark Studebaker
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Mark M. Hoffman @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
* Mark D. Studebaker <mds@paradyne.com> [2003-11-16 22:00:51 -0500]:
> I've enhanced i2cdetect, i2cdump, and i2cset using the new common
> function in
> i2cbusses.c to list all the i2c busses, whether in 2.4 or 2.6 kernels.
> In 2.6 it's essentially 'cat /sys/class/i2c-adapter/*/device/name' but
> see i2cbusses for details like finding the sysfs mount point.
Hmm, did you forgot to 'cvs add prog/dump/isaset.c'? I'm getting
a build error...
make: *** No rule to make target `prog/dump/isaset.rd'. Stop.
Regards,
--
Mark M. Hoffman
mhoffman@lightlink.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* sensors-detect enhancement needed for sysfs
2005-05-19 6:24 sensors-detect enhancement needed for sysfs Mark Studebaker
2005-05-19 6:24 ` Mark M. Hoffman
@ 2005-05-19 6:24 ` Mark Studebaker
2005-05-19 6:24 ` Mark Studebaker
2005-05-19 6:24 ` Jean Delvare
3 siblings, 0 replies; 5+ messages in thread
From: Mark Studebaker @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
oops, I've been working on an isaset and forgot it was in Module.mk.
isaset isn't ready yet so feel free to remove it from Module.mk
or I'll do it tonight.
thanks
mds
Mark M. Hoffman wrote:
> * Mark D. Studebaker <mds@paradyne.com> [2003-11-16 22:00:51 -0500]:
>
>
>>I've enhanced i2cdetect, i2cdump, and i2cset using the new common
>>function in
>>i2cbusses.c to list all the i2c busses, whether in 2.4 or 2.6 kernels.
>>In 2.6 it's essentially 'cat /sys/class/i2c-adapter/*/device/name' but
>>see i2cbusses for details like finding the sysfs mount point.
>
>
> Hmm, did you forgot to 'cvs add prog/dump/isaset.c'? I'm getting
> a build error...
>
> make: *** No rule to make target `prog/dump/isaset.rd'. Stop.
>
> Regards,
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* sensors-detect enhancement needed for sysfs
2005-05-19 6:24 sensors-detect enhancement needed for sysfs Mark Studebaker
` (2 preceding siblings ...)
2005-05-19 6:24 ` Mark Studebaker
@ 2005-05-19 6:24 ` Jean Delvare
3 siblings, 0 replies; 5+ messages in thread
From: Jean Delvare @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
> I've enhanced i2cdetect, i2cdump, and i2cset using the new common
> function in i2cbusses.c to list all the i2c busses, whether in 2.4 or
> 2.6 kernels. In 2.6 it's essentially 'cat
> /sys/class/i2c-adapter/*/device/name' but see i2cbusses for details
> like finding the sysfs mount point.
>
> We need a perl volunteer to make a similar enhancement at two places
> in sensors-detect where it scans /proc/bus/i2c.
>
> Note that the adapter name, but not the algorithm, is available in
> sysfs. I've hacked around that in libsensors and in the programs
> above. Guess it's not really necessary.
>
> Anybody like to tackle sensors-detect?
I'm on it, providing you tell me what exactly I'm supposed to do there.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 5+ messages in thread
* sensors-detect enhancement needed for sysfs
2005-05-19 6:24 sensors-detect enhancement needed for sysfs Mark Studebaker
2005-05-19 6:24 ` Mark M. Hoffman
2005-05-19 6:24 ` Mark Studebaker
@ 2005-05-19 6:24 ` Mark Studebaker
2005-05-19 6:24 ` Jean Delvare
3 siblings, 0 replies; 5+ messages in thread
From: Mark Studebaker @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
cat /proc/bus/i2c on a 2.4 machine. look what it gives you:
bus number, adapter name, algo name.
The perl code pulls each of those out.
Now do cat /sys/class/i2c-adapter/*/device/name on a 2.6 machine.
It gives you adapter name (bus number is in the *). Algo name isn't available.
Your assignment: scan /sys/class/i2c-adapter for installed busses,
get the name for each, put in a dummy algo name.
Jean Delvare wrote:
>>I've enhanced i2cdetect, i2cdump, and i2cset using the new common
>>function in i2cbusses.c to list all the i2c busses, whether in 2.4 or
>>2.6 kernels. In 2.6 it's essentially 'cat
>>/sys/class/i2c-adapter/*/device/name' but see i2cbusses for details
>>like finding the sysfs mount point.
>>
>>We need a perl volunteer to make a similar enhancement at two places
>>in sensors-detect where it scans /proc/bus/i2c.
>>
>>Note that the adapter name, but not the algorithm, is available in
>>sysfs. I've hacked around that in libsensors and in the programs
>>above. Guess it's not really necessary.
>>
>>Anybody like to tackle sensors-detect?
>
>
> I'm on it, providing you tell me what exactly I'm supposed to do there.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-05-19 6:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19 6:24 sensors-detect enhancement needed for sysfs Mark Studebaker
2005-05-19 6:24 ` Mark M. Hoffman
2005-05-19 6:24 ` Mark Studebaker
2005-05-19 6:24 ` Mark Studebaker
2005-05-19 6:24 ` Jean Delvare
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.