Skip to contentSkip to conversation

fancontrol wouldn't start

lm-sensors alex 2 participants 2 messages Aug 18, 2005 – Aug 19, 2005

lore
Share & tools
lore

alex

author
#0 lore raw

that shows fancontrol at startup

Loading configuration from /etc/fancontrol ...

Common settings:
INTERVAL

Settings for 2-0290/pwm2:
Depends on 2-0290/temp3_input
Controls 2-0290/fan2_input
MINTEMP
MAXTEMP@
MINSTART�
MINSTOPu

Settings for 2-0290/pwm1:
Depends on 0-002e/temp2_input
Controls 0-002e/fan4_input+0-002e/fan3_input
MINTEMP5
MAXTEMPE
MINSTART0
MINSTOPe

Settings for 0-002e/pwm3:
Depends on 0-002e/temp3_input
Controls 0-002e/fan2_input
MINTEMP@
MAXTEMP`
MINSTART�
MINSTOPu

Settings for 0-002e/pwm1:
Depends on 0-002e/temp1_input
Controls
MINTEMPE
MAXTEMP`
MINSTART�
MINSTOPe

Settings for 0-002e/pwm2:
Depends on 2-0290/temp1_input
Controls 0-002e/fan1_input
MINTEMP5
MAXTEMPE
MINSTART0
MINSTOP

Enabling PWM on fans...
/usr/sbin/fancontrol: line 265: pwmenable: command not found Error enabling PWM on /sys/bus/i2c/devices/2-0290/pwm2 Aborting, restoring fans...
/usr/sbin/fancontrol: line 127: 0-002e/pwm3_enable: Keine Berechtigung /usr/sbin/fancontrol: line 127: 0-002e/pwm1_enable: Keine Berechtigung /usr/sbin/fancontrol: line 127: 0-002e/pwm2_enable: Keine Berechtigung Verify fans have returned to full speed

if I look in /sys/bus/i2c/devices/0-002e

-rw-r--r--  1 root root    0 2005-08-18 02:35 /sys/bus/i2c/devices/0-002e/pwm1
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm1_auto_channels
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm1_auto_pwm_freq
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm1_auto_pwm_min
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm1_auto_pwm_minctl
-r--r--r--  1 root root    0 2005-08-18 02:49 /sys/bus/i2c/devices/0-002e/pwm1_enable
-rw-r--r--  1 root root    0 2005-08-18 02:35 /sys/bus/i2c/devices/0-002e/pwm2
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm2_auto_channels
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm2_auto_pwm_freq
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm2_auto_pwm_min
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm2_auto_pwm_minctl
-r--r--r--  1 root root    0 2005-08-18 02:49 /sys/bus/i2c/devices/0-002e/pwm2_enable
-rw-r--r--  1 root root    0 2005-08-18 02:35 /sys/bus/i2c/devices/0-002e/pwm3
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm3_auto_channels
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm3_auto_pwm_freq
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm3_auto_pwm_min
-rw-r--r--  1 root root 4096 2005-08-18 02:53 /sys/bus/i2c/devices/0-002e/pwm3_auto_pwm_minctl
-r--r--r--  1 root root    0 2005-08-18 02:49 /sys/bus/i2c/devices/0-002e/pwm3_enable

in sys/bus/i2c/devices/2-0290 i see only
-rw-r--r-- 1 root root 0 2005-08-18 02:49 /sys/bus/i2c/devices/2-0290/pwm1 -rw-r--r-- 1 root root 0 2005-08-18 02:49 /sys/bus/i2c/devices/2-0290/pwm2

I have the ADT7463 on 0-002e and the W83627HF on 2-0290

could someone help me

Thx
Alex

#1 lore raw

Hi all,

To Alex:

You seem to hit an issue. If you want to allow the fans regulate itselfs according the temp you can use capabilities of the chip itself and you dont need the fancontrol script at all.

Please consult the lm85 file in Documentation/hwmon or Documentation/i2c/chips of your kernel sources. (use commands like echo and cat to write/read values)
If you have any other trouble with this automatic *chip* stuff let us now. In meanwhile we will try to solve the fancontrol issue with others.

To rest of developers:

Quoted 1 line

-r--r--r-- 1 root root 0 2005-08-18 02:49 /sys/bus/i2c/devices/0-002e/pwm1_enable

Maybe the script are trying to write something in it and get confused because it is read only.

Our specs want this file RW.

pwm[1-3]_enable
Switch PWM on and off.
Not always present even if fan*_pwm is. 0 to turn off
1 to turn on in manual mode
2 to turn on in automatic mode Read/Write

Current implementation:

  return sprintf(buf,"%d\n", (pwm_zone != 0 && pwm_zone != -1) );

/* Since we can't use strings, I'm abusing these numbers
* to stand in for the following meanings:

 *      1 -- PWM responds to Zone 1
 *      2 -- PWM responds to Zone 2
 *      3 -- PWM responds to Zone 3

* 23 -- PWM responds to the higher temp of Zone 2 or 3
* 123 -- PWM responds to highest of Zone 1, 2, or 3
* 0 -- PWM is always at 0% (ie, off)
* -1 -- PWM is always at 100%
* -2 -- PWM responds to manual control
*/

So it returns 0 when is off or running fullspeed.

My proposal:

Allow to change to 0,1,2

0 -> write to corresponding zone -1 (fan will run at full speed) 1 -> write to corresponding zone -2 (fan esponds to manual control)

Document the fact that automatic mode can be reenabled via writing to the pwm#_auto_channels

Any one else has some other idea?

Regards
Rudolf