From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] fan control based on hard-drive temperatures
Date: Sun, 04 Jul 2010 15:51:03 +0000 [thread overview]
Message-ID: <20100704155103.GA22450@ericsson.com> (raw)
In-Reply-To: <4C3099F1.5030703@powercraft.nl>
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\x10
> DEVPATH=hwmon0Þvices/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/pwm2A hwmon0/device/pwm15
> MAXTEMP=hwmon0/device/pwm2E hwmon0/device/pwm1U
> MINSTART=hwmon0/device/pwm2X hwmon0/device/pwm1p
> MINSTOP=hwmon0/device/pwm2X hwmon0/device/pwm1f
>
> # 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@lm-sensors.org
> http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2010-07-04 15:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-04 14:25 [lm-sensors] fan control based on hard-drive temperatures Jelle de Jong
2010-07-04 15:51 ` Guenter Roeck [this message]
2010-07-04 20:47 ` Jelle de Jong
2010-07-04 21:26 ` Guenter Roeck
2010-07-05 6:45 ` Jelle de Jong
2010-07-05 15:06 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100704155103.GA22450@ericsson.com \
--to=guenter.roeck@ericsson.com \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.