All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [RFC PATCH 0/1] Add the sensors-config tool
Date: Thu, 14 Jan 2010 10:35:33 +0000	[thread overview]
Message-ID: <4B4EF375.6010107@redhat.com> (raw)
In-Reply-To: <20100113205443.GA1856@andre-laptop>

Hi Andre,

Thanks for working on this!

On 01/13/2010 09:56 PM, Andre Prendel wrote:
> Hello Jean, Hans,
>
> a long time ago we've spoken about "DMI-based
> configuration". Unfortunately the last half year I only had a very
> reduced amount of time. But today I send my first proposal (patch) for
> this issue :)
>
> A few words...
>
> The tool is written in Python. I hope you can live with
> this although this is another language in the lm-sensors project. I like
> the object oriented modules of Python and IMHO Python should be
> installed on every machine in a default installation.
>

Hmm, I don't mind the archive download and building tool being written
in python. But eventually there should also be a bash script which
can be run from the systems initscript which will automatically
find a config based on dmi and if found copy it to /etc/sensors-mb.conf
(which can then be included from the regular sensors.conf). I don't
think this part should be in python as on most systems none of the
other initscripts use python.

> What can you do with this tool?
>
> 1. Download config files from lm-sensors.org and build an archive

Hmm, I see it currently has a hardcoded list of config files, it would
be good if it could discover the config files dynamically based on
what is available on lm-sensors.org

> 2. Install this archive into the file system (the path is hard-coded
> so far)

I think the path should be under /var/lib, as the contents can
change by running the same version of the tool again (if the
wiki is updated).

> 3. List the vendors off the available configs
> 4. List the board configs of a vendor
> 5. Install a config by vendor and board name
> 6. Show your systems' DMI data
> 7. Search a config based on the DMI data and install them

I see currently this assumes that the name as on the wiki (in
the url on the wiki), is the same as in the dmi info, this is
not necessarily true. There was a project similar to yours a
while ago, which added magic comments to the config files
to state for which dmi strings the config was valid. note
that one config could be valid for multiple boards.

> 8. Remove the configs from the file system
>
> NOTE: This is an early version. There are plenty of ToDos and probably
> some bugs. This is a request for comments what do you thing about the
> tool.
>

Disclaimer: I have not tested it.

What I think, well I like that someone is working on this, and I like
that you are using the wiki as "database", as with previous attempts
part of the problem was that both a tool and a website needed to
be developed simultaneously.

As for comments, see above.

Thanks & Regards,

Hans

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  reply	other threads:[~2010-01-14 10:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13 20:56 [lm-sensors] [RFC PATCH 0/1] Add the sensors-config tool Andre Prendel
2010-01-14 10:35 ` Hans de Goede [this message]
2010-01-15 20:14 ` Andre Prendel
2010-01-17 16:30 ` Hans de Goede
2010-01-17 19:14 ` Andre Prendel

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=4B4EF375.6010107@redhat.com \
    --to=hdegoede@redhat.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.