Skip to contentSkip to conversation

Kernel 3.13 breaks pwmconfig and fancontrol

lm-sensors John 3 participants 10 messages Jan 27, 2014 – Jan 28, 2014

lore
Share & tools
lore

John

author
#0 lore raw

Problem: Upgrading to Linux 3.13 renders fancontrol unable to function as it did under 3.12.9.  Also, pwmconfig generates "broken" config files under 3.13.

Versions: 3.3.5 and built from SVN r6215-20140127.

Mainboard: Asus P8Z77-V Pro

I have attached two files assuming attachments are allowed.  If not, I will post separately.
1) /etc/fancontrol-3.12.x (works fine under 3.12.9)
2) /etc/fancontrol-new (does not work under 3.13 and was generated by pwmconfig)

Is this a known bug or user error on my part?

# fancontrol
Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for hwmon1/device/pwm5:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan5_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=75
  MINPWM=75
  MAXPWM=255

Settings for hwmon1/device/pwm4:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan4_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=65
  MINPWM=65
  MAXPWM=255

Settings for hwmon1/device/pwm3:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan3_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=60
  MINPWM=60
  MAXPWM=255

Settings for hwmon1/device/pwm1:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan1_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=60
  MINPWM=60
  MAXPWM=255

Settings for hwmon1/pwm4:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan4_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=0
  MINPWM=0
  MAXPWM=255

Settings for hwmon1/pwm3:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan3_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=100
  MINPWM=0
  MAXPWM=255

Settings for hwmon1/pwm1:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan1_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=100
  MINPWM=0
  MAXPWM=255

Settings for hwmon1/pwm5:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan5_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=100
  MINPWM=75
  MAXPWM=255

Error: file hwmon1/device/pwm5 doesn't exist
Error: file hwmon1/device/pwm4 doesn't exist
Error: file hwmon1/device/pwm3 doesn't exist
Error: file hwmon1/device/pwm1 doesn't exist
Error: file hwmon1/device/fan5_input doesn't exist
Error: file hwmon1/device/fan4_input doesn't exist
Error: file hwmon1/device/fan3_input doesn't exist
Error: file hwmon1/device/fan1_input doesn't exist

At least one referenced file is missing. Either some required kernel modules haven't been loaded, or your configuration file is outdated. In the latter case, you should run pwmconfig again.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 12 lines · John

Problem: Upgrading to Linux 3.13 renders fancontrol unable to function as it did under 3.12.9.  Also, pwmconfig generates "broken" config files under 3.13.

Versions: 3.3.5 and built from SVN r6215-20140127.

Mainboard: Asus P8Z77-V Pro

I have attached two files assuming attachments are allowed.  If not, I will post separately.
1) /etc/fancontrol-3.12.x (works fine under 3.12.9)
2) /etc/fancontrol-new (does not work under 3.13 and was generated by pwmconfig)

Was the file created under 3.13 or 3.12 ?

Quoted 2 lines

Is this a known bug or user error on my part?

Difference in 3.13 is in the file path. Instead of hwmon1/device/pwm5, you need hwmon1/pwm5, and so on.

Quoted 36 lines
# fancontrol
Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for hwmon1/device/pwm5:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan5_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=75
  MINPWM=75
  MAXPWM=255

Settings for hwmon1/device/pwm4:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan4_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=65
  MINPWM=65
  MAXPWM=255

Settings for hwmon1/device/pwm3:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan3_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=60
  MINPWM=60
  MAXPWM=255

Quoted 10 lines

Settings for hwmon1/device/pwm1:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan1_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=60
  MINPWM=60
  MAXPWM=255

I assume the following is the log from 3.13 ?

Quoted 40 lines

Settings for hwmon1/pwm4:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan4_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=0
  MINPWM=0
  MAXPWM=255

Settings for hwmon1/pwm3:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan3_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=100
  MINPWM=0
  MAXPWM=255

Settings for hwmon1/pwm1:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan1_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=100
  MINPWM=0
  MAXPWM=255

Settings for hwmon1/pwm5:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan5_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=100
  MINPWM=75
  MAXPWM=255

Quoted 9 lines

Error: file hwmon1/device/pwm5 doesn't exist
Error: file hwmon1/device/pwm4 doesn't exist
Error: file hwmon1/device/pwm3 doesn't exist
Error: file hwmon1/device/pwm1 doesn't exist
Error: file hwmon1/device/fan5_input doesn't exist
Error: file hwmon1/device/fan4_input doesn't exist
Error: file hwmon1/device/fan3_input doesn't exist
Error: file hwmon1/device/fan1_input doesn't exist

The above log refers to hwmon1/pwmX and hwmon1/fanX_input, yet the errors refer to hwmon1/device/pwmX and hwmon1/device/fanX_input. So there is an obvious mismatch. How does the actual configuration file look like ?

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

author
#2 lore raw
In reply to John

Thank you for the reply, Guenter.

Quoted 11 lines · John
Quoted 1 line

Problem: Upgrading to Linux 3.13 renders fancontrol unable to function as

it did under 3.12.9.  Also, pwmconfig generates "broken" config files under 3.13.

Quoted 7 lines

Versions: 3.3.5 and built from SVN r6215-20140127.

Mainboard: Asus P8Z77-V Pro

Quoted 7 lines
Quoted 1 line

I have attached two files assuming attachments are allowed.  If not, I will

post separately.

Quoted 2 lines

1) /etc/fancontrol-3.12.x (works fine under 3.12.9)
2) /etc/fancontrol-new (does not work under 3.13 and was generated by

pwmconfig)

Quoted 1 line

Was the file created under 3.13 or 3.12 ?

Yes, fancontrol-3.12.x was created under 3.12 (actually a while before it) and fancontrol-new was created under 3.13.

Quoted 4 lines
Quoted 2 lines

Is this a known bug or user error on my part?

Difference in 3.13 is in the file path. Instead of hwmon1/device/pwm5, you need hwmon1/pwm5, and so on.

I saw that the path changed, but shouldn't pwmconfig correct this for me?

Quoted 47 lines
Quoted 36 lines
 # fancontrol
 Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for hwmon1/device/pwm5:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan5_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=75
  MINPWM=75
  MAXPWM=255

Settings for hwmon1/device/pwm4:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan4_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=65
  MINPWM=65
  MAXPWM=255

Settings for hwmon1/device/pwm3:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan3_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=60
  MINPWM=60
  MAXPWM=255

Quoted 10 lines

Settings for hwmon1/device/pwm1:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan1_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=60
  MINPWM=60
  MAXPWM=255

Quoted 1 line

I assume the following is the log from 3.13 ?

Yes, this is running fancontrol under 3.13 using /etc/fancontrol-new which again was generated under 3.13.

Quoted 50 lines
Quoted 40 lines

Settings for hwmon1/pwm4:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan4_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=0
  MINPWM=0
  MAXPWM=255

Settings for hwmon1/pwm3:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan3_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=100
  MINPWM=0
  MAXPWM=255

Settings for hwmon1/pwm1:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan1_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=100
  MINPWM=0
  MAXPWM=255

Settings for hwmon1/pwm5:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/fan5_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=100
  MINPWM=75
  MAXPWM=255

Quoted 9 lines

Error: file hwmon1/device/pwm5 doesn't exist
Error: file hwmon1/device/pwm4 doesn't exist
Error: file hwmon1/device/pwm3 doesn't exist
Error: file hwmon1/device/pwm1 doesn't exist
Error: file hwmon1/device/fan5_input doesn't exist
Error: file hwmon1/device/fan4_input doesn't exist
Error: file hwmon1/device/fan3_input doesn't exist
Error: file hwmon1/device/fan1_input doesn't exist

Quoted 4 lines

The above log refers to hwmon1/pwmX and hwmon1/fanX_input, yet the errors refer to hwmon1/device/pwmX and hwmon1/device/fanX_input. So there is an obvious mismatch. How does the actual configuration file look like ?

I deleted /etc/fancontrol* and rebuilt again under 3.13 (it is attached after I edited it).  It now works.  I am not sure what I did the first time through.  Sorry for the noise to the list.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to John
Quoted 2 lines · John

Thank you for the reply, Guenter.

My pleasure.

Quoted 11 lines
Quoted 11 lines
Quoted 10 lines

Error: file hwmon1/device/pwm5 doesn't exist
Error: file hwmon1/device/pwm4 doesn't exist
Error: file hwmon1/device/pwm3 doesn't exist
Error: file hwmon1/device/pwm1 doesn't exist
Error: file hwmon1/device/fan5_input doesn't exist
Error: file hwmon1/device/fan4_input doesn't exist
Error: file hwmon1/device/fan3_input doesn't exist
Error: file hwmon1/device/fan1_input doesn't exist

Quoted 6 lines
Quoted 4 lines

The above log refers to hwmon1/pwmX and hwmon1/fanX_input, yet the errors refer to hwmon1/device/pwmX and hwmon1/device/fanX_input. So there is an obvious mismatch. How does the actual configuration file look like ?

I deleted /etc/fancontrol* and rebuilt again under 3.13 (it is attached after I edited it).  It now works.  I am not sure what I did the first time through.  Sorry for the noise to the list.

No problem. Glad the issue is resolved.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#4 lore raw
In reply to John

Hi John, Guenter,

Quoted 6 lines · John
Quoted 4 lines

The above log refers to hwmon1/pwmX and hwmon1/fanX_input, yet the errors refer to hwmon1/device/pwmX and hwmon1/device/fanX_input. So there is an obvious mismatch. How does the actual configuration file look like ?

I deleted /etc/fancontrol* and rebuilt again under 3.13 (it is attached after I edited it).  It now works.  I am not sure what I did the first time through.  Sorry for the noise to the list.

It's not only noise, the problem is real. Thanks for reporting it early so we have a chance to fix it before it hits too many users.

Guenter, you did update quite a few hwmon drivers lately and as a consequence their attributes moved from hwmonN/device to hwmonN. While libsensors already knows how to deal with this, fancontrol does not. So the change is likely to break many fancontrol user setups out there, which is not good.

I think we need to teach fancontrol about this change and have it look at the new place automatically whenever referenced attributes are missing at the old place.

John, would you be willing to assist us by testing an updated version of the fancontrol script on a 3.13 kernel using your old 3.12 configuration file?

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#5 lore raw
In reply to John
Quoted 19 lines · Jean Delvare

Hi John, Guenter,

Quoted 6 lines · John
Quoted 4 lines

The above log refers to hwmon1/pwmX and hwmon1/fanX_input, yet the errors refer to hwmon1/device/pwmX and hwmon1/device/fanX_input. So there is an obvious mismatch. How does the actual configuration file look like ?

I deleted /etc/fancontrol* and rebuilt again under 3.13 (it is attached after I edited it). It now works. I am not sure what I did the first time through. Sorry for the noise to the list.

It's not only noise, the problem is real. Thanks for reporting it early so we have a chance to fix it before it hits too many users.

Guenter, you did update quite a few hwmon drivers lately and as a consequence their attributes moved from hwmonN/device to hwmonN. While libsensors already knows how to deal with this, fancontrol does not. So the change is likely to break many fancontrol user setups out there, which is not good.

Quoted 4 lines

I think we need to teach fancontrol about this change and have it look at the new place automatically whenever referenced attributes are missing at the old place.

You are right. There is a secondary problem, though: Depending on the system, hwmon modules may be loaded in different order. What is hwmon0 at one boot may be hwmon1 at the next boot. It would be nice if fancontrol could check for the name of a hwmon device instead of its path to fix that problem.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#6 lore raw
In reply to John
Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Jean Delvare

It's not only noise, the problem is real. Thanks for reporting it early so we have a chance to fix it before it hits too many users.

Guenter, you did update quite a few hwmon drivers lately and as a consequence their attributes moved from hwmonN/device to hwmonN. While libsensors already knows how to deal with this, fancontrol does not. So the change is likely to break many fancontrol user setups out there, which is not good.

Quoted 8 lines
Quoted 3 lines

I think we need to teach fancontrol about this change and have it look at the new place automatically whenever referenced attributes are missing at the old place.

You are right. There is a secondary problem, though: Depending on the system, hwmon modules may be loaded in different order. What is hwmon0 at one boot may be hwmon1 at the next boot. It would be nice if fancontrol could check for the name of a hwmon device instead of its path to fix that problem.

That's right. This can be worked around by using absolute device paths in /etc/fancontrol, however pwmconfig still doesn't generate such paths IIRC (http://www.lm-sensors.org/ticket/2388 is still open.) OTOH, with absolute paths the workaround I just implemented doesn't work, so I'm glad not too many users switched to that yet.

Note that fancontrol already checks the device names so that it detects the module loading order problem. However it tells the user to run pwmconfig again, which is only going to work until next reboot. Best would be if it could adjust the configuration on the fly, as I just did for the attributes move.

I suppose we will never get away with these problems until we use libsensors (directly, or at least some libsensors-based helper.) But really I don't have the time to look into this right now.

John, can you please test:
http://jdelvare.nerim.net/devel/lm-sensors/fancontrol
and confirm that it works fine with your old configuration file under kernel 3.13?

Thanks,

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author
#7 lore raw
In reply to John
Quoted 6 lines · Guenter Roeck
Quoted 3 lines · Jean Delvare
Quoted 1 line

It's not only noise, the problem is real. Thanks for reporting it

early

Quoted 1 line
Quoted 1 line

so we have a chance to fix it before it hits too many users.

**Please note that I have unsubscribed from the ML so keep cc'ing me like you have if you want me to get the communications :p

Glad my neurotic tendencies have helped :)

Quoted 4 lines

John, can you please test:
http://jdelvare.nerim.net/devel/lm-sensors/fancontrol
and confirm that it works fine with your old configuration file under kernel 3.13?

Glad to give back by testing.  Yes, your new script uses my old config file under 3.13 just fine:

# unlink /etc/fancontrol
# ln -s /etc/fancontrol-3.12.9 /etc/fancontrol
# ./fancontrol-test

Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for hwmon1/device/pwm5:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan5_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=75
  MINPWM=75
  MAXPWM=255

Settings for hwmon1/device/pwm4:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan4_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=65
  MINPWM=65
  MAXPWM=255

Settings for hwmon1/device/pwm3:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan3_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=60
  MINPWM=60
  MAXPWM=255

Settings for hwmon1/device/pwm1:
  Depends on hwmon0/device/temp4_input
  Controls hwmon1/device/fan1_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=80
  MINSTOP=60
  MINPWM=60
  MAXPWM=255

Adjusing hwmon1/device/pwm5 -> hwmon1/pwm5 Adjusing hwmon1/device/pwm4 -> hwmon1/pwm4 Adjusing hwmon1/device/pwm3 -> hwmon1/pwm3 Adjusing hwmon1/device/pwm1 -> hwmon1/pwm1 Adjusing hwmon1/device/fan5_input -> hwmon1/fan5_input Adjusing hwmon1/device/fan4_input -> hwmon1/fan4_input Adjusing hwmon1/device/fan3_input -> hwmon1/fan3_input Adjusing hwmon1/device/fan1_input -> hwmon1/fan1_input Enabling PWM on fans...
Starting automatic fan control...

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#8 lore raw
In reply to John
Quoted 6 lines · John
Quoted 4 lines

John, can you please test:
http://jdelvare.nerim.net/devel/lm-sensors/fancontrol
and confirm that it works fine with your old configuration file under kernel 3.13?

Glad to give back by testing.  Yes, your new script uses my old config file under 3.13 just fine:

Sweet, thanks for testing. I'll commit the fix now.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author
#9 lore raw
In reply to John
Quoted 11 lines · John
Quoted 7 lines
Quoted 5 lines

John, can you please test:
http://jdelvare.nerim.net/devel/lm-sensors/fancontrol
and confirm that it works fine with your old configuration file under kernel 3.13?

Glad to give back by testing.  Yes, your new script uses my old config file

under 3.13 just fine:

Sweet, thanks for testing. I'll commit the fix now.

Cool... consider bumping the official version number (i.e. to 3.3.6 for example) which will make it much easier for distro packagers to see it and to get it out to the masses.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors