From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Sensors-detect with DMI detection
Date: Tue, 27 Feb 2007 11:43:32 +0000 [thread overview]
Message-ID: <20070227124332.0c169fd1.khali@linux-fr.org> (raw)
In-Reply-To: <00c901c7568f$60a3ad40$0801a8c0@pinkeltje>
Hi Ivo,
On Tue, 27 Feb 2007 11:59:03 +0100, Ivo Manca wrote:
> Hey Jean,
>
> First of all, sorry for my late response.
Late response? You replied within 2 hours, it took me four days ;)
> > My comments:
> >
> > * The primary objective mentions an "internal database". I'm not sure
> > what "internal" is supposed to mean here. Do you plan to embed a big
> > array of known motherboards inside the sensors-detect script itself?
>
> In this case, internal means that the database is stored on the user's
> computer. The reason we mentioned this is because we first considered an
In this case the correct term would be "local", not "internal".
> option which makes the script connect to the corresponding website. This
> however does not seem to be a very welcome "feature".
I think it is. There's nothing wrong with fetching data file updates
from the net. New motherboard models are released so frequently that
it's very likely that the user won't find his model in the local
database (provided by his distribution, so including a 6 to 9-month old
version of lm_sensors.) A remote repository makes sense IMHO.
But of course having a local cache can be good too. Not everyone has a
permanent access to Internet, and our server might be temporarily
unresponsive or be moved to a different location.
So both options are really open. It's up to you. Either option will be
better than what we currently have anyway :)
>
> The actual place were the database will be stored is not yet decided.
>
> > * I'm very much in favor of command line parameters being added to
> > sensors-detect so that for example a non-interactive mode can be
> > supported. I wanted to do that myself for some time but could never
> > find the time to actually do it. Another useful mode would be a "quiet"
> > mode, which would hide all the details and present the probing summary.
> > It would still be interactive in that it should not overwrite the
> > configuration file without the user's consent, so it would be somewhat
> > intermediate between the current mode and a fully automated mode.
>
> It seems that this did not end up in the final version of the project plan
> but this was also our view.
> The command line switches we were thinking of adding, include:
> * An automatic (or: non-interactive) mode, which will only use the DMI
> information to detect the sensors.
> * A mode which first uses the DMI information and then asks whether or not
> the user wants to probe afterwards.
> * A probing-only mode. For various reasons it might be welcome to keep this
> mode, for example: if for some reason the DMI information is bogus.
I'm not sure it makes sense to have command line switches for the
interactive mode itself. You can simply propose the user to check the
DMI table (default Y), then propose to probe the hardware (default N if
the system was found in the database.)
The command line options would be most valuable for the non-interactive
mode: one option to only use the DMI database, one option to only use
probing, one option to try DMI first then fallback to probing.
> This automatic mode could also be very useful for newly installed
> configurations. In this case the user will already have a configured
> sensors.conf and is able to use the software "out-of-the-box". However, this
> is just a thought.
Agreed.
> We've already figured out that the default option of sensors-detect should
> not overwrite an existing configuration file without asking first. It might
> give some frustration to the users..
True. That being said, in non-interactive mode, it might make sense to
backup the old config file and write the new one (by default or with an
option.)
> > BTW, I think you really mean "first objective" and "second objective",
> > not primary and secondary.
>
> We meant: "Most important" and "Less important". I thought primary and
> secondary was a correct translation for this. They both still need to (and
> will) be completed though.
If you meant "most important" and "less important" then "primary" and
"secondary" are correct. But my understanding is that the first
objective is a required prerequisite to implement the second one, too.
--
Jean Delvare
next prev parent reply other threads:[~2007-02-27 11:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-22 14:40 [lm-sensors] Sensors-detect with DMI detection Ivo Manca
2007-02-22 17:19 ` Jean Delvare
2007-02-23 7:08 ` Hans de Goede
2007-02-27 8:50 ` Jean Delvare
2007-02-27 10:59 ` Ivo Manca
2007-02-27 11:43 ` Jean Delvare [this message]
2007-02-27 12:24 ` Ivo Manca
2007-02-27 20:41 ` Rudolf Marek
2007-02-28 13:35 ` Hans de Goede
2007-02-28 13:44 ` Jasper Alias
2007-03-01 7:46 ` Jean Delvare
2007-03-01 8:13 ` Hans de Goede
2007-03-01 8:54 ` Jean Delvare
2007-03-16 13:06 ` Ivo Manca
2007-03-18 20:29 ` Jean Delvare
2007-03-20 12:39 ` Ivo Manca
2007-03-22 10:09 ` Ivo Manca
2007-03-23 8:59 ` Jean Delvare
2007-03-23 9:06 ` Hans de Goede
2007-03-23 15:43 ` 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=20070227124332.0c169fd1.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.