[ltp] thinkpad hwmon device switch randomly every reboot

Yonggang Guo linux-thinkpad@linux-thinkpad.org
Sat, 25 Sep 2010 10:21:51 +0800


--0016368341bc7c20fc04910c2896
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,

The fancontrol script use configure file: /etc/fancontrol, which use hwmon1
to control the fan.
But the thinkpad_hwmon switch randomly between hwmon0 and hwmon1 after
reboot.

/sys/class/hwmon/
=E2=94=9C=E2=94=80=E2=94=80 hwmon0 -> ../../devices/virtual/hwmon/hwmon0
=E2=94=94=E2=94=80=E2=94=80 hwmon1 -> ../../devices/platform/thinkpad_hwmon=
/hwmon/hwmon1

If thinkpad_hwmon takes hwmon0, the fancontrol script complained about the
config file outdated, suggested to run pwmconfig again.
I have to replace "hwmon1" with "hwmon0" in /etc/fancontrol file to fix it.

How to set the thinkpad_hwmon to a fix position? Thanks!

/etc/fancontrol:
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=3D10
DEVPATH=3Dhwmon1=3Ddevices/platform/thinkpad_hwmon
DEVNAME=3Dhwmon1=3Dthinkpad
FCTEMPS=3Dhwmon1/device/pwm1=3Dhwmon1/device/temp1_input
FCFANS=3D hwmon1/device/pwm1=3Dhwmon1/device/fan1_input
MINTEMP=3Dhwmon1/device/pwm1=3D60
MAXTEMP=3Dhwmon1/device/pwm1=3D80
MINSTART=3Dhwmon1/device/pwm1=3D150
MINSTOP=3Dhwmon1/device/pwm1=3D100


--=20
Best Regards,
Yonggang Guo

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

Hello,<br><br>The fancontrol script use configure file: /etc/fancontrol, wh=
ich use hwmon1 to control the fan.<br>But the thinkpad_hwmon switch randoml=
y between hwmon0 and hwmon1 after reboot.<br><br>/sys/class/hwmon/<br>=E2=
=94=9C=E2=94=80=E2=94=80 hwmon0 -&gt; ../../devices/virtual/hwmon/hwmon0<br=
>
=E2=94=94=E2=94=80=E2=94=80 hwmon1 -&gt; ../../devices/platform/thinkpad_hw=
mon/hwmon/hwmon1<br><br>If thinkpad_hwmon takes hwmon0, the fancontrol scri=
pt complained about the config file outdated, suggested to run pwmconfig ag=
ain.<br>I have to replace &quot;hwmon1&quot; with &quot;hwmon0&quot; in /et=
c/fancontrol file to fix it.<br>
<br>How to set the thinkpad_hwmon to a fix position? Thanks!<br><br>/etc/fa=
ncontrol:<br># Configuration file generated by pwmconfig, changes will be l=
ost<br>INTERVAL=3D10<br>DEVPATH=3Dhwmon1=3Ddevices/platform/thinkpad_hwmon<=
br>
DEVNAME=3Dhwmon1=3Dthinkpad<br>FCTEMPS=3Dhwmon1/device/pwm1=3Dhwmon1/device=
/temp1_input<br>FCFANS=3D hwmon1/device/pwm1=3Dhwmon1/device/fan1_input<br>=
MINTEMP=3Dhwmon1/device/pwm1=3D60<br>MAXTEMP=3Dhwmon1/device/pwm1=3D80<br>M=
INSTART=3Dhwmon1/device/pwm1=3D150<br>
MINSTOP=3Dhwmon1/device/pwm1=3D100<br><br clear=3D"all"><br>-- <br>Best Reg=
ards,<br>Yonggang Guo<br><br>

--0016368341bc7c20fc04910c2896--