[ltp] thinkpad hwmon device switch randomly every reboot

Yonggang Guo linux-thinkpad@linux-thinkpad.org
Sun, 26 Sep 2010 08:54:22 +0800


--001485f8701274857504911f0d75
Content-Type: text/plain; charset=UTF-8

Thanks.
use absolute path and comment out the validation fixed this.

On Sat, Sep 25, 2010 at 11:28 AM, Henrique de Moraes Holschuh <
hmh@hmh.eng.br> wrote:

> On Sat, 25 Sep 2010, Yonggang Guo wrote:
> > The fancontrol script use configure file: /etc/fancontrol, which use
> hwmon1
> > to control the fan.
>
> It is broken, then.
>
> > But the thinkpad_hwmon switch randomly between hwmon0 and hwmon1 after
> > reboot.
>
> Yes.  hwmon device numbering is first-come, first-served.
>
> > How to set the thinkpad_hwmon to a fix position? Thanks!
>
> You cannot.  If anything loads before it, or wins a race to see who
> registers a hwmon device first, it will change position.
>
> The fix is to teach fancontrol to locate the device it needs like
> libsensors does.  If it can already do that, you should configure it
> accordingly (I don't use it, so I can't say).
>
> Meanwhile, use a more stable path (/sys/devices/platform/...) as a
> workaround.
>
> --
>  "One disk to rule them all, One disk to find them. One disk to bring
>  them all and in the darkness grind them. In the Land of Redmond
>  where the shadows lie." -- The Silicon Valley Tarot
>   Henrique Holschuh
>



-- 
Best Regards,
Yonggang Guo

--001485f8701274857504911f0d75
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Thanks.<br>use absolute path and comment out the validation fixed this.<br>=
<br><div class=3D"gmail_quote">On Sat, Sep 25, 2010 at 11:28 AM, Henrique d=
e Moraes Holschuh <span dir=3D"ltr">&lt;<a href=3D"mailto:hmh@hmh.eng.br">h=
mh@hmh.eng.br</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class=3D"im"=
>On Sat, 25 Sep 2010, Yonggang Guo wrote:<br>
&gt; The fancontrol script use configure file: /etc/fancontrol, which use h=
wmon1<br>
&gt; to control the fan.<br>
<br>
</div>It is broken, then.<br>
<div class=3D"im"><br>
&gt; But the thinkpad_hwmon switch randomly between hwmon0 and hwmon1 after=
<br>
&gt; reboot.<br>
<br>
</div>Yes. =C2=A0hwmon device numbering is first-come, first-served.<br>
<div class=3D"im"><br>
&gt; How to set the thinkpad_hwmon to a fix position? Thanks!<br>
<br>
</div>You cannot. =C2=A0If anything loads before it, or wins a race to see =
who<br>
registers a hwmon device first, it will change position.<br>
<br>
The fix is to teach fancontrol to locate the device it needs like<br>
libsensors does. =C2=A0If it can already do that, you should configure it<b=
r>
accordingly (I don&#39;t use it, so I can&#39;t say).<br>
<br>
Meanwhile, use a more stable path (/sys/devices/platform/...) as a<br>
workaround.<br>
<br>
--<br>
 =C2=A0&quot;One disk to rule them all, One disk to find them. One disk to =
bring<br>
 =C2=A0them all and in the darkness grind them. In the Land of Redmond<br>
 =C2=A0where the shadows lie.&quot; -- The Silicon Valley Tarot<br>
<font color=3D"#888888"> =C2=A0Henrique Holschuh<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>Best Regards,<br=
>Yonggang Guo<br><br>

--001485f8701274857504911f0d75--