From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] LM Sensors autoconfig tool project awarded as
Date: Tue, 30 May 2006 12:32:33 +0000 [thread overview]
Message-ID: <20060530143233.b7f4d0b6.khali@linux-fr.org> (raw)
In-Reply-To: <44744596.40406@hhs.nl>
Hi Hans, Mark,
> * Hans de Goede <j.w.r.degoede at hhs.nl> [2006-05-30 12:36:22 +0200]:
> > Yes I just encountered the first of such a system, any idea for
> > alternative methods to identify these? I'm myself thinking about
> > memmapping the bios and getting info from the bios image, anyone got any
> > experience with this?
I don't know of any alternative method. Best to fix the problem at its
root, and make the manufacturer fill in the DMI table properly in the
first place. A slow process, I know.
Mark Hoffman wrote:
> It might be useful to enhance libsensors so that it can process
> '#include' lines in the configuration file. Since I have been
> working on the analyzer & parser lately... if it turns out that
> such functionality would be useful to you, I would offer to add it.
This would come in handy if we extend the database to contain not only
motherboards but also graphic adapters, for example.
> > Here is what my pcchips M811 gives:
> > Handle 0x0002, DMI type 2, 8 bytes.
> > Base Board Information
> > Manufacturer:
> > Product Name: VT8367-8235
> > Version:
> > Serial Number:
> >
> > Clearly the didn't change this from the VIA reference bios.
Yup, same for my Fintek board:
Handle 0x0002
DMI type 2, 8 bytes.
Base Board Information
Manufacturer:
Product Name: K8M800-8237
Version:
Serial Number:
I know there are BIOS updates available so I'll try this first. If the
latest BIOS doesn't fix it I'll contact Fintek.
> > > I don't think that being able to export the database is a key feature.
> > > End users shouldn't need this.
> >
> > They will, one cannot assume a internet connection and even if one
> > assumes an internet connection, phoning home applications are evil!
One could argue that a 4 MB database on my hard disk drive, when I need
a single 3 kB file out of it, is evil. I have no problem with
applications phoning home as long as they ask me before. For systems
with no internet connection, people can download the file from the web
and copy it manually.
That being said, I am fine with both implementations, as long as it
works and the maintenance workload is limited.
> > > Likewise, I don't like the hotplug/udev stuff you mention in point 2.
> > > Configuration is only done once, so I don't quite see how hotplug is
> > > relevant here.
> >
> > The idea behind this is to make things truely plug and play, so if I
> > drop a new motherboard in my system the OS should reconfigure itself
> > automaticly and everything should work as if nothing has changed. I've
> > done this a couple of times and this currently works pretty well with
> > Linux as OS, except for lm_sensors.
>
> I agree with you (Hans) here and about the database. Actually, I *really*
> like the idea of having a little DMI/hotplug driver, because that means
> we *won't* have to add all of that directly to hwmon drivers.
Why would we have to add anything to the drivers?
I don't argue with the idea of a plug'n'play system. I argue strongly
against the proposed implementation. It really doesn't have anything
to do with hotplug (until your motherboard becomes hotpluggable...) and
the detection mechanism doesn't belong to the kernel. Userspace can
identify the motherboard and load the required modules, then configure
the chip(s) as needed. This only has to be done only once, at boot
time, and can easily be made part of the init scripts.
Unless I'm missing something. What do we win with an hotplug event?
> > > It's more simple, and more efficient too, to integrate
> > > the motherboard recognition code into sensors-detect. If enough DMI
> > > data is available, propose to connect to the online database to find a
> > > configuration file. If a configuration file is found, copy it, and skip
> > > all the probing phase. This is how I'd do it, anyway.
> >
> > See above, besides I want lm_sensors to just work (tm), having to run
> > sensors-detect is not just working. I do agree that the detected
> > motherboard should be stored somewhere and that the existing config
> > should not be overwritten if the motherboard wasn't changed.
We agree on that second point. I don't agree with the statement that
"sensors-detect is not just working" though. sensors-detect does its
job well. If it fails on some systems, please report and we'll try to
fix that. Some things cannot be detected though (e.g. unused super-I/O
chips.) The real problem is that sensors-detect does only detect chips
and knows about which drivers they need. It was never meant to handle
the chips configuration, because this just can't be detected. The
project you propose would complement, not replace, sensors-detect.
--
Jean Delvare
next prev parent reply other threads:[~2006-05-30 12:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-24 11:37 [lm-sensors] LM Sensors autoconfig tool project awarded as google Hans de Goede
2006-05-29 10:09 ` [lm-sensors] LM Sensors autoconfig tool project awarded as Jean Delvare
2006-05-30 10:36 ` Hans de Goede
2006-05-30 11:25 ` Mark M. Hoffman
2006-05-30 12:32 ` Jean Delvare [this message]
2006-05-30 19:46 ` Rudolf Marek
2006-05-30 22:19 ` Roger Lucas
2006-05-31 3:21 ` Mark M. Hoffman
2006-05-31 12:26 ` Jean Delvare
2006-05-31 14:58 ` [lm-sensors] LM Sensors autoconfig tool project awarded Roger Lucas
2006-06-01 12:11 ` Mark M. Hoffman
2006-06-01 12:54 ` Roger Lucas
2006-06-01 13:05 ` [lm-sensors] LM Sensors autoconfig tool project awarded as Hans de Goede
2006-06-01 20:43 ` Jean Delvare
2006-06-02 20:18 ` Jean Delvare
2006-06-03 7:12 ` Hans de Goede
2006-06-03 9:27 ` Roger Lucas
2006-06-03 9:50 ` Jean Delvare
2006-06-03 14:24 ` Henrik Brix Andersen
2006-06-03 21:33 ` [lm-sensors] LM Sensors autoconfig tool project awarded Hans de Goede
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=20060530143233.b7f4d0b6.khali@linux-fr.org \
--to=khali@linux-fr.org \
--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.