[lm-sensors] controlling fan speed

Paul Aviles paul.aviles at palei.com
Wed Nov 9 06:15:23 CET 2005


Where is the documentation for controlling the fans speed with sensors 2.9.2 
on a 2.6.9-5.EL kernel?

On the very same hardware and 2.4.22-1 kernel (FC1) I used to be able to 
control them before by doing

echo "0.2 32.0 98.0 1.0 .0.0" > /proc/sys/dev/sensors/`/bin/ls -1 
/proc/sys/dev/sensors | grep -v eeprom | grep -v chips | tail -1 `/pwm2_cfg

Now with 2.6 I have related files under /sys/bus/i2c/devices/0-002e but 
cannot control the speed.

[root at andeya1 0-002e]# ls -l fan*
-r--r--r--  1 root root 4096 Nov  9 00:07 fan1_input
-rw-r--r--  1 root root    0 Nov  9 00:07 fan1_min
-rw-r--r--  1 root root 4096 Nov  9 00:07 fan1_pwm
-r--r--r--  1 root root 4096 Nov  9 00:07 fan1_pwm_enable
-r--r--r--  1 root root 4096 Nov  9 00:07 fan2_input
-rw-r--r--  1 root root    0 Nov  9 00:07 fan2_min
-rw-r--r--  1 root root 4096 Nov  9 00:07 fan2_pwm
-r--r--r--  1 root root 4096 Nov  9 00:07 fan2_pwm_enable
-r--r--r--  1 root root 4096 Nov  9 00:07 fan3_input
-rw-r--r--  1 root root    0 Nov  9 00:07 fan3_min
-rw-r--r--  1 root root 4096 Nov  9 00:07 fan3_pwm
-r--r--r--  1 root root 4096 Nov  9 00:07 fan3_pwm_enable
-r--r--r--  1 root root 4096 Nov  9 00:07 fan4_input
-rw-r--r--  1 root root 4096 Nov  9 00:07 fan4_min

If I do a echo "32" > fan1_pwm it does not generate any error but it does 
not change the value.

While running ./pwmconfig  I get the following.

  0-002e/fan1_pwm
./pwmconfig: line 102: 0-002e/fan1_pwm_enable: Permission denied
   0-002e/fan2_pwm
./pwmconfig: line 102: 0-002e/fan2_pwm_enable: Permission denied
   0-002e/fan3_pwm
./pwmconfig: line 102: 0-002e/fan3_pwm_enable: Permission denied

Thanks


Paul Aviles 






More information about the lm-sensors mailing list