Difference between revisions of "Thinkpad Fan Control"

From ArchWiki
Jump to: navigation, search
m (add ja link)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=Introduction=
+
[[Category:Lenovo]]
'''From the Thinkpad Fan Control website:'''
+
[[ja:Thinkpad Fan Control]]
:''tp-fan monitors temperatures and controls fan speed of IBM/Lenovo ThinkPad notebooks. tp-fan is an open-source project released under the GPL v3.''
+
By default, the EC regulates fan speed.  If it's too conservative/loud for your taste, you might want a daemon to take over control. But this is risky: you take responsibility for temperature control.  Excessive temperatures can damage or shorten the lifespan of components in your laptop.
  
:''The tpfand daemon controls the system fan in software. It can be used to make the notebook more quiet. However this will also result in higher system temperatures that may damage and/or shorten the lifespan of the computer. Since version 0.90 fan trigger temperatures can be configured separately for each temperature sensor.''
+
From the http://www.thinkwiki.org/wiki/How_to_control_fan_speed:
  
:''This project also provides the tpfan-admin GTK+ frontend to monitor system temperature and adjust fan trigger temperatures.''
+
:''Fan control operations are disabled by default for safety reasons.  To enable fan control, the module parameter fan_control=1 must be given to thinkpad-acpi.''
  
:''Warning: This program may damage your notebook. The author does not take any responsibility for damages caused by the use of this program.''
+
Current fan control daemons available in the [[AUR]] are {{AUR|simpfand-git}} and {{AUR|thinkfan}}.
  
=Installation=
+
==Installation==
  
The [https://aur.archlinux.org/packages.php?ID=24120 tpfand daemon] can be installed from the [[AUR]].
+
Install {{AUR|thinkfan}}. Then have a look at the files:
  
Alternatively, a version that doesn't require [[HAL]] is also available from the [[AUR]]: [https://aur.archlinux.org/packages.php?ID=43592 tpfand-no-hal]
+
# pacman -Ql thinkfan
  
=Configuration=
+
Note that the thinkfan package installs /usr/lib/modprobe.d/thinkpad_acpi.conf, which contains
  
The configuration file for tpfand is found in '''/etc/tpfand.conf'''. This file can be edited to adjust the fan trigger points to suit your needs.
+
  options thinkpad_acpi fan_control=1
  
Additionally, the [https://aur.archlinux.org/packages.php?ID=24137 tpfand-profiles] package in the [[AUR]] gives the latest fan profiles for various thinkpad models.
+
So fan control is enabled by default.
  
=Running=
+
$ su
 +
# modprobe thinkpad_acpi
 +
# cat /proc/acpi/ibm/fan
  
The tpfand daemon can be started by running (as root):
+
You should see that the fan level is "auto" by default, but you can echo a level command to the same file to control the fan speed manually.  The thinkfan daemon will do this automatically.
  
/etc/rc.d/tpfand start
+
You will need to copy one of the example config files (e.g. /usr/share/doc/thinkfan/examples/thinkfan.conf.simple) to /etc/thinkfan.conf, and modify to taste.  This file specifies which sensors to read, and which interface to use to control the fan.  Some systems have /proc/acpi/ibm/fan available; on others, you will need to specify something like
  
or by adding tpfand to the DAEMONS line in your rc.conf:
+
hwmon /sys/devices/virtual/thermal/thermal_zone0/temp
  
DAEMONS=(syslog-ng hal ... '''tpfand''')
+
to use generic hwmon sensors instead of thinkpad-specific ones.
  
=tpfan-admin=
+
==Running==
  
An additional GTK+ frontend is provided in the [https://aur.archlinux.org/packages.php?ID=24121 tpfan-admin] package in the [[AUR]] which enables the monitoring of temperatures as well as the graphical adjustment of trigger points.
+
You can test your configuration first by running thinkfan manually (as root):
  
 +
# thinkfan -n
  
[[Category:Laptops]]
+
and see how it reacts to the load level of whatever other programs you have running.
 +
 
 +
When you have it configured correctly, the thinkfan daemon can be started by running (as root):
 +
 
 +
# systemctl start thinkfan
 +
 
 +
or by automatically loading it on system startup:
 +
 
 +
# systemctl enable thinkfan
 +
 
 +
==Old packages which have gone missing==
 +
 
 +
{{AUR|tpfand}}{{Broken package link|{{aur-mirror|tpfand}}}} and a version that doesn't require [[HAL]] {{AUR|tpfand-no-hal}}{{Broken package link|{{aur-mirror|tpfand-no-hal}}}} are not actively developed anymore, and no longer available.  An additional GTK+ frontend was provided in the {{AUR|tpfan-admin}}{{Broken package link|{{aur-mirror|tpfan-admin}}}} package in the [[AUR]] which enables the monitoring of temperatures as well as the graphical adjustment of trigger points.
 +
 
 +
Due to tpfand not beeing actively developed anymore, there was a fork called tpfanco (which in fact uses the same names for the executables as tpfand): {{AUR|tpfanco-svn}}{{Broken package link|{{aur-mirror|tpfanco-svn}}}}.
 +
 
 +
The configuration file for tpfand (same for tpfanco) was {{ic|/etc/tpfand.conf}}.
 +
 
 +
Additionally, the {{AUR|tpfand-profiles}}{{Broken package link|{{aur-mirror|tpfand-profiles}}}} package in the [[AUR]] provided the latest fan profiles for various thinkpad models.

Latest revision as of 12:02, 9 October 2016

By default, the EC regulates fan speed. If it's too conservative/loud for your taste, you might want a daemon to take over control. But this is risky: you take responsibility for temperature control. Excessive temperatures can damage or shorten the lifespan of components in your laptop.

From the http://www.thinkwiki.org/wiki/How_to_control_fan_speed:

Fan control operations are disabled by default for safety reasons. To enable fan control, the module parameter fan_control=1 must be given to thinkpad-acpi.

Current fan control daemons available in the AUR are simpfand-gitAUR and thinkfanAUR.

Installation

Install thinkfanAUR. Then have a look at the files:

# pacman -Ql thinkfan

Note that the thinkfan package installs /usr/lib/modprobe.d/thinkpad_acpi.conf, which contains

options thinkpad_acpi fan_control=1

So fan control is enabled by default.

$ su
# modprobe thinkpad_acpi
# cat /proc/acpi/ibm/fan

You should see that the fan level is "auto" by default, but you can echo a level command to the same file to control the fan speed manually. The thinkfan daemon will do this automatically.

You will need to copy one of the example config files (e.g. /usr/share/doc/thinkfan/examples/thinkfan.conf.simple) to /etc/thinkfan.conf, and modify to taste. This file specifies which sensors to read, and which interface to use to control the fan. Some systems have /proc/acpi/ibm/fan available; on others, you will need to specify something like

hwmon /sys/devices/virtual/thermal/thermal_zone0/temp

to use generic hwmon sensors instead of thinkpad-specific ones.

Running

You can test your configuration first by running thinkfan manually (as root):

# thinkfan -n

and see how it reacts to the load level of whatever other programs you have running.

When you have it configured correctly, the thinkfan daemon can be started by running (as root):

# systemctl start thinkfan

or by automatically loading it on system startup:

# systemctl enable thinkfan

Old packages which have gone missing

tpfandAUR[broken link: archived in aur-mirror] and a version that doesn't require HAL tpfand-no-halAUR[broken link: archived in aur-mirror] are not actively developed anymore, and no longer available. An additional GTK+ frontend was provided in the tpfan-adminAUR[broken link: archived in aur-mirror] package in the AUR which enables the monitoring of temperatures as well as the graphical adjustment of trigger points.

Due to tpfand not beeing actively developed anymore, there was a fork called tpfanco (which in fact uses the same names for the executables as tpfand): tpfanco-svnAUR[broken link: archived in aur-mirror].

The configuration file for tpfand (same for tpfanco) was /etc/tpfand.conf.

Additionally, the tpfand-profilesAUR[broken link: archived in aur-mirror] package in the AUR provided the latest fan profiles for various thinkpad models.