From: ejl@eberian.com (Ed Lucas)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Motherboard-specific configurations (sensors4mobo)
Date: Mon, 26 Mar 2007 22:33:40 +0000 [thread overview]
Message-ID: <46084A44.4070101@eberian.com> (raw)
Dear Lm-sensors team,
Back in 2005 the company I was working for needed consistent access
to sensor data from a range of motherboards (we were building
Managed-NAS systems), so we created motherboard-specific sensors.conf
files and a tool to install and query them. I have now been given
permission to update and release this software under the GPL.
I have placed it all online at:
http://sensors4mobo.eberian.com
Online Query Tool:
http://sensors4mobo.eberian.com/lookup/
Sample sensors.conf file:
http://sensors4mobo.eberian.com/lookup/mobolibrary/EPIA.conf
We aimed to tackle the following:
* We were very happy with lm-sensors itself, but we found the output of
"/usr/bin/sensors" hard to parse reliably because of the variable labels
and fixed-width formatting. Instead, we now take the raw
"/usr/bin/sensors -u" output and massage it into a consistent CSV format
with extra data from an overlay file.
* We needed an automated install for our systems. Understandably,
sensors-detect won't do this because it could kill the motherboard. We
felt it would be cleaner to work top-down using the output from
dmidecode to identify the motherboard and use a script to automatically
pick the matching sensors.conf file. We achieved this by adding keywords
and parameters in the comments within the sensors.conf files which this
script detects and uses to match against the dmidecode output. The
keywords allow the correct matching to the appropriate sensors.conf file
and can also include modprobe information to be added to /etc/modules.
An example of this is shown in the EPIA.conf file referenced above.
* We wanted to standardise the terms used, so that it would be easier to
grep/understand what each sensor was being used to report. Initially, we
used a custom (and somewhat arcane) labelling convention that embedded
the type of sensor (fan,temperature,voltage) and the role in the label.
This has been replaced with a script that massages the output of
"sensors -u" and allows us to add extra overlay information. Through the
overlay we can add a (fixed) set of tags to describe the function of the
sensor - these can then be set on a case-by-case basis as well as a
human-readable comment field.
Overall, the idea of sensors4mobo is to act as an overlay to
sensors/dmidecode to add motherboard/installation-specific information
that is outside the current scope of the lm-sensors project. It also
allows a motherboard to be matched against an exact sensors.conf file
and removes the potential for error when a sensor chip may be used in
different ways on different motherboards (e.g. it may have a different
external resistor divider network).
Is this of interest to anyone on the list? and do you have any
questions/suggestions?
If you have any motherboard-specific sensors.conf files that you would
like to add, please just send them to me along with either the output of
"sensors4mobo_lookup --dump" or dmidecode and I will get on it.
Since developing this, I have become aware of the sconfig tool created
during Google SoC 2006. It is interesting and I hope that we can find
some common ground around the sensors.conf files themselves, but I think
the two projects are sufficiently different in style and goal to merit
their existence.
Thanks and best wishes,
Ed Lucas
next reply other threads:[~2007-03-26 22:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-26 22:33 Ed Lucas [this message]
2007-03-27 15:39 ` [lm-sensors] Motherboard-specific configurations (sensors4mobo) Jean Delvare
2007-03-27 16:07 ` Ivo Manca
2007-03-28 9:30 ` Ed Lucas
2007-03-28 10:56 ` Ivo Manca
2007-03-28 11:20 ` Hans de Goede
2007-03-28 11:49 ` Ed Lucas
2007-03-28 12:07 ` Ivo Manca
2007-03-28 17:09 ` David Hubbard
2007-03-29 8:03 ` Pinkel
2007-03-29 10:00 ` Ed Lucas
2007-03-29 13:20 ` Ivo Manca
2007-03-29 14:18 ` Ed Lucas
2007-03-29 14:56 ` Hans de Goede
2007-03-31 12:22 ` Jean Delvare
2007-03-31 12:36 ` Jean Delvare
2007-03-31 12:42 ` Jean Delvare
2007-03-31 12:45 ` Jean Delvare
2007-03-31 12:50 ` Jean Delvare
2007-04-04 9:34 ` Ivo Manca
2007-04-08 11:13 ` Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46084A44.4070101@eberian.com \
--to=ejl@eberian.com \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.