software fan control
Hi,
I have just built a mini-itx box with a jetway J7F4 motherboard. It's
great, apart from the fan is a bit noisier than I had hoped - I bought
it hoping that it would be quiet enough to leave switched on all the
time in my living room, but it isn't. I've thought of just disconnecting
the fan, as it seems to run fairly cool even with the CPU at full load -
around 35 deg C, but I would rather not do this unless there's no
alternative.
Is there a way of telling the kernel to leave the fan switched off
unless the CPU temp goes above a certain value, say 50 deg C? I had a
look through /sys and found this directory:
/sys/class/thermal/thermal_zone0
total 0
lrwxrwxrwx 1 root root 0 2009-08-14 21:17 cdev0 -> ../cooling_device1
-r--r--r-- 1 root root 4096 2009-08-14 21:17 cdev0_trip_point
lrwxrwxrwx 1 root root 0 2009-08-14 21:17 cdev1 -> ../cooling_device0
-r--r--r-- 1 root root 4096 2009-08-14 21:17 cdev1_trip_point
lrwxrwxrwx 1 root root 0 2009-08-14 20:56 device ->
../../../devices/LNXSYSTM:00/LNXTHERM:00/LNXTHERM:01
-rw-r--r-- 1 root root 4096 2009-08-14 21:17 mode
drwxr-xr-x 2 root root 0 2009-08-14 21:16 power
lrwxrwxrwx 1 root root 0 2009-08-14 20:56 subsystem -> ../../thermal
-r--r--r-- 1 root root 4096 2009-08-14 21:17 temp
-r--r--r-- 1 root root 4096 2009-08-14 21:17 trip_point_0_temp
-r--r--r-- 1 root root 4096 2009-08-14 21:17 trip_point_0_type
-r--r--r-- 1 root root 4096 2009-08-14 21:17 trip_point_1_temp
-r--r--r-- 1 root root 4096 2009-08-14 21:17 trip_point_1_type
-r--r--r-- 1 root root 4096 2009-08-14 21:17 trip_point_2_temp
-r--r--r-- 1 root root 4096 2009-08-14 21:17 trip_point_2_type
-r--r--r-- 1 root root 4096 2009-08-14 21:16 type
-rw-r--r-- 1 root root 4096 2009-08-14 20:55 uevent
There are also directories cooling_device0 and cooling_device1, both of
which contain the files 'type' (FAN), and 'cur_state' (1 for device 0, 0
for device 1). I only have 1 fan connected, so I assume cooling_device0
is the fan.
Any suggestions as to where I should go from here?
thanks,
andy
Reply to: