[patch] fancontrol.pl support for multiple inputs

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

 



Hi,

Back in version 2.10.7 there was a perl implementation of fancontrol,
this seams to have disappeared in version 3. Anyway I have made a
number of changes which can be summarised to:

Modified to work on the average of multiple inputs. Which enables
control of one fan using multiple temperature sensors as input. Ex. as
found on Intels multicore CPUs which has a sensor per core and usually
one fan.
 CONFIGFILE Ex:
   FCTEMPS=hwmon0/device/pwm1=hwmon1/device/temp1_input +
hwmon2/device/temp1_input

Changed how multiple fans are configured. Max one pwm per option (ex.
FCTEMPS) but multiple options of same type per file.
Added configuration file checks.
FCFANS are now optional, so fans with no rpm readout are not boosted
to MINSTART in each interval when they should be running.
Added removed of pid file on exit/stop.
Added creation of log file directory and redirected all logging to log
file in daemon mode.

Added support for reading temperature from a program. Program must
output an integer value on stdout.
 CONFIGFILE Ex:
  FCTEMPS=hwmon0/device/pwm1=script:/usr/sbin/nvidia_gpu0_coretemp +
hwmon2/device/temp1_input

Added support for reading temperature from a file. File must contain
an integer value on the first line.
 CONFIGFILE Ex:
  FCTEMPS=hwmon0/device/pwm1=file:/tmp/nvidia_gpu0_coretemp +
hwmon2/device/temp1_input

If this sounds interesting a full description can be found at
http://www.sluge.dk/egroupware/index.php?menuaction=wiki.uiwiki.view&lang=en&page=linux_lmsensors

A patch to 2.10.7 and the full script is attached

regards
Sonni
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fancontrol.pl-2.10.7-multiinput_r216.patch
Type: application/octet-stream
Size: 12811 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20090327/3848ba57/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fancontrol_r216.pl
Type: text/x-perl
Size: 14363 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20090327/3848ba57/attachment-0001.bin 


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

  Powered by Linux