Thinkfan contrôler le ventilateur des Thinkpad

Contrôler le ventilateur des thinkpad.

Plusieurs méthodes.

Tester ce qui marche pour vous en fonction de votre distribution.

Danger ! Surveillez vos températures, sinon vous risquez de griller votre machine !!

En anglais

These scripts rely on undocumented hardware features and override nominal hardware behavior. They may thus cause arbitrary damage to your laptop or data. Watch your temperatures!


Cet article est une compilation de ce qui existe sur le sujet.

Il est la plupart du temps en anglais, car je n'ai pas le temps de traduire. Ce n'est pas très utile vu le faible nombre de personnes intéressées. Celles qui le sont fréquentent les forums et l'anglais ne leur est en principe pas inconnu.


Il existe plusieurs programmmes au

nom similaire : tpfan, tp-fan, tpfand (tpfand.conf), thinkfan tpfanco

ou non fanctrld.

Peu ont une interface graphique, il faudra les lancer en console. Il faudra parfois aussi créer leur fichier de configuratin en fonction du but recherché exmple tpfand.conf.


This is a Linux ACPI driver for the ThinkPad laptops. It is included with the Linux kernel.

It aims to support various features of these laptops which are accessible through the ACPI framework but not otherwise supported by the generic Linux ACPI drivers.

As a kernel module, thinkpad-acpi works as a bridge to deliver information about certain hardware events like key presses or control the state of certain hardware features by software.



Dispo dans les dépôts jusqu'à Ubuntu 9.04 !! Ensuite ce message d'erreur: Impossible de récupérer 404 Not Found

ma solution

Modifier et mettre jaunty à la place de lucid en ppa.

Une fois la liste des paquets rechargée, tpfand et tpfan-admin apparaissent.

Sélectionner les paquets pour installation = tout ceci apparaît, il s'agit des dépendances qui seront installées en même temps.

install libgnomecups1.0-1; libgnomeprint2.2-0; libgnomeprint2.2-data; libgnomeprintui2.2-0; libgnomeprintui2.2-common
python-bugbuddy; python-evince; python-evolution; python-gnome2-desktop; python-gnomeprint, python-gtop; python-mediaprofiles, python-metacity;

python-totem-plparser, tpfan-admin; tpfand-profiles

ubuntuforums _ p=9835540

atomic777 nous apprend que cela marche pour 10.10 ….

Python 2.5 installé (par défaut 2.6 ds Ub 10.04)

tp-fan Liens


Thinkwiki_ How_to_control_fan_speed


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.


There is an distro independent daemon (, written in python. Packages are available for debian based linux systems.

Information tirée de ce site Tinkwiki _ How_to_control_fan_speed

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.

This project also provides the tpfan-admin GTK+ frontend to monitor system temperature and adjust fan trigger temperatures.


Due to tpfand not beeing actively developed anymore, there's a fork called tpfanco (which in fact uses the same names for the executables as tpfand): tpfanco-svn. It may be used as a complete replacement for tpfand.

This software works only on ThinkPad models supported by the thinkpad_acpi kernel module. In particular, SL series and IdeaPads are not supported!

Tpfanco is based on tp-fan by Sebastian Urban. When it became clear, that tp-fan is not likely to receive any further updates (last version was released in 2009), we decided to fork it and give our project the name Tpfanco (acronym for ThinkPad Fan Control).


To install simply download 3 deb packages from the project's front page: tpfand, tpfan-admin and tpfan-profiles.

Ci dessus, j'ai proposé une méthode avec ppa qui donne accès à ces trois paquets dans synaptic
L'installation depuis les dépôts ou en ligne de commande du paquet tpfand entraîne automatiquement celle des deux autres paquets !
  • First install tpfand,
  • then tpfan-profiles and
  • finally tpfan-admin.

Reboot your system. Now open tpfan-admin and click Unlock. Select Control system fan by software. If there's no profile for your Thinkpad you will have to configure fan speeds by hand.

Faq extrait

Tpfanco is acting weird

What can I do?

If tpfanco is acting weird on your Thinkpad and you are sure that this is not because you configured it wrong, you might try to run tpfand in debug mode. While running in debug mode tpfand will provide a lot of additional information that might help you to understand what's going wrong. To activate the debug mode, you must first stop tpfand daemon and then run tpfand by hand with “–debug” option

   sudo /etc/init.d/tpfand stop
   sudo /usr/sbin/tpfand --debug

To return to the normal operating mode, press Ctrl-C and run

   sudo /etc/init.d/tpfand start

Why do I have to restart my system after installing tp-fan packages?

Most Thinkpads running Ubuntu usually have the thinkpad_acpi module loaded by default.

In order to be able to control the fan, tpfand requires that this module is loaded with a special parameter “fan_control=1”.

To achieve this, tpfand creates a file /etc/modprobe.d/tpfand.conf with the following content

   options thinkpad_acpi fan_control=1

Thus, next time thinkpad_acpi module will be loaded, it will automatically have the necessary parameter.

Older tp-fan installers

They used to unload the module and then load it again via

   modprobe -r thinkpad_acpi
   modprobe thinkpad_acpi

In this case the module gets reloaded with the correct parameter and tpfand can start working without reboot.

The bad thing about this behavior is that if for some reason the modprobe -r fails, the whole tpfand installation will ultimately fail too.

In particular, certain Ubuntu flavours (e.g. Xubuntu) don't allow to unload thinkpad_acpi claiming that the module is in use. That's why the new installer will not attempt to reload the module but just ask the user to reboot.

Les scripts

Ci dessous la table des matières de la documentation thinkwiki Fan_control_scripts

    1 Variable speed control scripts
        1.1 Comprehensive bash script with fine control over fan speed
            1.1.1 init script for the comprehensive script
        1.2 Simple bash script with fine control over fan speed (requires kernel patch)
        1.3 tp-fan: Automatic daemon with GTK+ GUI
        1.4 thinkfan: A minimalist fan control program
    2 Fan enable/disable scripts
        2.1 sh script example
        2.2 sh script with more features
        2.3 sh script with extra safety functionality
    3 Init scripts
        3.1 Init script example
        3.2 Init script example for gentoo
        3.3 Init script example for rh/fedora
    4 Other
        4.1 tpfand
        4.2 fanctrld
        4.3 ThinkPad Fan Control GTK GUI tool
    5 Ideas for improvement
    6 See also


fanctrld is a daemon (written in C) that controls the Thinkpad's fan.

The basic approach is to monitor both temperature and fan speed. The fan is enabled when a certain temperature is exceeded, and disabled when the BIOS slows down the fan below a certain speed.


« T43 under Fedora Core 4 | Main | How to restart a printer » T 43 fan control daemon

As I mentioned earlier, one of the more annoying properties of the Thinkpad T43 is that its fan is running almost constantly, even whe the device is basically cold.

This daemon controls the fan: When a certain temperature is exceeded, the fan is turned on. When fan speed drops below a certain threshold, it's turned off. The daemon tries to be safe by turning on the fan when it is killed or otherwise encounters an error. If that doesn't happen, there's an emergency broadcast through syslog.

What the daemon actually does is to go through *all* the values in /proc/acpi/ibm/thermal and take the highest temperature there.

thinkfan: A minimalist fan control program

Pour les distrib autres qu' Ubuntu ou debian !



Vous devrez sans doute compiler, il existe plus simple dans cet article.

Debian has it in the repositories, so if you're using Debian or Ubuntu, you should install it from your regular package manager.

Written in C to use as little CPU power as possible.

Configuration is done via a simple text file, by providing (FAN_LEVEL, LOWER_LIMIT, UPPER_LIMIT) tuples.

Inspired by i8kfan. Requires thinkpad_acpi with fan_control=1. Just released version 0.7, which now allows a more fine-grained control over temperature limits.


tpfand et les T 400

Pour accélérer le ventilateur quand on joue.

This little piece of python code is only there to speed up your fan in a T400 with an ATI card cause the fglrx driver does not control the fan speed which leads to overheating while gaming or do other graphic stuff with the ati chip.

This script relies on the normal bios control of the fan.

If the laptop gets to hot, it will speed up the fan to max speed (somehow the bios does not do this ??!!) and re-enables the bios control on a certain temperature.

This was only tested on a T400 with ATI chip.

ThinkPad Fan Control GTK GUI tool

     sudo apt-get install tpfand tpfan-admin tpfand-profiles
Un des auteurs de la doc conseille d'installer ces paquets dans un ordre précis, ce que n'autorise pas la commande ci-dessus !

I don't think there are yet profiles for those newer thinkpad models, but it's fairly easy to manually configure the right thresholds.

tpfand.conf pour le X 200

For reference, this is the /etc/tpfand.conf I use for my X200:

enabled = True

override_profile = True

0. Sensor 0 = 0:0 50:3 58:5 67:8

1. Sensor 1 = 0:0 55:3 62:5 69:8

2. Sensor 2 = 0:255

3. Sensor 3 = 0:0 48:3 61:5 69:8

4. Sensor 4 = 0:0 43:3 50:8

5. Sensor 5 = 0:255

6. Sensor 6 = 0:0 40:8

7. Sensor 7 = 0:255 

Variable speed control scripts

The following scripts sets the fan speed according to the system's thermal sensors.

Voir ces scripts sur cette page

In addition, they include a hack for preventing the annoying fan pulsing that occurs on some systems.

Note that the fan levels, thresholds and anti-pulsing hacks are system-specific, so you may need to adjust them.


Bugs Launchpad


Ces bugs n'nt pas forcément été résolus. Voici des pistes proposées par des contributeurs.


Now get:

  # /etc/init.d/tpfand start

Starting ThinkPad fan control daemon tpfand Traceback (most recent call last):

File "/usr/sbin/tpfand", line 21, in <module>
    import tpfand.control
ImportError: No module named tpfand.control

The “ImportError” is a result of Python 2.6 changing the behavior of site-packages:



As a work around I moved the tpfan directories up to the python2.6 directory.


Latest versions of module-init-tools (3.12 on my system) give a warning if files without extension .conf exists in /etc/modprobe.d:

All config files need .conf: /etc/modprobe.d/thinkpad_acpi.modprobe it will be ignored in a future release.

So you should rename thinkpad_acpi.modprobe to /thinkpad_acpi.conf.

le_ventilateur_des_thinkpad.txt · Dernière modification: 2021/03/21 11:14 (modification externe)
GNU Free Documentation License 1.3
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5