From: Hans de G. <hde...@re...> - 2011-07-27 08:51:28
|
Hi, On 07/27/2011 09:55 AM, Michael Reinelt wrote: > Hi Hans, > > in your email you wrote: >> Note that I'm an active contributor to lm_sensors upstream too, >> and a such I must say that it would be better if there would be >> a plugin using libsensors rather then accessing sysfs directly. >> The advantages are that libsensors takes care of the details >> of sysfs parsing, and more importantly that it offers one >> central configuration file for things like scaling and offsets >> of sensors, as often some conversion is needed to go from raw >> sysfs value to a "real" value. > > Using libsensors sounds like a good idea. > > The i2c_sensors plugin is quite old (it was contributed by Xavier Vello back in 2004). maybe at that time libsensors was not available, or in a bad quality, or... > > Another question comes to my mind: I always try to keep "embedded systems" in mind. Do you see a problem with libsensors there? No libsensors is quite small, written in plain C and has no external dependencies. > OTOH, is there a possible performance penalty when using libsensors? See above, quite small written in C. > anyway, because of me lacking experience with libsensors, and because of -ENOTIME, any volunteers for a new plugin? (I'd prefer having a seperate plugin for that, keeping the old one at least for some time) I think doing a libsensors plugin is a good idea and a fun little project, but I'm afraid -ENOTIME applies to me too. But if others are interested I'll gladly help with answering any questions people may have about libsensors. Regards, Hans |