From: Clemens Ladisch <clemens@ladisch.de>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] /sys/class/hwmon/ numbering
Date: Thu, 26 Nov 2009 13:24:45 +0000 [thread overview]
Message-ID: <4B0E819D.2080109@ladisch.de> (raw)
In-Reply-To: <18910e4d0911260014m5fe3445cmf423b25e6a68bf50@mail.gmail.com>
Charles Prévot wrote:
> I have some problems configuring the fancontrol script, because each time I
> shutdown my computer, when I reboot my /sys/class/hwmon/ is different
> (subfolders hwmon? are numbered differently).
> What is responsible for this order ?
The order in which the respective drivers are initialized. Since the
initialization functions run in parallel, this is essentially random,
as you're seeing.
> How can I configure it to have i fixed order ?
The entries in /sys/class/hwmon/ are actually symbolic links (see the
output of "ls -l /sys/class/hwmon"), so you could refer to the devices
by their real path.
If some program requires paths in /sys/class/hwmon, you could blacklist
all the hwmon modules to prevent them from loading, then load them later
in some predetermined order. (How this is done depends on the
distribution, usually with files in /etc/modprobe.conf.)
HTH
Clemens
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2009-11-26 13:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-26 8:14 [lm-sensors] /sys/class/hwmon/ numbering Charles Prévot
2009-11-26 13:24 ` Clemens Ladisch [this message]
2009-11-27 8:01 ` Jean Delvare
2009-11-27 8:24 ` Charles Prévot
2009-11-27 8:59 ` Jean Delvare
2009-11-27 13:59 ` Luca Tettamanti
2009-11-27 22:32 ` Charles Prévot
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=4B0E819D.2080109@ladisch.de \
--to=clemens@ladisch.de \
--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.