THINKFAN(1) | thinkfan | THINKFAN(1) |
thinkfan - A simple fan control program
thinkfan |
[-hnqDd] [-b BIAS] [-c CONFIG] [-s SECONDS] [-p [DELAY]] |
Thinkfan sets the fan speed according to temperature limits set in the config file. It can read temperatures from a number of sources:
The fan can be /proc/acpi/ibm/fan or some PWM file in /sys/class/hwmon. See thinkfan.conf(5) for a detailed explanation of the config syntax.
WARNING: This program does only very basic sanity checking on the configuration. That means that you can set your temperature limits as insane as you like.
There are two general modes of operation:
In complex mode, temperature limits are defined for each sensor thinkfan knows about. Setting suitable limits for each sensor in your system will probably require a bit of experimentation and good knowledge about your hardware, but it's the safest way of keeping each component within its specified temperature range. See http://www.thinkwiki.org/wiki/Thermal_Sensors for details on which sensor measures what temperature in a Thinkpad. On other systems you'll have to find out on your own. See the example configs to learn about the syntax.
In simple mode, Thinkfan uses only the highest temperature found in the system. That may be dangerous, e.g. for hard disks. That's why you should provide a correction value (i.e. add 10-15 °C) for the sensor that has the temperature of your hard disk (or battery...). See the example config files for details about that.
Some example configurations are provided with the source package. For a detailed see the config man page thinkfan.conf(5).
current_tmax = current_tmax + delta_t * BIAS / 10
This means that negative numbers can be used to even out short and sudden temperature spikes like those seen on some on-DIE sensors. Use DANGEROUS mode to remove the -10 to +30 limit. Note that you can't have a space between -b and a negative argument, because otherwise getopt will interpret things like -10 as an option and fail (i.e. write -b-10 instead of -b -10).
Default is 15.0
If this option is specified, thinkfan attempts to load the config only from FILE. If its name ends in “.yaml”, it must be in YAML format. Otherwise, it can be either YAML or legacy syntax. See thinkfan.conf(5) and thinkfan.conf.legacy(5) for details.
SIGINT and SIGTERM simply interrupt operation and should cause thinkfan to terminate cleanly.
SIGHUP makes thinkfan reload its config. If there's any problem with the new config, we keep the old one.
SIGUSR1 causes thinkfan to dump all currently known temperatures either to syslog, or to the console (if running with the -n option).
The thinkfan config manpage: thinkfan.conf(5) Example configs shipped with the source distribution, also available at: https://github.com/vmatare/thinkfan/tree/master/examples The Linux hwmon user interface documentation: https://www.kernel.org/doc/html/latest/hwmon/sysfs-interface.html The thinkpad_acpi interface documentation: https://www.kernel.org/doc/html/latest/admin-guide/laptops/thinkpad-acpi.html
If thinkfan tells you to, or if you feel like it, report issues at the Github issue tracker:
https://github.com/vmatare/thinkfan/issues
December 2021 | thinkfan 1.3.1 |