asb_100 sensor location in /sys heirarchy changes on

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

 



Jean Delvare wrote at about 20:35:55 +0200 on Thursday, April 19, 2007:
 > Hi Jeff,
 > 
 > OK. I've reverted some reformatting though, it's important that changes
 > are easily visible, and changing the coding style every now and then
 > really doesn't help history.

I see your point.
 
 > > Ideally, it would be great if the scripts would look at
 > > /sys/class/hwmon/hwmonN/device/*input to see what the available inputs
 > > are and then use that to determine what to store in and later retrieve
 > > from the round robin database.
 > 
 > Ideally, these scripts should not read the values directly from sysfs
 > in the first place, but should go through libsensors (using a binary
 > helper, ideally "sensors"), so that all the user configuration
 > in /etc/sensors.conf is honored. And libsensors would indeed scan sysfs
 > for usable sensor inputs automatically. But this goes far beyond just
 > fixing a few scripts - what we're talking about here is a complete
 > redesign and rewrite.

OK - we will save that for another round then.
 > 
 > > NOTE: you may also need/want to update the copyright portion but I am
 > > not sure what the right way to do it is...
 > 
 > Well that's really up to you, you're the one working on updating this
 > script.

I meant just that I don't know what the 'legal' or 'ethical' way
is. Do I just add the new years? Do I leave it alone? Do I add my name
(or others) if I end up making real changes? I just want to do the
right thing.

 > 
 > > -RRDPATH=/usr/local/rrdtool/bin
 > > +RRDPATH=/usr/bin
 > 
 > While I agree that the original value didn't make much sense, shouldn't
 > we simply rely on the $PATH to find the rrdtool binary instead of
 > hard-coding a directory? Also, this change should be reflected in the
 > Makefile and README files, and in the sens_create_rrd script, otherwise
 > it is inconsistent.

I agree. The hardcoding of paths rather than either using $PATH or
setting the variables in the Makefile is a huge PITA. It means that I
end up needing to add 'patch' files to patch the source when I build
my own rpms vs. just changing the inputs to 'make' or using some other
automated way of finding the binaries.


 > /sys/class/hwmon is indeed not mentioned anywhere in the manual pages.
 > But /sys/bus/i2c/devices is not mentioned either, so how did you get
 > there? It looks to me like the primary cause of your problem is that
 > the code itself was outdated. Now that you fixed that, it should be
 > fine.
 > 
 > These sysfs interfaces should normally always be accessed through
 > libsensors and not directly, so I don't think we really want to
 > document them in manual pages, other than, maybe, the FILES section of
 > libsensors.3 (which doesn't exist yet.)

OK. I don't know a lot about libsensors.
Is there any interface that would give you command line access to
libsensors. I know that you could always try to parse the output of
'sensors' but it might be nice to have more granular command line
access that would provide much of the same functionality as the
libsensors C-routines. If so, then scripts like sens_update.rrd could
just call those functions and you never would have to worry about the
/sys or /proc filesystem mechanics.

 > > Finally, I wonder whether long term, it pays to revisit some of the
 > > programs in the prog branch to see if they are still needed and
 > > relevant. Some seem to be hidden and underutilized jewels while others
 > > may be redundant or even obsolete (like grab_busses.sh). For example,
 > > it seems to me that the sens_update.rrd approach has a lot of overlap
 > > with the rrd functionality embedded in sensord (which can even be used
 > > to generate cgi files). I continue to use the cgi scripts in the rrd
 > > directory since I like them better but it might be a good idea to
 > > think of unifying them in the future. Again, I am just a newbie here
 > > so I may be missing something...
 > 
 > You are right, some of the programs are unmaintained and outdated. And
 > possibly some are redundant. We might improve the situation by dropping
 > or merging some of the tools, although in this case, both sensord and
 > sens_update_rrd are unmaintained anyway. But I tend to believe that
 > programs which are heavily used (such as sensors or fancontrol) get
 > updated rather quickly. Programs which aren't updated, are probably not
 > very much used. This is how the open-source model works: evolution.
 > 
 > The key issue here is that maintaining programs takes time, and this is
 > a scarce resource. Nobody seems to be interested in doing this. If you
 > want to help with that, you're welcome.

I will do my best to contribute wherever I can :)




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

  Powered by Linux