Lm-sensors (Español)

From ArchWiki
Revision as of 04:30, 18 January 2010 by Samkpo (Talk | contribs) (Created page with '{{stub}} Category:Mainboards and BIOS (English) Category:CPU (English) Category:Daemons and system services (English) Category:HOWTOs (English) {{i18n_links_start…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Lm-sensors (Español)#)
Template:I18n links start

Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end

lm_sensors (Linux-monitoring sensors o Monitor de sensores de Linux en español), una herramienta libre para linux, provee las herramientas y los drivers de control de las temperaturas, voltaje y ventiladores.

Este documento te dice como instalar, configurar y usar lm_sensors para que puedas monitorear tu CPU y/o la temperatura de tu placa madre y velocidad de los ventiladores.

Aviso para los Kernels >=2.6.31

Un cambio en la versión 2.6.31 ha hecho que los sensores dejen de funcionar para algunos usuarios. Mira este FAQ para una explicación detallada y para algunos errores de ejemplo. Para arreglar los sensores, agrega lo siguiente a tu linea de booteo del kernel en /boot/grub/menu.lst y reinicia tu máquina

acpi_enforce_resources=lax

Ejemplo de mi computadora

title           Arch Linux
root            (hd0,1)
kernel          /boot/vmlinuz26 root=/dev/sda2 ro quiet acpi_enforce_resources=lax vga=773
initrd          /boot/kernel26.img

Uso

Instalación

Instala el paquete de sensores desde el repositorio main

# pacman -S lm_sensors

Configurando lm_sensors

Usa sensors-detect para detectar y generar una lista de los modulos del Kernel
# sensors-detect
Esto creará la configuración y la guardará en Template:Filename. Asegurate de responder YES a las preguntas sobre la exploración de diversos sensores. Cuando el script haya finalizado, se le presentará un resumen de las pruebas, ejemplo de mi sistema
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `it87':
  * ISA bus, address 0x290
     Chip `ITE IT8718F Super IO Sensors' (confidence: 9)
Driver `coretemp':
  * Chip `Intel Core family thermal sensor' (confidence: 9)
Carga automáticamente los modulos del Kernel al momento de bootear agergandosensors a la cadena DAEMONS in Template:Filename
DAEMONS=(syslog-ng crond ... sensors ...)
Alternatively, manually add them to your MODULES array in Template:Filename
MODULES=(coretemp it87 acpi-cpufreq)
You do NOT need both the DAEMONS setting and the MODULES setting.

Testing your lm_sensors

To test your setup, load the kernel modules manually or by using the sensors init script. You do NOT have to do both. Example manually adding them

# modprobe it87
# modprobe coretemp

Example using the script

# /etc/rc.d/sensors start

You should see something like this when you run sensors

$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +30.0°C  (high = +76.0°C, crit = +100.0°C)  

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +30.0°C  (high = +76.0°C, crit = +100.0°C)  

coretemp-isa-0002
Adapter: ISA adapter
Core 2:      +32.0°C  (high = +76.0°C, crit = +100.0°C)  

coretemp-isa-0003
Adapter: ISA adapter
Core 3:      +30.0°C  (high = +76.0°C, crit = +100.0°C)  

it8718-isa-0290
Adapter: ISA adapter
in0:         +1.17 V  (min =  +0.00 V, max =  +4.08 V)   
in1:         +1.31 V  (min =  +1.28 V, max =  +1.68 V)   
in2:         +3.28 V  (min =  +2.78 V, max =  +3.78 V)   
in3:         +2.88 V  (min =  +2.67 V, max =  +3.26 V)   
in4:         +2.98 V  (min =  +2.50 V, max =  +3.49 V)   
in5:         +1.34 V  (min =  +0.58 V, max =  +1.34 V)   ALARM
in6:         +2.02 V  (min =  +1.04 V, max =  +1.36 V)   ALARM
in7:         +2.83 V  (min =  +2.67 V, max =  +3.26 V)   
Vbat:        +3.28 V
fan1:       1500 RPM  (min = 3245 RPM)  ALARM
fan2:          0 RPM  (min = 3245 RPM)  ALARM
fan3:          0 RPM  (min = 3245 RPM)  ALARM
temp1:       +18.0°C  (low  = +127.0°C, high = +64.0°C)  sensor = thermal diode
temp2:       +32.0°C  (low  = +127.0°C, high = +64.0°C)  sensor = thermistor
temp3:       +38.0°C  (low  = +127.0°C, high = +64.0°C)  sensor = thermistor
cpu0_vid:   +2.050 V

acpitz-virtual-0
Adapter: Virtual device
temp1:       +18.0°C  (crit = +64.0°C)

Reading SPD values from memory modules (Optional)

To read the SPD timing values from you memory modules, download this perl script: SPDdecodeScript Once you have downloaded it, you will need to load the eeprom kernel module

# modprobe eeprom

Now can you make the decode-dimms.pl executable and run it

$ chmod +x decode-dimms.pl

Here is an example output from my machine

$ ./decode-dimms.pl 

Memory Serial Presence Detect Decoder
By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner,
Jean Delvare and others
Version 2.10.8


Decoding EEPROM: /sys/bus/i2c/drivers/eeprom/0-0050
Guessing DIMM is in                             bank 1

---=== SPD EEPROM Information ===---
EEPROM Checksum of bytes 0-62                   OK (0x0D)
# of bytes written to SDRAM EEPROM              128
Total number of bytes in EEPROM                 256
Fundamental Memory type                         DDR2 SDRAM
SPD Revision                                    1.2

---=== Memory Characteristics ===---
Maximum module speed                            800MHz (PC2-6400)
Size                                            2048 MB
tCL-tRCD-tRP-tRAS                               5-5-5-18
Supported CAS Latencies                         5, 4
Minimum Cycle Time (CAS 5)                      2.5 ns
Maximum Access Time (CAS 5)                     0.4 ns
Minimum Cycle Time (CAS 4)                      3.7 ns
Maximum Access Time (CAS 4)                     0.5 ns

---=== Manufacturing Information ===---
Manufacturer                                    Corsair
Manufacturing Location Code                     0x01
Part Number                                     CM2X2048-8500C5D  
Revision Code                                   0x2020


Decoding EEPROM: /sys/bus/i2c/drivers/eeprom/0-0051
Guessing DIMM is in                             bank 2

---=== SPD EEPROM Information ===---
EEPROM Checksum of bytes 0-62                   OK (0x0D)
# of bytes written to SDRAM EEPROM              128
Total number of bytes in EEPROM                 256
Fundamental Memory type                         DDR2 SDRAM
SPD Revision                                    1.2

---=== Memory Characteristics ===---
Maximum module speed                            800MHz (PC2-6400)
Size                                            2048 MB
tCL-tRCD-tRP-tRAS                               5-5-5-18
Supported CAS Latencies                         5, 4
Minimum Cycle Time (CAS 5)                      2.5 ns
Maximum Access Time (CAS 5)                     0.4 ns
Minimum Cycle Time (CAS 4)                      3.7 ns
Maximum Access Time (CAS 4)                     0.5 ns

---=== Manufacturing Information ===---
Manufacturer                                    Corsair
Manufacturing Location Code                     0x01
Part Number                                     CM2X2048-8500C5D  
Assembly Serial Number                          0x00514458


Decoding EEPROM: /sys/bus/i2c/drivers/eeprom/0-0052
Guessing DIMM is in                             bank 3

---=== SPD EEPROM Information ===---
EEPROM Checksum of bytes 0-62                   OK (0x0D)
# of bytes written to SDRAM EEPROM              128
Total number of bytes in EEPROM                 256
Fundamental Memory type                         DDR2 SDRAM
SPD Revision                                    1.2

---=== Memory Characteristics ===---
Maximum module speed                            800MHz (PC2-6400)
Size                                            2048 MB
tCL-tRCD-tRP-tRAS                               5-5-5-18
Supported CAS Latencies                         5, 4
Minimum Cycle Time (CAS 5)                      2.5 ns
Maximum Access Time (CAS 5)                     0.4 ns
Minimum Cycle Time (CAS 4)                      3.7 ns
Maximum Access Time (CAS 4)                     0.5 ns

---=== Manufacturing Information ===---
Manufacturer                                    Corsair
Manufacturing Location Code                     0x01
Part Number                                     CM2X2048-8500C5D  
Revision Code                                   0x2020


Decoding EEPROM: /sys/bus/i2c/drivers/eeprom/0-0053
Guessing DIMM is in                             bank 4

---=== SPD EEPROM Information ===---
EEPROM Checksum of bytes 0-62                   OK (0x0D)
# of bytes written to SDRAM EEPROM              128
Total number of bytes in EEPROM                 256
Fundamental Memory type                         DDR2 SDRAM
SPD Revision                                    1.2

---=== Memory Characteristics ===---
Maximum module speed                            800MHz (PC2-6400)
Size                                            2048 MB
tCL-tRCD-tRP-tRAS                               5-5-5-18
Supported CAS Latencies                         5, 4
Minimum Cycle Time (CAS 5)                      2.5 ns
Maximum Access Time (CAS 5)                     0.4 ns
Minimum Cycle Time (CAS 4)                      3.7 ns
Maximum Access Time (CAS 4)                     0.5 ns

---=== Manufacturing Information ===---
Manufacturer                                    Corsair
Manufacturing Location Code                     0x01
Part Number                                     CM2X2048-8500C5D  
Assembly Serial Number                          0x00514458


Decoding EEPROM: /sys/bus/i2c/drivers/eeprom/0-0057
Guessing DIMM is in                             bank 8

---=== SPD EEPROM Information ===---
EEPROM Checksum of bytes 0-62                   Bad
                                                (found 0x20, calculated 0x0A)


Number of SDRAM DIMMs detected and decoded: 4

Using sensor data

Graphical Frontends

There are a variety of front-ends for sensors data. Some are listed below. The name in italicized text is the name of the package in the repo, in other words, you can install them via pacman.

  1. sensors-applet - an applet for the GNOME Panel to display readings from hardware sensors, including CPU temperature, fan speeds and voltage readings.
  2. ksensors - ksensors is nice lm_sensors frontend for KDE
  3. xsensors - X11 interface to lm_sensors
  4. xfce4-sensors-plugin - A lm_sensors plugin for the Xfce panel
  5. conky - Conky is an advanced, highly configurable system monitor for X based on torsmo
  6. kdeutils-superkaramba - Superkaramba is a tool which gives posibility to create different widgets for KDE desktop. Check the karamba section on kde-look.org for examples of making karamba front-ends for sensors data.

Sensord

There is an optional daemon logging package called sensord that can log your data to a round robin database (rrd) that you can visualize graphically. Placeholder for someone to write a wiki page on installation/configuration of sensord.