Control the Thinkpad fan in Linux

Source: Internet
Author: User
In Linux, the fan used to control Thinkpad-general Linux technology-Linux programming and kernel information. The following is a detailed description. I believe that people who have used Thinkpad for a period of time know that Tp4xFanControl runs on Windows systems. It is a green software that can set the temperature at which Thinkpad fans rotate and stop, it also controls the degrees at which the fan rotates or stops, and the speed at which the fan rotates. Since T4x, Thinkpad fans have basically not stopped once turned. Although the sound is small, it is still annoying to listen, so Tp4xFanControl does not know how many black friends it has helped.

Is there any similar program in Linux? Of course, tpfancontrol is transplanted from Linux to Windows. The following describes how to set the fan rotation in Linux and how to enable tp-fancontrol to run automatically at startup. You can find the programs involved in this article on Thinkwiki. In addition, if your Linux kernel version is earlier than 2.6.20-rc2, you need to install an ibm-acpi patch.

1. First download tp-fancontrol, the downloaded file name is index. php, and then change its permissions:

Chmod a + x index. php
2. Copy to/usr/bin.
Cp index. php/usr/bin/tp-fancontrol
Note that the file name must be tp-fancontrol.
3. Download the daemon script to start Automatic startup. You also need to change the permission to executable:

Chmod a + x index. php
4. Copy to/etc/init. d.

Cp index. php/etc/init. d/tp-fancontrol
5. Specify permissions for the Startup Program. For Ubuntu users, use:

Update-rc.d tp-fancontrol defaults

Other distros commands are not clear, but you can set the symbolic link to achieve the same effect:

Ln-s/etc/init. d/tp-fancontrol/etc/rcx. d/S20tp-fancontrol

X = 2, 3, 4, 5
Ln-s/etc/init. d/tp-fancontrol/etc/rcx. d/K20tp-fancontrol
X = 0, 1, 6

In this way, even if the settings are completed, the tp-fancontrol will automatically run at startup, but our settings are not over yet, because you can also set the threshold value in the/usr/bin/tp-fancontrol file and the fan speed. In the threshold variable, you can set the temperature for each part in the Thinkpad. The detailed description is provided.

If you need to know how it works, refer to the following links:

How to control fan speed
ACPI fan control scrip
Patch for controlling fan speed (see kernels earlier than 2.6.20-rc2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.