Thinkpad fan configuration in Ubuntu

Source: Internet
Author: User
It is very easy to install thinkfanthinkfan. It reads the (FAN_LEVEL, LOWER_LIMIT, UPPER_LIMIT) triple in the configuration file (/etc/thinkfan. conf) to control the fan speed level by using the upper and lower temperature limits. The underlying layer requires support from the thinkpad_acpi kernel module. The kernel module uses the procfs node/proc/acpi/ibm/fan to provide users with fan control methods.

Install thinkfan

Thinkfan is easy to configure. It reads (FAN_LEVEL, LOWER_LIMIT, UPPER_LIMIT) from the configuration file (/etc/thinkfan. conf)
Triples are used to control the fan speed level by the upper and lower temperature limits. The underlying layer requires support from the thinkpad_acpi kernel module,
The kernel module uses the procfs node/proc/acpi/ibm/fan to provide users with fan control methods.

Turn on the thingkpad_acpi fan control
First, enable the fan control support of thinpad_acpi. The specific method is to pass
Variable for enabling the fan control. The procedure is as follows:

Modprobe thinkpad_acpi fan_control = 1 experimental = 1

To achieve the boot module loading settings, you need to add a configuration file thinkpad-acpi.conf under/etc/modprobe. d/, content:

Options thinkpad_acpi experimental = 1 fan_control = 1

Install thinkfan
Install thinkfan and sysfsutils In the Ubuntu software repository (read and set sysfs attributes ).

Aptitude install thinkfan sysfsutils

Thinkfan adds the background services of thinkfan to the system running level, so that thinkfan can be started.

Configure and activate thinkfan
Read/etc/thinkfan. conf to know that it controls the fan through the fan control interface provided by thinkpad_acpi,
It maps the fan's speed level to an upper and lower temperature. [Linux community www.Linuxidc.com] sets the corresponding speed within the upper and lower limits.

Thinkfan does not take effect directly after installation. After reading the/etc/init. d/thinkfan script, you need to set/etc/default/thinkfan.
START = yes in the file.

Here, the thinkpad fan control should be enabled.

Fan control interface for thinkpad_acpi
Ubuntu has rich support for Thinkpad ACPI drivers, which provide information about almost all the hot components on the computer.

Run cd/proc/acpi/ibm/in Shell to enter the directory. The file contains the current information of acpi, including whether the indicator lights are on, the status of the shortcut keys, and whether the peripherals are connected. You can use cat [parm]> filename to write data directly into the file, which affects the computer. Thermal is used to display the temperature. Run cat thermal. The result is as follows:

Temperatures: 48 39 39 43 28-128 24-128 39 40-128-128-128-128-128-128

The results here are related to the Thinkpad model. The temperature of each part is different. You can find the data on thinkwiki. All of them were tested by netizens without official materials. It is determined that the first generally is the CPU temperature. -128 (the minimum value of a single-byte signed integer) indicates that the temperature cannot be read. For example, some read the battery temperature but the battery is not installed at this time, and some read the Ultrabay extended base temperature.

Okay. The next step is the fan problem. Running cat fan in the same directory will display the current fan Status:

Status: enabled

Speed: 3344

Level: 1

Commands: level ( Is 0-7, auto, disengaged, full-speed)

Commands: enable, disable

Commands: watchdog ( Is 0 (off), 1-120 (seconds ))

The speed unit is rpm, and level indicates the speed level. 0 indicates no conversion. 7 indicates the highest speed.

With these two information, the fan speed is controlled based on the temperature. Thinkfan control software, configuration file in/etc/thinkfan. conf

My X200 configuration is as follows:

Sensor/proc/acpi/ibm/thermal (0, 3, 3, 2, 10, 0, 10, 0, 2, 2)

(0, 0, 45)

(1, 45, 48)

(2, 48, 55)

(3, 55, 58)

(4, 58, 60)

(5, 60, 63)

(6, 63, 65)

(7, 65,327 67)

The first line indicates the correction of the temperature value. Because thinkfan controls the Fan Based on the read maximum temperature. The temperature and endurance of components are inconsistent. For example, the CPU can work normally at 80 degrees, and the hard disk will crash at this time. Therefore, the temperature value to be read must be corrected. The numbers in the brackets are directly added to the corresponding thermal numbers. Then, the maximum temperature value has been corrected for control.

The following configuration format is (level, min, max), indicating that the fan level is started when the temperature is between min and max. Among them, 0 and 7 must be configured, and the intervals of each level must be combined completely, otherwise it will expire at a specific temperature. The value 0 starts from 0, indicating that the fan is disabled when the max temperature is below, while the value 7 is generally set to the top value, indicating that the fan runs at full speed when the min temperature is above.

Finally, run the sudo thinkfan command to start the control software. Control the temperature at will to extend the life of the fan.

According to the actual situation, after reaching the upper limit of 0, a slight level 1 fan will be started. If it is only online at this time, the temperature will immediately drop and the fan will stop. If you are playing a game or a large application, the temperature will go up slowly, and then according to the configuration, the fan level will gradually increase until the highest level.

Note:

1. The temperature would rather be conservative than set high because the fan is noisy. The heat dissipation problem is the first killer of the notebook.

2. This control software sometimes fails, and the fan keeps turning or does not turn. The previous situation does not matter, and the latter is more dangerous. If it is detected that the computer is very hot and the fan is not dynamic, check whether there is a problem with the control. Generally, restart the instance.

Related Article

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.