Fancontrol - pwmconfig problem

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
pablobrd
Level 1
Level 1
Posts: 1
Joined: Mon Feb 21, 2011 4:27 am

Fancontrol - pwmconfig problem

Post by pablobrd »

Hi everyone.

I would like to reduce fan speed, I have 6 so it's a little loud when work at top speed. I used these instructions.

How to detect CPU temperature, fan speeds and voltages (lm-sensors)

sudo apt-get install lm-sensors

Create file called mkdev.sh, and paste in the following

#!/bin/bash

# Here you can set several defaults.

# The number of devices to create (max: 256)
NUMBER=32

# The owner and group of the devices
OUSER=root
OGROUP=root
# The mode of the devices
MODE=600

# This script doesn't need to be run if devfs is used
if [ -r /proc/mounts ] ; then
if grep -q "/dev devfs" /proc/mounts ; then
echo "You do not need to run this script as your system uses devfs."
exit;
fi
fi

i=0;

while [ $i -lt $NUMBER ] ; do
echo /dev/i2c-$i
mknod -m $MODE /dev/i2c-$i c 89 $i || exit
chown "$OUSER:$OGROUP" /dev/i2c-$i || exit
i=$[$i + 1]
done
#end of file
Make this file executable, then run it

sudo chmod +x mkdev.sh
sudo ./mkdev.sh

Now detect sensors, and answer "y" to all questions.

sudo sensors-detect


Correctly detected and added to /etc/modules


Load the modules into kernel with

sudo sensors -s

And check the output

sudo sensors


Sensors works ok.

Code: Select all

# sensors
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage:      +1.11 V  (min =  +0.80 V, max =  +1.60 V)
 +3.3 Voltage:      +3.28 V  (min =  +2.97 V, max =  +3.63 V)
 +5 Voltage:        +5.06 V  (min =  +4.50 V, max =  +5.50 V)
 +12 Voltage:      +11.82 V  (min = +10.20 V, max = +13.80 V)
CPU FAN Speed:     1004 RPM  (min =  600 RPM)
CHASSIS1 FAN Speed:1061 RPM  (min =  600 RPM)
CHASSIS2 FAN Speed:1171 RPM  (min =  600 RPM)
CHASSIS3 FAN Speed:1240 RPM  (min =  600 RPM)
POWER FAN Speed:   1110 RPM  (min =  600 RPM)
CPU Temperature:    +11.0°C  (high = +60.0°C, crit = +95.0°C)  
MB Temperature:     +28.0°C  (high = +45.0°C, crit = +95.0°C)  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +35.0°C  (high = +78.0°C, crit = +100.0°C)  

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +34.0°C  (high = +78.0°C, crit = +100.0°C)  
then it should be used pwmconfig, but i have problem:

Code: Select all

# pwmconfig
# pwmconfig revision 5857 (2010-08-22)
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
I was looking for help, but found only this :
Open pwmconfig:
Code:

gedit /usr/sbin/pwmconfig

and go to line 68. Delete these three lines:
Code:

MATCH='*/fan[1-9]_pwm'
else
MATCH='*/pwm[1-9]'

and replace with:
Code:

MATCH='*/pwm[1-9]'
else
MATCH='*/fan[1-9]_pwm'

You just turned the if/else around! Now pwmconfig should work.
But mine pwmconfig looks like this :
MATCH=$device/'fan[1-9]_pwm'
device_pwm=`echo $MATCH`
fi
if [ "$MATCH" != "$device_pwm" ]
then
PWM="$PWM $device_pwm"
fi

# Find available fan monitoring inputs
MATCH=$device/'fan[1-9]_input'
device_fan=`echo $MATCH`
if [ "$MATCH" != "$device_fan" ]
then
FAN="$FAN $device_fan"
fi
done
i need help .
Mint Debian User.

ackernan
Level 1
Level 1
Posts: 18
Joined: Sun Dec 19, 2010 8:39 am

Re: Fancontrol - pwmconfig problem

Post by ackernan »

Did you ever find a solution?

Arcosanti
Level 1
Level 1
Posts: 39
Joined: Mon Jul 04, 2011 9:46 am

Re: Fancontrol - pwmconfig problem

Post by Arcosanti »

You might want to do a google search on your system to learn more about it's hardware. Also check to see if there are any specific fan drivers available for your system in Linux that is not in the mainstream kernel. My system is an old Dell and required the I8K fan driver for instance.

Post Reply

Return to “Software & Applications”