You are not logged in.

#1 2010-09-25 12:11:45

alko
Member
Registered: 2010-09-25
Posts: 15

[SOLVED]pwmconfig fails to find fan sensor on Intel D510MO motherboard

Hello there,

i can't find any info about this motherboard on wiki and google on this problem.

i've installed lm_sensors and got this running sensors:

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +19.0°C  (crit = +100.0°C)                 

coretemp-isa-0002
Adapter: ISA adapter
Core 1:      +15.0°C  (crit = +100.0°C)                 

w83627thf-isa-0290
Adapter: ISA adapter
in0:         +1.17 V  (min =  +0.00 V, max =  +3.84 V)   
in1:         +1.01 V  (min =  +2.05 V, max =  +0.00 V)   ALARM
in2:         +1.90 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
in3:         +3.02 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
in4:         +3.41 V  (min =  +0.02 V, max =  +0.00 V)   ALARM
in7:         +2.99 V  (min =  +0.27 V, max =  +0.13 V)   ALARM
in8:         +3.23 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
fan1:          0 RPM  (min = 1318 RPM, div = 32)  ALARM
fan2:          0 RPM  (min =   -1 RPM, div = 32)  ALARM
fan3:          0 RPM  (min =   -1 RPM, div = 2)  ALARM
temp1:       +48.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = thermistor
temp2:       +29.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
temp3:       +29.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
beep_enable:enabled

i've tried run pwmconfig and got this:

Found the following devices:
   hwmon0/device is coretemp
   hwmon1/device is coretemp
   hwmon2/device is w83627thf

Found the following PWM controls:
   hwmon2/device/pwm1
   hwmon2/device/pwm2
   hwmon2/device/pwm3

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon2/device/fan1_input     current speed: 0 ... skipping!
   hwmon2/device/fan2_input     current speed: 0 ... skipping!
   hwmon2/device/fan3_input     current speed: 0 ... skipping!

There are no working fan sensors, all readings are 0.
Make sure you have a 3-wire fan connected.
You may also need to increase the fan divisors.
See doc/fan-divisors for more information.


anyway i managed to control my system fan to monitor temp1 (motherboard temp) running:
echo "180" > /sys/class/hwmon/hwmon2/device/pwm1

but i need to run it as root and pass "yes" to pwmconfig first to activate manual control

so i need a bash script to run this  automatically on startup,i found this one and modified it but i need help to get pwmconfig run with "yes" before start my if...else control to launch "echo..." once temp1 reach 50 C°

this is original:

#!/bin/sh

### Temperature guard
### Auto Shutdown if Temperature is over threshold

THRESHOLD=57            # Max temperature
SENSORS=/usr/bin/sensors
PATH=/bin:/usr/bin:/sbin:/usr/sbin

test -x $SENSORS || exit 0

echo "Temperature Guard started. Threshold temperature is $THRESHOLD °C"
logger "Temperature Guard started. Threshold temperature is $THRESHOLD °C "

while [ 1 ]
do

  ## Get Temperature using lm-sensors
  t1=`$SENSORS | nawk '/temp1/ {print substr($2,2,2)}'`
  t2=`$SENSORS | nawk '/temp2/ {print substr($2,2,2)}'`
  t3=`$SENSORS | nawk '/temp3/ {print substr($2,2,2)}'`

  # log every 15 minutes
  logger "Temperature Guard RUNNING. CASE: $t1°C CPU: $t2°C BOARD: $t3°C"

  for i in `seq 1 180`;
  do

      ## Get Temperature using lm-sensors
      t1=`$SENSORS | nawk '/temp1/ {print substr($2,2,2)}'`
      t2=`$SENSORS | nawk '/temp2/ {print substr($2,2,2)}'`
      t3=`$SENSORS | nawk '/temp3/ {print substr($2,2,2)}'`

      if [ $t1 -gt $THRESHOLD -o $t2 -gt $THRESHOLD -o $t3 -gt $THRESHOLD ]
      then
    echo -n "\rTemperature PANIC! CASE: $t1°C CPU: $t2°C BOARD: $t3°C Shutting down immediately!"
    logger "Temperature Guard: PANIC!. CASE: $t1°C CPU: $t2°C BOARD: $t3°C Shutting down immediately!"
    shutdown -h now    # requires %user ALL=NOPASSWD: /sbin/shutdown in visudo
      else
    echo -n "\rTemperature Guard: OK.  CASE: $t1°C CPU: $t2°C BOARD: $t3°C"
      fi
      sleep 5
  done
done

any good person here to help me? :)

Last edited by alko (2010-09-28 19:05:33)

Offline

#2 2010-09-27 07:05:48

alko
Member
Registered: 2010-09-25
Posts: 15

Re: [SOLVED]pwmconfig fails to find fan sensor on Intel D510MO motherboard

hello there ,
here is my script:

#!/bin/sh

### controllo ventolina
### controlla in automatico la velocita' della ventolina data la temperatura


SENSORS=/usr/bin/sensors
PATH=/bin:/usr/bin:/sbin:/usr/sbin

test -x $SENSORS || exit 0

while [ 1 ]
do

  ## prende la temperatura da lm-sensors
  t1=`$SENSORS | nawk '/temp1/ {print substr($2,2,2)}'`

      if [ $t1 -gt "49" ];
        then
       echo "180" > /sys/class/hwmon/hwmon2/device/pwm1
       echo "temperatura $t1 gradi \n"
       sleep 20
      elif [ $t1 -gt "47" ];
       then
       echo "170" > /sys/class/hwmon/hwmon2/device/pwm1
       sleep 20
       echo "temperatura $t1 gradi \n"
      elif [ $t1 -gt "45" ];
       then
       echo "160" > /sys/class/hwmon/hwmon2/device/pwm1
       sleep 20
       echo "temperatura $t1 gradi \n"

fi
      
  
done

but it doesn't work without running first pwmconfig and pass yes to activate manual fan control.
so i need to run pwmconfig and pass it "yes" into the script.
how do i run it into my script with root permissions???

Offline

#3 2010-09-28 19:01:43

alko
Member
Registered: 2010-09-25
Posts: 15

Re: [SOLVED]pwmconfig fails to find fan sensor on Intel D510MO motherboard

solved

1)
install with pacman:
lm_sensors
yaourt
sudo
nawk

refer to the wiki of archlinux to install and configure this packages

2)
save this script and  add it to startup and shutdown of kde settings (i assume you are using kde,and i suggest you to install it)
(example sudo path/to/yourscript.sh)

#!/bin/sh

### controllo ventolina
### controlla in automatico la velocita' della ventolina data la temperatura


SENSORS=/usr/bin/sensors
PATH=/bin:/usr/bin:/sbin:/usr/sbin

test -x $SENSORS || exit 0

sudo sh -c "echo 1 > /sys/class/hwmon/hwmon2/device/pwm1_enable"
while [ 1 ]
do

  ## prende la temperatura da lm-sensors
  t1=`$SENSORS | nawk '/temp1/ {print substr($2,2,2)}'`

      if [ $t1 -gt "49" ];
        then
       echo "180" > /sys/class/hwmon/hwmon2/device/pwm1
       echo "temperatura $t1 gradi \n"                                      ##comment this lines if you don't want to run in console
       sleep 20
      elif [ $t1 -gt "47" ];
       then
       echo "170" > /sys/class/hwmon/hwmon2/device/pwm1
       sleep 20
       echo "temperatura $t1 gradi \n"
      elif [ $t1 -gt "45" ];
       then
       echo "157" > /sys/class/hwmon/hwmon2/device/pwm1
       sleep 20
       echo "temperatura $t1 gradi \n"

fi
      
  
done

Last edited by alko (2010-09-28 19:04:09)

Offline

Board footer

Powered by FluxBB