Temperatura del hardware en Slackware Linux

Una de las formas en las que se puede tener un mejor cuidado de nuestra computadora, es conociendo la temperatura del hardware.

En una laptop es importante conocer que tanto se calienta el hardware pues al ser una computadora compacta, con menos ventilación que en una PC de escritorio, la temperatura tiende a ser muy alta. Conociendo la temperatura del hardware es posible tomar las medidas de refrigeración necesarias/posibles para mantener nuestro equipo en condiciones óptimas o no muy extremas para su funcionamiento.

Lm_sensors (Linux hardware monitoring) son un conjunto de herramientas para monitoreo del estado del hardware de sistemas Linux que contienen hardware de monitoreo tales como LM78 y LM75. Incluye librerías generales y software para hardware específico.

CONFIGURANDO lm_sensors

En Slackware no es necesario instalar paquetes para empezar a configurar lm_sensors, simplemente basta con ejecutar como root:

# sensors-detect

Empezarán a aparecer diferentes preguntas de configuración, a lo cual hay que ir respondiendo. Si no se sabe que responder es seguro dar Yes a todo. Un ejemplo de lo que aparece:

# sensors-detect revision 6031 (2012-03-07 17:14:01 +0100)
# System: Hewlett-Packard HP G60 Notebook PC [0392120000200C10000020000] (laptop)
# Board: Wistron 3612

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):
Module cpuid loaded successfully.
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
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):
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Nuvoton/Fintek'... No
Trying family `ITE'... No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Nuvoton/Fintek'... No
Trying family `ITE'... 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):
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):
Using driver `i2c-i801' for device 0000:00:1f.3: Intel ICH9
Module i2c-dev loaded successfully.

Next adapter: SMBus I801 adapter at 5000 (i2c-0)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x50
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... Yes
(confidence 8, not a hardware monitoring chip)
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'... Yes
(confidence 8, not a hardware monitoring chip)

Next adapter: i915 gmbus disabled (i2c-1)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 gmbus ssc (i2c-2)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 GPIOB (i2c-3)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 gmbus vga (i2c-4)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x49
Probing for `National Semiconductor LM75'... No
Probing for `National Semiconductor LM75A'... No
Probing for `Dallas Semiconductor DS75'... No
Probing for `National Semiconductor LM77'... No
Probing for `Analog Devices ADT7410'... No
Probing for `Dallas Semiconductor DS1621/DS1631'... No
Probing for `Maxim MAX6642'... No
Probing for `National Semiconductor LM73'... No
Probing for `National Semiconductor LM92'... No
Probing for `National Semiconductor LM76'... No
Probing for `Maxim MAX6633/MAX6634/MAX6635'... No
Probing for `NXP/Philips SA56004'... No
Probing for `SMSC EMC1023'... No
Probing for `SMSC EMC1043'... No
Probing for `SMSC EMC1053'... No
Probing for `SMSC EMC1063'... No
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: i915 GPIOA (i2c-5)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x49
Probing for `National Semiconductor LM75'... No
Probing for `National Semiconductor LM75A'... No
Probing for `Dallas Semiconductor DS75'... No
Probing for `National Semiconductor LM77'... No
Probing for `Analog Devices ADT7410'... No
Probing for `Dallas Semiconductor DS1621/DS1631'... No
Probing for `Maxim MAX6642'... No
Probing for `National Semiconductor LM73'... No
Probing for `National Semiconductor LM92'... No
Probing for `National Semiconductor LM76'... No
Probing for `Maxim MAX6633/MAX6634/MAX6635'... No
Probing for `NXP/Philips SA56004'... No
Probing for `SMSC EMC1023'... No
Probing for `SMSC EMC1043'... No
Probing for `SMSC EMC1053'... No
Probing for `SMSC EMC1063'... No
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: i915 gmbus panel (i2c-6)
Do you want to scan it? (YES/no/selectively):
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: i915 GPIOC (i2c-7)
Do you want to scan it? (YES/no/selectively):
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: i915 gmbus dpc (i2c-8)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 GPIOD (i2c-9)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 gmbus dpb (i2c-10)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 GPIOE (i2c-11)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 gmbus reserved (i2c-12)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 gmbus dpd (i2c-13)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 GPIOF (i2c-14)
Do you want to scan it? (YES/no/selectively):

Next adapter: DPDDC-B (i2c-15)
Do you want to scan it? (YES/no/selectively):

Next adapter: DPDDC-D (i2c-16)
Do you want to scan it? (YES/no/selectively):

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `coretemp':
* Chip `Intel digital thermal sensor' (confidence: 9)

Do you want to generate /etc/sysconfig/lm_sensors? (yes/NO): yes
Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors
for initialization at boot time.
You should now start the lm_sensors service to load the required
kernel modules.

Unloading i2c-dev... OK
Unloading cpuid... OK

Finalmente queda cargar el módulo o driver del hardware encontrado:

# modprobe coretemp

CONSULTANDO LA TEMPERATURA

Ahora para conocer la temperatura de los sensores se escribe en el terminal lo siguiente (no es necesario hacerlo como root):

$ sensors

El resultado es el siguiente:

acpitz-virtual-0
Adapter: Virtual device
temp1: +46.0°C (crit = +103.0°C)
temp2: +46.0°C (crit = +120.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0: +39.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +43.0°C (high = +105.0°C, crit = +105.0°C)

Finalmente para ejecutar el módulo coretemp cada vez que inicia el sistema abrir el archivo siguiente:

# vim /etc/rc.d/rc.local

y agregar esta línea al final:

# modprobe coretemp

Una forma más fácil es agregar un elemento gráfico (Widget) de KDE que se llama Temperatura del Hardware al escritorio, sin embargo siempre es bueno saber como hacer las cosas desde el terminal.

Saludos.

Anuncios

Un pensamiento en “Temperatura del hardware en Slackware Linux

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s