Para configurar lm_sensors debemos saber que módulos precisamos activar en el kernel. Para ello haremos uso de la utilidad sensors-detect del paquete lm_sensors. Al ejecutarlo, nos ira preguntando si queremos, o no, buscar el chip que se encarga de la monitorización de de cada componente de nuestro PC. Y finalmente se nos mostrará un resumen donde se detallarán los drivers que precisamos compilar en el kernel.
Pego un ejemplo de sensors-detect, ejecutado en mi máquina:
root@agd-desktop:~ agd-desktop # sensors-detect
# sensors-detect revision 5861 (2010-09-21 17:21:05 +0200)
# System: Gigabyte Technology Co., Ltd. EX58-UD3R
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): y
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
Intel Core family thermal sensor... Success!
(driver `coretemp')
Intel Atom thermal sensor... No
Intel AMB FB-DIMM thermal sensor... No
VIA C7 thermal sensor... No
VIA Nano thermal sensor... No
[+/-] Ver todo
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): y
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Nuvoton/Fintek'... No
Trying family `ITE'... Yes
Found `ITE IT8720F Super IO Sensors' Success!
(address 0x290, driver `it87')
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Nuvoton/Fintek'... No
Trying family `ITE'... No
Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): y
Probing for `IPMI BMC KCS' at 0xca0... No
Probing for `IPMI BMC SMIC' at 0xca8... No
Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (yes/NO): y
Probing for `National Semiconductor LM78' at 0x290... No
Probing for `National Semiconductor LM79' at 0x290... No
Probing for `Winbond W83781D' at 0x290... No
Probing for `Winbond W83782D' at 0x290... No
Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): y
Using driver `i2c-i801' for device 0000:00:1f.3: Intel ICH10
FATAL: Module i2c_i801 not found.
Failed to load module i2c-i801.
Next adapter: SMBus I801 adapter at 0500 (i2c-0)
Do you want to scan it? (yes/NO/selectively): y
Client found at address 0x4e
Probing for `National Semiconductor LM75'... No
Probing for `Dallas Semiconductor DS75'... No
Probing for `Dallas Semiconductor DS1621/DS1631'... No
Probing for `Analog Devices ADM1021'... No
Probing for `Analog Devices ADM1021A/ADM1023'... No
Probing for `Maxim MAX1617'... No
Probing for `Maxim MAX1617A'... No
Probing for `Maxim MAX1668'... No
Probing for `Maxim MAX1805'... No
Probing for `Maxim MAX1989'... No
Probing for `Maxim MAX6655/MAX6656'... No
Probing for `TI THMC10'... No
Probing for `National Semiconductor LM84'... No
Probing for `Genesys Logic GL523SM'... No
Probing for `Onsemi MC1066'... No
Probing for `Maxim MAX1618'... No
Probing for `Maxim MAX1619'... No
Probing for `National Semiconductor LM82/LM83'... No
Probing for `Maxim MAX6654'... No
Probing for `Maxim MAX6690'... No
Probing for `Maxim MAX6659'... No
Probing for `Maxim MAX6647'... No
Probing for `Maxim MAX6680/MAX6681'... No
Probing for `Maxim MAX6695/MAX6696'... No
Probing for `Texas Instruments TMP411'... No
Probing for `Texas Instruments TMP421'... No
Probing for `Texas Instruments TMP422'... No
Probing for `Texas Instruments AMC6821'... No
Probing for `National Semiconductor LM64'... No
Probing for `National Semiconductor LM73'... No
Probing for `Maxim MAX6633/MAX6634/MAX6635'... No
Probing for `Fintek F75121R/F75122R/RG (VID+GPIO)'... No
Probing for `Fintek F75111R/RG/N (GPIO)'... No
Probing for `ITE IT8201R/IT8203R/IT8206R/IT8266R'... Yes
(confidence 6, not a hardware monitoring chip)
Client found at address 0x50
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... No
Probing for `EDID EEPROM'... No
Client found at address 0x52
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... No
Next adapter: NVIDIA i2c adapter (i2c-1)
Do you want to scan it? (YES/no/selectively): y
Client found at address 0x50
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... No
Probing for `EDID EEPROM'... Yes
(confidence 8, not a hardware monitoring chip)
Next adapter: NVIDIA i2c adapter (i2c-2)
Do you want to scan it? (YES/no/selectively): y
Next adapter: NVIDIA i2c adapter (i2c-3)
Do you want to scan it? (YES/no/selectively): y
Client found at address 0x50
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... No
Probing for `EDID EEPROM'... No
Client found at address 0x51
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... No
Client found at address 0x52
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... No
Client found at address 0x53
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... No
Next adapter: NVIDIA i2c adapter (i2c-4)
Do you want to scan it? (YES/no/selectively): y
Next adapter: NVIDIA i2c adapter (i2c-5)
Do you want to scan it? (YES/no/selectively): y
Next adapter: NVIDIA i2c adapter (i2c-6)
Do you want to scan it? (YES/no/selectively): y
Next adapter: NVIDIA i2c adapter (i2c-7)
Do you want to scan it? (YES/no/selectively): y
Next adapter: NVIDIA i2c adapter (i2c-8)
Do you want to scan it? (YES/no/selectively): y
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `it87':
* ISA bus, address 0x290
Chip `ITE IT8720F Super IO Sensors' (confidence: 9)
Driver `coretemp':
* Chip `Intel Core family thermal sensor' (confidence: 9)
Warning: the required module it87 is not currently installed
on your system. If it is built into the kernel then it's OK.
Otherwise, check http://www.lm-sensors.org/wiki/Devices for
driver availability.
Warning: the required module coretemp is not currently installed
on your system. If it is built into the kernel then it's OK.
Otherwise, check http://www.lm-sensors.org/wiki/Devices for
driver availability.
No modules to load, skipping modules configuration.
Una vez conocemos los módulos necesarios, en este caso
coretemp e
it87 , tan solo debemos añadirlos al kernel:
cd /usr/src/linux && make menuconfig
.config - Linux Kernel Device Drivers --->
<*> Hardware Monitoring support --->
<*> Intel Core/Core2/Atom temperature sensor
<*> ITE IT87xx and compatibles
Una vez hayas reiniciado, con el nuevo kernel, puedes acceder a los datos de lm_sensor abriendo un terminal y ejecutando sensors, el cual os deberá mostrar algo similar a esto
agd-desktop # sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +46.0°C (high = +80.0°C, crit = +100.0°C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1: +44.0°C (high = +80.0°C, crit = +100.0°C)
coretemp-isa-0002
Adapter: ISA adapter
Core 2: +48.0°C (high = +80.0°C, crit = +100.0°C)
[+/-] Ver todo
coretemp-isa-0003
Adapter: ISA adapter
Core 3: +45.0°C (high = +80.0°C, crit = +100.0°C)
it8720-isa-0290
Adapter: ISA adapter
in0: +0.93 V (min = +0.00 V, max = +4.08 V)
in1: +1.58 V (min = +0.00 V, max = +4.08 V)
+3.3V: +3.33 V (min = +0.00 V, max = +4.08 V)
+5V: +3.06 V (min = +0.00 V, max = +4.08 V)
in4: +0.53 V (min = +0.00 V, max = +4.08 V)
+3V: +3.10 V (min = +0.00 V, max = +4.08 V)
in6: +0.13 V (min = +0.00 V, max = +4.08 V)
5VSB: +2.99 V (min = +0.00 V, max = +4.08 V)
Vbat: +3.28 V
CPU: 1566 RPM (min = 10 RPM)
SSD: 1735 RPM (min = 10 RPM)
HDD 3.5: 0 RPM (min = 10 RPM)
Ventilador Lateral: 280 RPM (min = 10 RPM)
GPU: +29.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
M/B: +41.0°C (low = +127.0°C, high = +70.0°C) sensor = thermal diode
CPU: +47.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
También es posible instalar una interfaz para lm_sensors, como por ejemplo
xsensors . En caso de optar por xsensors, en /etc/sensors3.conf se guarda la configuración de la interfaz gráfica; de forma que desde este fichero podréis modificar los nombres de cada sensor. Tan solo tendréis que buscar la sección concreta de vuestro controlador y renombrar las etiquetas que queráis. En el caso expuesto, quedaría:
agd-desktop # nano /etc/sensors3.conf
>chip "it87-*" "it8712-*" "it8716-*" "it8718-*" "it8720-*"
label in2 "+3.3V"
label in5 "+3V"
label in8 "Vbat"
label temp1 "GPU"
label temp2 "M/B"
label temp3 "CPU"
label fan1 "CPU"
label fan2 "M/B"
label fan4 "Ventilador Lateral"
PD: Si conocéis alguna otra
gui , que encaje bien en gnome, para lm_sensors ¡deja un comentario!.
0 comentarios:
Publicar un comentario