Re: fan control based on hard-drive temperatures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 04, 2010 at 10:25:53AM -0400, Jelle de Jong wrote:
> Hello everybody,
> 
> I switched my motherboard from an Asus M4A78 PRO with ATK0110 and
> IT8721F to a Gigabyte GA-890GPA-UD3H with an iTE IT8720. This way I was
> able to control my PWM outputs needed for fan control. (see topic in
> mail archive)
> 
> I want to be able to control one of the PWM outputs based on the average
> output of the temperature of my hard drives.
> 
> I setup /etc/fancontrol but it only looks at temperatures from the
> motherboard witch is kind of useless for me.
> 
> I do not want to use some custom system to directly set the PWM. I can
> life with a shell script that the fancontrol program can use. Is this
> possible and how, and if not,  would somebody be willing to make this?
> 
It might be possible to trick fancontrol into using temperature output
from a regular file, though I am not sure. Others may know better.

If that works, you could write a little script to run in the background 
which keeps reading temperature values from the hard drives and writes
the average (or maybe better max ?) into that file, where fancontrol
would pick it up from there.

Something along the line of

while true
do
	m=0
	for a in `hddtemp -n /dev/sd[a-z]`
	do
		if [ $a -gt $m ]; then
			m=$a
		fi
	done
	echo $m > /tmp/mymaxtemp
	sleep 10
done

and 

FCTEMPS=hwmon0/device/pwm2=/tmp/mymaxtemp hwmon0/device/pwm1=hwmon0/device/temp2_input

Guenter

> Thanks in advance,
> 
> With kind regards,
> 
> Jelle de Jong

> # cat /etc/fancontrol
> # Configuration file generated by pwmconfig, changes will be lost
> INTERVAL=10
> DEVPATH=hwmon0=devices/platform/it87.552
> DEVNAME=hwmon0=it8720
> FCTEMPS=hwmon0/device/pwm2=hwmon0/device/temp3_input hwmon0/device/pwm1=hwmon0/device/temp2_input
> FCFANS=hwmon0/device/pwm2=hwmon0/device/fan2_input hwmon0/device/pwm1=hwmon0/device/fan1_input
> MINTEMP=hwmon0/device/pwm2=41 hwmon0/device/pwm1=35
> MAXTEMP=hwmon0/device/pwm2=45 hwmon0/device/pwm1=55
> MINSTART=hwmon0/device/pwm2=58 hwmon0/device/pwm1=70
> MINSTOP=hwmon0/device/pwm2=58 hwmon0/device/pwm1=66
> 
> # sensors
> it8720-isa-0228
> Adapter: ISA adapter
> in0:         +0.99 V  (min =  +0.00 V, max =  +4.08 V)
> in1:         +1.50 V  (min =  +0.00 V, max =  +4.08 V)
> in2:         +3.30 V  (min =  +0.00 V, max =  +4.08 V)
> in3:         +2.88 V  (min =  +0.00 V, max =  +4.08 V)
> in4:         +3.12 V  (min =  +0.00 V, max =  +4.08 V)
> in5:         +1.82 V  (min =  +0.00 V, max =  +4.08 V)
> in6:         +4.08 V  (min =  +0.00 V, max =  +4.08 V)
> in7:         +2.13 V  (min =  +0.00 V, max =  +4.08 V)
> Vbat:        +3.25 V
> fan1:        986 RPM  (min =    0 RPM)
> fan2:       1626 RPM  (min =    0 RPM)
> fan3:          0 RPM  (min =    0 RPM)
> fan5:          0 RPM  (min =    0 RPM)
> temp1:       +45.0 C  (low  = +127.0 C, high = +127.0 C)  sensor = thermistor
> temp2:       +36.0 C  (low  = +127.0 C, high = +127.0 C)  sensor = thermal diode
> temp3:       +43.0 C  (low  = +127.0 C, high = +127.0 C)  sensor = thermistor
> cpu0_vid:   +0.513 V
> 
> # hddtemp /dev/sd[abcdefghijklmnop]
> /dev/sda: WDC WD10EARS-00Y5B1: 46 C
> /dev/sdb: SAMSUNG HD501LJ: 42 C
> /dev/sdc: WDC WD10EARS-00Y5B1: 44 C
> /dev/sdd: SAMSUNG HD103UJ: drive is sleeping
> /dev/sde: SAMSUNG HD103UJ: drive is sleeping
> /dev/sdf: ST3500630AS: 50 C
> /dev/sdg: Hitachi HDT725032VLA360: 45 C
> /dev/sdh: WDC WD5000AAKS-00V1A0: 40 C
> /dev/sdi: WDC WD10EARS-00Y5B1: 48 C
> /dev/sdj: SAMSUNG HD501LJ: 44 C
> /dev/sdk: WDC WD10EARS-00Y5B1: 47 C
> /dev/sdl: SAMSUNG HD103UJ: drive is sleeping
> /dev/sdm: SAMSUNG HD103UJ: drive is sleeping
> /dev/sdn: ST3500418AS: 40 C
> /dev/sdo: Maxtor 6V320F0: 46 C
> /dev/sdp: WDC WD5000AAKS-65YGA0: 42 C

> _______________________________________________
> lm-sensors mailing list
> lm-sensors@xxxxxxxxxxxxxx
> http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux