pwmconfig/fancontrol error (version 3.3.1)
Hello :-)
A lmsensors3.conf generated by pwmconfig resulted in fancontrol message "Error: file hwmon0/device/fan4_input+hwmon0/device/fan1_input doesn't exist".
The motherboard was an ASUS P8H67-V fitted with an S-Flex SFF21E case exhaust fan (3 wire) connected to CHA_FAN2 and a stock Intel Core i3 processor cooler fan (4 wire) connected to CHA_FAN.
pwmconfig detected that the Nuvoton NCT6776F controlled both CHA_FAN and CHA_FAN2 via pwm1 (pwm2 controls CPU_FAN; pwm3 seems not to be used). The sensors3.conf generated by pwmconfig included this line:
FCFANS= hwmon0/device/pwm1=hwmon0/device/fan4_input+hwmon0/device/fan1_input
The space after FCFANS= is irregular but did not seem to cause any problems for fancontrol.
Both hwmon0/device/fan4_input and hwmon0/device/fan1_input do exist:
root@CW8:~# ls -l /sys/devices/platform/w83627ehf.656/fan[14]_input -r--r--r-- 1 root root 4096 2011-12-03 18:44 /sys/devices/platform/w83627ehf.656/fan1_input -r--r--r-- 1 root root 4096 2011-12-03 18:26 /sys/devices/platform/w83627ehf.656/fan4_inpu
Further information: the processor cooler fan was connected to CHA_FAN2 instead of CPU_FAN because pwmconfig could not slow it below 1,100 RPM when it was on CPU_FAN. Here's the pwmconfig output with the processor cooler fan connected to CPU_FAN:
PWM 255 FAN 2284
PWM 240 FAN 2112
PWM 225 FAN 2002
PWM 210 FAN 1939
PWM 195 FAN 1872
PWM 180 FAN 1795
PWM 165 FAN 1730
PWM 150 FAN 1674
PWM 135 FAN 1603
PWM 120 FAN 1523
PWM 105 FAN 1456
PWM 90 FAN 1390
PWM 75 FAN 1317
PWM 60 FAN 1231
PWM 45 FAN 1161
PWM 30 FAN 1105
PWM 28 FAN 1110
PWM 26 FAN 1103
PWM 24 FAN 1102
PWM 22 FAN 1104
PWM 20 FAN 1103
PWM 18 FAN 1104
PWM 16 FAN 1102
PWM 14 FAN 1108
PWM 12 FAN 1110
PWM 10 FAN 1111
PWM 8 FAN 1110
PWM 6 FAN 1110
PWM 4 FAN 1111
PWM 2 FAN 1112
PWM 0 FAN 1112Best
Charles
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Charles,
Quoted 8 lines · Charles
A lmsensors3.conf generated by pwmconfig resulted in fancontrol message "Error: file hwmon0/device/fan4_input+hwmon0/device/fan1_input doesn't exist".
The motherboard was an ASUS P8H67-V fitted with an S-Flex SFF21E case exhaust fan (3 wire) connected to
CHA_FAN2and a stock Intel Core i3 processor cooler fan (4 wire) connected toCHA_FAN.
Quoted 8 lines
pwmconfig detected that the Nuvoton NCT6776F controlled both
CHA_FANandCHA_FAN2via pwm1 (pwm2 controlsCPU_FAN; pwm3 seems not to be used). The sensors3.conf generated by pwmconfig included this line:FCFANS= hwmon0/device/pwm1=hwmon0/device/fan4_input+hwmon0/device/fan1_input
The space after FCFANS= is irregular but did not seem to cause any problems for fancontrol.
This is a known issue. pwmconfig can detect if your board has several fans connected to the same fan control output, but fancontrol can't handle that yet. There's even this comment in pwmconfig:
else
fanactive="$j+${fanactive}" #not supported yet by fancontrol
fanactive_min="$S+${fanactive_min}"
fiWorkaround for the time being is to manually remove one of the two fanX_input from the configuration statement. Until fancontrol knows about the syntax. If you are familiar with bash shell, you could even give it a try. Beware that fancontrol isn't the most friendly piece of code out there though.
Quoted 9 lines
Both hwmon0/device/fan4_input and hwmon0/device/fan1_input do exist:
root@CW8:~# ls -l /sys/devices/platform/w83627ehf.656/fan[14]_input -r--r--r-- 1 root root 4096 2011-12-03 18:44 /sys/devices/platform/w83627ehf.656/fan1_input -r--r--r-- 1 root root 4096 2011-12-03 18:26 /sys/devices/platform/w83627ehf.656/fan4_inpu
Quoted 3 lines
Further information: the processor cooler fan was connected to
CHA_FAN2instead ofCPU_FANbecause pwmconfig could not slow it below 1,100 RPM when it was onCPU_FAN.
This probably explains the behaviour. It is common from board makers to use a single PWM output to control all chassis fans. As you use one of the chassis fan headers for the CPU fan, I'm not surprised that you end up with both fans controlled by the some PWM output. A workaround would be to connect the case fan to the CPU fan header.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi,
Quoted 6 lines · Charles
Hello :-)
A lmsensors3.conf generated by pwmconfig resulted in fancontrol message "Error: file hwmon0/device/fan4_input+hwmon0/device/fan1_input doesn't exist".
Looking into pwmconfig, it seems the above is supposed to mean that pwm1 controls both fan1_input and fan4_input. There is also a comment in pwmconfig suggesting that fancontrol does not support this configuration.
Quoted 9 lines
The motherboard was an ASUS P8H67-V fitted with an S-Flex SFF21E case exhaust fan (3 wire) connected to
CHA_FAN2and a stock Intel Core i3 processor cooler fan (4 wire) connected toCHA_FAN.pwmconfig detected that the Nuvoton NCT6776F controlled both
CHA_FANandCHA_FAN2via pwm1 (pwm2 controlsCPU_FAN; pwm3 seems not to be used). The sensors3.conf generated by pwmconfig included this line:FCFANS= hwmon0/device/pwm1=hwmon0/device/fan4_input+hwmon0/device/fan1_input
Try replacing this with
FCFANS="hwmon0/device/pwm1=hwmon0/device/fan1_input"
or
FCFANS="hwmon0/device/pwm1=hwmon0/device/fan4_input"
Guenter
Quoted 49 lines
The space after FCFANS= is irregular but did not seem to cause any problems for fancontrol.
Both hwmon0/device/fan4_input and hwmon0/device/fan1_input do exist:
root@CW8:~# ls -l /sys/devices/platform/w83627ehf.656/fan[14]_input -r--r--r-- 1 root root 4096 2011-12-03 18:44 /sys/devices/platform/w83627ehf.656/fan1_input -r--r--r-- 1 root root 4096 2011-12-03 18:26 /sys/devices/platform/w83627ehf.656/fan4_inpuFurther information: the processor cooler fan was connected to
CHA_FAN2instead ofCPU_FANbecause pwmconfig could not slow it below 1,100 RPM when it was onCPU_FAN. Here's the pwmconfig output with the processor cooler fan connected toCPU_FAN:PWM 255 FAN 2284 PWM 240 FAN 2112 PWM 225 FAN 2002 PWM 210 FAN 1939 PWM 195 FAN 1872 PWM 180 FAN 1795 PWM 165 FAN 1730 PWM 150 FAN 1674 PWM 135 FAN 1603 PWM 120 FAN 1523 PWM 105 FAN 1456 PWM 90 FAN 1390 PWM 75 FAN 1317 PWM 60 FAN 1231 PWM 45 FAN 1161 PWM 30 FAN 1105 PWM 28 FAN 1110 PWM 26 FAN 1103 PWM 24 FAN 1102 PWM 22 FAN 1104 PWM 20 FAN 1103 PWM 18 FAN 1104 PWM 16 FAN 1102 PWM 14 FAN 1108 PWM 12 FAN 1110 PWM 10 FAN 1111 PWM 8 FAN 1110 PWM 6 FAN 1110 PWM 4 FAN 1111 PWM 2 FAN 1112 PWM 0 FAN 1112
Quoted 8 lines
Best
Charles
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 29 lines · Jean Delvare
Hi Charles,
Quoted 8 lines · Charles
A lmsensors3.conf generated by pwmconfig resulted in fancontrol message "Error: file hwmon0/device/fan4_input+hwmon0/device/fan1_input doesn't exist".
The motherboard was an ASUS P8H67-V fitted with an S-Flex SFF21E case exhaust fan (3 wire) connected to
CHA_FAN2and a stock Intel Core i3 processor cooler fan (4 wire) connected toCHA_FAN.Quoted 8 lines
pwmconfig detected that the Nuvoton NCT6776F controlled both
CHA_FANandCHA_FAN2via pwm1 (pwm2 controlsCPU_FAN; pwm3 seems not to be used). The sensors3.conf generated by pwmconfig included this line:FCFANS= hwmon0/device/pwm1=hwmon0/device/fan4_input+hwmon0/device/fan1_input
The space after FCFANS= is irregular but did not seem to cause any problems for fancontrol.
This is a known issue. pwmconfig can detect if your board has several fans connected to the same fan control output, but fancontrol can't handle that yet. There's even this comment in pwmconfig:
else fanactive="$j+${fanactive}" #not supported yet by fancontrol fanactive_min="$S+${fanactive_min}" fi
Quoted 5 lines
Workaround for the time being is to manually remove one of the two
fanX_inputfrom the configuration statement. Until fancontrol knows about the syntax. If you are familiar with bash shell, you could even give it a try. Beware that fancontrol isn't the most friendly piece of code out there though.
I finally gave it a try myself. Please fetch:
http://khali.linux-fr.org/devel/misc/fancontrol
and give it a try, it should work OK with multiple fans controlled by one PWM output.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Charles,
Please keep the list CC'd.
Quoted 6 lines · Charles
Quoted 4 lines · Jean Delvare
I finally gave it a try myself. Please fetch:
http://khali.linux-fr.org/devel/misc/fancontrol
and give it a try, it should work OK with multiple fans controlled by one PWM output.
Quoted 7 lines
Thanks Jean ::)
Tested; no error messages and GKrellM shows sane processor core temperatures and fan speeds.
Sorry for the incomplete initial report:
* I had applied the suggested workaround (thanks Jean and Guenter).
Hmm. Please test the updated version of the script _without_ the workaround applied. That's the whole point of the update.
Quoted 3 lines
* Connecting the case exahust fan to
CPU_FANis not an option because pwmconfig does not control it then, although it can control the stock Intel fan on the same header (subject to the ~1100 RPM minimum).
Most likely because the CPU fan header is a 4-pin header, and the Intel CPU fan has 4 wires, while the case fan headers are 3-pin with a 3-wire fan.
On 4-pin headers, the PWM signal is separated from the power. So you can't control a 3-wire fan plugged in a 4-pin header (the PWM signal is on the unconnected pin [1].) This also explains the minimum speed of 4-wire PWM-controlled fans. This is per design. If the minimum speed doesn't please you, you have to either buy a different fan with a lower minimum, or lower the fan voltage using a serial resistor (Noctua amongst several other fan vendors includes such resistors in many of their product packages.)
[1] Some boards have jumpers that will let you turn a 4-pin fan header into a 3-pin one. You loose the benefits of 4-wire fans (such as linear fan speed control and reliable readings at low speed) but are no longer affected by the arbitrary fan minimum then.
Quoted 7 lines
*
PWR_FANis not speed-controlled.The present situation is not satisfactory (not an
lm_sensorsissue, reporting in case someone in a similar situation finds this) because the processor and case fans have very different signal/speed characteristics so, for example, the processor fan runs at 1400 while the case runs at 700 and the case exhaust air is warmer than ideal.
Indeed, it is only recommended to connect similar fans to the same control output. There's a reason why board makers often connect the case fans together, but usually have a separate fan control for the CPU(s).
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 3 lines · On 04/12/11 16:30, [email protected] wrote:
Hi Charles,
Please keep the list CC'd.
Oops! Sorry.
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Tested; no error messages and GKrellM shows sane processor core temperatures and fan speeds.
Sorry for the incomplete initial report:
* I had applied the suggested workaround (thanks Jean and Guenter).Hmm. Please test the updated version of the script _without_ the workaround applied. That's the whole point of the update.
That's how I did test the update. Should have made clear.
Quoted 19 lines
Most likely because the CPU fan header is a 4-pin header, and the Intel CPU fan has 4 wires, while the case fan headers are 3-pin with a 3-wire fan.
On 4-pin headers, the PWM signal is separated from the power. So you can't control a 3-wire fan plugged in a 4-pin header (the PWM signal is on the unconnected pin [1].) This also explains the minimum speed of 4-wire PWM-controlled fans. This is per design. If the minimum speed doesn't please you, you have to either buy a different fan with a lower minimum, or lower the fan voltage using a serial resistor (Noctua amongst several other fan vendors includes such resistors in many of their product packages.)
[1] Some boards have jumpers that will let you turn a 4-pin fan header into a 3-pin one. You loose the benefits of 4-wire fans (such as linear fan speed control and reliable readings at low speed) but are no longer affected by the arbitrary fan minimum then.
Quoted 4 lines
Indeed, it is only recommended to connect similar fans to the same control output. There's a reason why board makers often connect the case fans together, but usually have a separate fan control for the CPU(s).
Thanks for explanations, Jean :)
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors