lm-sensors permet par la commande de sensors-detect de trouver les capteurs de température présents sur votre carte mère ou votre CPU. Une fois les capteurs détectés, la commande sensors permettra de les consulter facilement.
lm-sensors est disponible dans les dépôts principaux, il s'installe donc facilement:
apt-get update && apt-get install lm-sensors
Il suffit de lancer la détection des capteurs avec:
sensors-detect
La commande se déroule, il suffit de répondre yes à chaque question afin de découvrir tous les capteurs disponibles:
This program will help you determine which kernel modules you need to load to use lm_sensors most effectively. It is generally safe and recommended to accept the default answers to all questions, unless you know what you re doing. Some south bridges, CPUs or memory controllers contain embedded sensors. Do you want to scan for them? This is totally safe. (YES/no): yes Silicon Integrated Systems SIS5595... No VIA VT82C686 Integrated Sensors... No VIA VT8231 Integrated Sensors... No AMD K8 thermal sensors... No AMD Family 10h thermal sensors... No AMD Family 11h thermal sensors... No AMD Family 12h and 14h thermal sensors... No AMD Family 15h thermal sensors... No AMD Family 15h power sensors... No AMD Family 16h power sensors... No Intel digital thermal sensor... Success! (driver `coretemp) Intel AMB FB-DIMM thermal sensor... No VIA C7 thermal sensor... No VIA Nano thermal sensor... No Some Super I/O chips contain embedded sensors. We have to write to standard I/O ports to probe them. This is usually safe. Do you want to scan for Super I/O sensors? (YES/no): yes
Une fois la configuration terminée, on peut accéder aux capteurs avec la commande:
sensors
Pour un résultat qui ressemble à ça:
coretemp-isa-0000 Adapter: ISA adapter Core 0: +28.0°C (high = +82.0°C, crit = +100.0°C) #Températures de chaque coeur de mon processeur quadcore Core 1: +31.0°C (high = +82.0°C, crit = +100.0°C) Core 2: +26.0°C (high = +82.0°C, crit = +100.0°C) Core 3: +32.0°C (high = +82.0°C, crit = +100.0°C) it8718-isa-0290 Adapter: ISA adapter in0: +1.12 V (min = +0.00 V, max = +4.08 V) in1: +1.90 V (min = +0.00 V, max = +4.08 V) in2: +3.34 V (min = +0.00 V, max = +4.08 V) +5V: +2.96 V (min = +0.00 V, max = +4.08 V) in4: +0.22 V (min = +0.00 V, max = +4.08 V) in5: +0.03 V (min = +0.00 V, max = +4.08 V) in6: +0.10 V (min = +0.00 V, max = +4.08 V) in7: +3.04 V (min = +0.00 V, max = +4.08 V) Vbat: +3.26 V fan1: 854 RPM (min = 0 RPM) # Vitesse de rotation de mon unique ventilateur fan2: 0 RPM (min = 0 RPM) fan3: 0 RPM (min = 0 RPM) fan4: 0 RPM (min = 0 RPM) temp1: +38.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor temp2: +20.0°C (low = +127.0°C, high = +127.0°C) sensor = thermal diode temp3: -2.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor intrusion0: ALARM radeon-pci-0100 Adapter: PCI adapter temp1: +40.0°C (crit = +120.0°C, hyst = +90.0°C) # Température de ma carte graphique
A noter qu'il existe des interfaces pour garder un oeil sur la température comme psensor:
apt-get install psensor
et pour la lancer:
psensor