Lm sensors: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
K (titelfix)
(Komplette Überarbeitung)
 
(15 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{titel|lm_sensors}}
{{SEITENTITEL:lm_sensors}}
Mit '''lm_sensors''' können Temperaturen von CPU, Mainboard und die Lüfterdrehzahlen ausgelesen werden.
'''lm_sensors''' (Linux hardware monitoring) stellt Treiber und Programme zum Anzeigen von Temperaturen, Spannungen und Lüfterdrehzahlen zur Verfügung. Es können unter anderem Temperaturen von CPU, Mainboard, Grafikkarte und Festplatten angezeigt werden, aber auch diverse Spannungen des Netzteils.


== Installation ==
{{installation|repo=extra|paket=lm_sensors}}
Installation via [[Pacman]]


# pacman -Sy lm_sensors
== Konfiguration ==
Durch '''sensors-detect''' wird nach Sensoren gesucht und die notwendigen Kernelmodule generiert. Außerdem wird die Datei {{ic|/etc/conf.d/lm_sensors}} erzeugt, welche vom {{ic|sensors}} daemon verwendet wird um die Kernelmodule automatisch beim Bootvorgang zu laden.
Bei der Frage, ob die Hardware gescannt werden soll antwortet man mit "YES", oder drückt einfach "enter".


== Konfiguration ==
{{hc|# sensors-detect|<nowiki>
Durch '''sensors-detect''' werden die Sensoren erfasst und die notwendigen Kernelmodule erstellt:
# sensors-detect revision 6209 (2014-01-14 22:51:58 +0100)
# Board: ASRock Z77 Extreme6


# sensors-detect
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.


Das erstellt die Konfiguration und speichert diese in '''/etc/sysconfig/lm_sensors'''
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
...


*Für das automatische Laden beim Systemstart öffnet man die Datei '''/etc/rc.conf''' und fügt '''sensors''' in der Zeile '''DAEMONS''' hinzu.
Now follows a summary of the probes I have just done.
Just press ENTER to continue:


DAEMONS=(syslog-ng crond ... sensors ...)
Driver `nct6775':
  * ISA bus, address 0x290
    Chip `Nuvoton NCT5577D/NCT6776F Super IO Sensors' (confidence: 9)


Um die Konfiguration zu testen, lädt man nun die Kernel-Module mit einem Startscript.
Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)


# /etc/rc.d/sensors start
Do you want to overwrite /etc/conf.d/lm_sensors? (YES/no):
Unloading i2c-dev... OK
Unloading cpuid... OK
</nowiki>}}
{{hinweis|Ein systemd Dienst wird automatisch gestartet, falls man "Yes" bei der Frage zur Generierung von {{ic|/etc/conf.d/lm_sensors}} angibt.}}


Zum testen der Konfiguration das Kommando '''sensors''' ausführen.
== Auslesen der Sensoren ==


  $ sensors
Um die Konfiguration zu testen, wird einfach {{ic|sensors}} in der Konsole eingetippt. Hier eine Beispielausgabe:
{{hc|# sensors|<nowiki>
radeon-pci-0100
Adapter: PCI adapter
Radeon HD 7970:  +59.0°C (crit = +120.0°C, hyst = +90.0°C)


Die Ausgabe sollte in etwa folgendes ergeben:
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +47.0°C  (high = +85.0°C, crit = +105.0°C)
Core 0:        +46.0°C  (high = +85.0°C, crit = +105.0°C)
Core 1:        +47.0°C  (high = +85.0°C, crit = +105.0°C)
Core 2:        +42.0°C  (high = +85.0°C, crit = +105.0°C)
Core 3:        +45.0°C  (high = +85.0°C, crit = +105.0°C)


lm85-i2c-0-2e
nct6776-isa-0290
Adapter: SMBus I801 adapter at c800
Adapter: ISA adapter
V1.5:       +1.48 V  (min =  +0.00 V, max =  +3.32 V)
Vcore:         +0.88 V  (min =  +0.00 V, max =  +1.74 V)
VCore:     +1.34 V  (min =  +0.00 V, max =  +2.98 V)
in1:           +1.83 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
V3.3:       +3.32 V  (min =  +0.00 V, max =  +4.37 V)
AVCC:          +3.33 V  (min =  +2.98 V, max =  +3.63 V)
V5:       +5.05 V  (min =  +0.00 V, max =  +6.64 V)
+3.3V:         +3.31 V  (min =  +2.98 V, max =  +3.63 V)
V12:     +11.96 V  (min =  +0.00 V, max = +15.94 V)
in4:           +1.03 V  (min =  +0.00 V, max =  +0.00 V) ALARM
CPU_Fan:   23760 RPM (min =   0 RPM)
in5:           +1.66 V  (min =  +0.00 V, max = +0.00 V) ALARM
fan2:         0 RPM (min =   0 RPM)
in6:           +0.95 V (min = +0.00 V, max =  +0.00 V) ALARM
fan3:         0 RPM (min =   0 RPM)
3VSB:           +3.42 V (min = +2.98 V, max =  +3.63 V)
fan4:         0 RPM  (min =    0 RPM)
Vbat:           +3.28 V (min = +2.70 V, max =  +3.63 V)
CPU Temp:   +51°C (low  -127°C, high =  +127°C)
i7-3770:       1478 RPM  (min =    0 RPM)
Board Temp:
SYSTIN:         +48.0°C (high +0.0°C, hyst =  +0.0°C) ALARM  sensor = thermistor
              +39°C (low -127°C, high = +127°C)
CPUTIN:         +43.5°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor
Remote Temp:
AUXTIN:        +32.0°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor
              +45°C (low  = -127°C, high = +127°C)
PECI Agent 0:   +45.0°C (high = +80.0°C, hyst = +75.0°C)
CPU_PWM:    77
                        (crit = +105.0°C)  
Fan2_PWM:   87
intrusion0:    ALARM
Fan3_PWM87
intrusion1:   OK
vid:      +1.088 V  (VRM Version 10.0)
beep_enabledisabled
</nowiki>}}


== SPD-Werte der RAM-Speichermodule auslesen ==
== SPD-Werte der RAM-Speichermodule auslesen ==
Um die SPD-timing-Werte des RAMs auszulesen, muss "modprobe eeprom" ausgeführt werden. Danach dieses Perl-Script benutzen:
[http://www.lm-sensors.org/browser/lm-sensors/trunk/prog/eeprom/decode-dimms.pl SPDdecodeScript]


== Benutzung ==
Um die SPD-Werte des RAMs auszulesen muss {{paket|i2c-tools}} installiert werden. Danach muss noch das {ic|eeprom}} Kernelmodul geladen werden.
Für lm_sensors existieren verschiedene Front-End-Lösungen wie zum Beispiel '''xsensors''', '''gkrellm''', '''xfce4-sensors-plugin''', '''sensors-applet''', und  '''ksensors'''.
# modprobe eeprom
 
Schließlich können die Informationen mit {{ic|decode-dimms}} angezeigt werden.
Hier ist ein gekürzter Auszug:
{{hc|# decode-dimms|<nowiki>
Memory Serial Presence Detect Decoder
By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner,
Jean Delvare, Trent Piepho and others
 
 
Decoding EEPROM: /sys/bus/i2c/drivers/eeprom/0-0050
Guessing DIMM is in                            bank 1
 
---=== SPD EEPROM Information ===---
EEPROM CRC of bytes 0-116                      OK (0x583F)
# of bytes written to SDRAM EEPROM              176
Total number of bytes in EEPROM                512
Fundamental Memory type                        DDR3 SDRAM
Module Type                                    UDIMM
 
---=== Memory Characteristics ===---
Fine time base                                  2.500 ps
Medium time base                                0.125 ns
Maximum module speed                            1066MHz (PC3-8533)
Size                                            2048 MB
Banks x Rows x Columns x Bits                  8 x 14 x 10 x 64
Ranks                                          2
SDRAM Device Width                              8 bits
tCL-tRCD-tRP-tRAS                              7-7-7-33
Supported CAS Latencies (tCL)                  8T, 7T, 6T, 5T
 
---=== Timing Parameters ===---
Minimum Write Recovery time (tWR)              15.000 ns
Minimum Row Active to Row Active Delay (tRRD)  7.500 ns
Minimum Active to Auto-Refresh Delay (tRC)      49.500 ns
Minimum Recovery Delay (tRFC)                  110.000 ns
Minimum Write to Read CMD Delay (tWTR)          7.500 ns
Minimum Read to Pre-charge CMD Delay (tRTP)    7.500 ns
Minimum Four Activate Window Delay (tFAW)      30.000 ns
 
---=== Optional Features ===---
Operable voltages                              1.5V
RZQ/6 supported?                                Yes
RZQ/7 supported?                                Yes
DLL-Off Mode supported?                        No
Operating temperature range                    0-85C
Refresh Rate in extended temp range            1X
Auto Self-Refresh?                              Yes
On-Die Thermal Sensor readout?                  No
Partial Array Self-Refresh?                    No
Thermal Sensor Accuracy                        Not implemented
SDRAM Device Type                              Standard Monolithic
 
---=== Physical Characteristics ===---
Module Height (mm)                              15
Module Thickness (mm)                          1 front, 1 back
Module Width (mm)                              133.5
Module Reference Card                          B
 
---=== Manufacturer Data ===---
Module Manufacturer                            Invalid
Manufacturing Location Code                    0x02
Part Number                                    OCZ3G1600LV2G   
 
...
</nowiki>}}
 
== Grafische Front-Ends ==
 
*{{paket|xsensors}} - X11 Interface für lm_sensors.
*{{paket|xfce4-sensors-plugin}} - Ein lm_sensors Plugin für das  [[Xfce]] panel.
*[[conky]] - Conky ist ein vielseitiger Systemmonitor für den Desktop.
*{{paket|kdeutils-superkaramba}} - Superkaramba ist ein Tool um verschiedene Widgets auf dem Desktop zu platzieren.
*{{AUR|sensors-applet}} - Ein Applet für [[GNOME]] um Informationen der Sensoren im Panel anzuzeigen.
 
== Anpassungen ==
 
== Weblinks ==
* [http://lm-sensors.org/wiki/I2CTools i2c-tools Website] {{sprache|en}}
* [http://lm-sensors.org/ lm-sensors Website] {{sprache|en}}
[[Kategorie:Energieverwaltung]]


{{ÜberFDL||Seite=http://wiki.archlinux.org|Name=ArchLinux.org Wiki|Original=http://wiki.archlinux.org/index.php?title=Lm_sensors}}
{{ÜberFDL||Seite=http://wiki.archlinux.org|Name=ArchLinux.org Wiki|Original=http://wiki.archlinux.org/index.php?title=Lm_sensors}}
Zeile 60: Zeile 174:
[[Kategorie:Hardware]]
[[Kategorie:Hardware]]
[[en:lm sensors]]
[[en:lm sensors]]
[[cs:Lm sensors]]
[[es:Lm sensors]]
[[ja:Lm sensors]]
[[ru:Lm sensors]]
[[uk:Lm sensors]]
[[zh-CN:Lm sensors]]

Aktuelle Version vom 11. März 2014, 22:12 Uhr

lm_sensors (Linux hardware monitoring) stellt Treiber und Programme zum Anzeigen von Temperaturen, Spannungen und Lüfterdrehzahlen zur Verfügung. Es können unter anderem Temperaturen von CPU, Mainboard, Grafikkarte und Festplatten angezeigt werden, aber auch diverse Spannungen des Netzteils.

Installation

Das Programm ist als lm_sensors in extra verfügbar, und kann von dort mittels Pacman installiert werden.

pacman -S lm_sensors

Konfiguration

Durch sensors-detect wird nach Sensoren gesucht und die notwendigen Kernelmodule generiert. Außerdem wird die Datei /etc/conf.d/lm_sensors erzeugt, welche vom sensors daemon verwendet wird um die Kernelmodule automatisch beim Bootvorgang zu laden. Bei der Frage, ob die Hardware gescannt werden soll antwortet man mit "YES", oder drückt einfach "enter".

# sensors-detect
# sensors-detect revision 6209 (2014-01-14 22:51:58 +0100)
# Board: ASRock Z77 Extreme6

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
...

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

Driver `nct6775':
  * ISA bus, address 0x290
    Chip `Nuvoton NCT5577D/NCT6776F Super IO Sensors' (confidence: 9)

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

Do you want to overwrite /etc/conf.d/lm_sensors? (YES/no): 
Unloading i2c-dev... OK
Unloading cpuid... OK

Hinweis: Ein systemd Dienst wird automatisch gestartet, falls man "Yes" bei der Frage zur Generierung von /etc/conf.d/lm_sensors angibt.

Auslesen der Sensoren

Um die Konfiguration zu testen, wird einfach sensors in der Konsole eingetippt. Hier eine Beispielausgabe:

# sensors
radeon-pci-0100
Adapter: PCI adapter
Radeon HD 7970:  +59.0°C  (crit = +120.0°C, hyst = +90.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +47.0°C  (high = +85.0°C, crit = +105.0°C)
Core 0:         +46.0°C  (high = +85.0°C, crit = +105.0°C)
Core 1:         +47.0°C  (high = +85.0°C, crit = +105.0°C)
Core 2:         +42.0°C  (high = +85.0°C, crit = +105.0°C)
Core 3:         +45.0°C  (high = +85.0°C, crit = +105.0°C)

nct6776-isa-0290
Adapter: ISA adapter
Vcore:          +0.88 V  (min =  +0.00 V, max =  +1.74 V)
in1:            +1.83 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:           +3.33 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:          +3.31 V  (min =  +2.98 V, max =  +3.63 V)
in4:            +1.03 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:            +1.66 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:            +0.95 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
3VSB:           +3.42 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:           +3.28 V  (min =  +2.70 V, max =  +3.63 V)
i7-3770:       1478 RPM  (min =    0 RPM)
SYSTIN:         +48.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = thermistor
CPUTIN:         +43.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
AUXTIN:         +32.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
PECI Agent 0:   +45.0°C  (high = +80.0°C, hyst = +75.0°C)
                         (crit = +105.0°C) 
intrusion0:    ALARM
intrusion1:    OK
beep_enable:   disabled

SPD-Werte der RAM-Speichermodule auslesen

Um die SPD-Werte des RAMs auszulesen muss i2c-tools installiert werden. Danach muss noch das {ic|eeprom}} Kernelmodul geladen werden.

# modprobe eeprom

Schließlich können die Informationen mit decode-dimms angezeigt werden. Hier ist ein gekürzter Auszug:

# decode-dimms
Memory Serial Presence Detect Decoder
By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner,
Jean Delvare, Trent Piepho and others


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

---=== SPD EEPROM Information ===---
EEPROM CRC of bytes 0-116                       OK (0x583F)
# of bytes written to SDRAM EEPROM              176
Total number of bytes in EEPROM                 512
Fundamental Memory type                         DDR3 SDRAM
Module Type                                     UDIMM

---=== Memory Characteristics ===---
Fine time base                                  2.500 ps
Medium time base                                0.125 ns
Maximum module speed                            1066MHz (PC3-8533)
Size                                            2048 MB
Banks x Rows x Columns x Bits                   8 x 14 x 10 x 64
Ranks                                           2
SDRAM Device Width                              8 bits
tCL-tRCD-tRP-tRAS                               7-7-7-33
Supported CAS Latencies (tCL)                   8T, 7T, 6T, 5T

---=== Timing Parameters ===---
Minimum Write Recovery time (tWR)               15.000 ns
Minimum Row Active to Row Active Delay (tRRD)   7.500 ns
Minimum Active to Auto-Refresh Delay (tRC)      49.500 ns
Minimum Recovery Delay (tRFC)                   110.000 ns
Minimum Write to Read CMD Delay (tWTR)          7.500 ns
Minimum Read to Pre-charge CMD Delay (tRTP)     7.500 ns
Minimum Four Activate Window Delay (tFAW)       30.000 ns

---=== Optional Features ===---
Operable voltages                               1.5V
RZQ/6 supported?                                Yes
RZQ/7 supported?                                Yes
DLL-Off Mode supported?                         No
Operating temperature range                     0-85C
Refresh Rate in extended temp range             1X
Auto Self-Refresh?                              Yes
On-Die Thermal Sensor readout?                  No
Partial Array Self-Refresh?                     No
Thermal Sensor Accuracy                         Not implemented
SDRAM Device Type                               Standard Monolithic

---=== Physical Characteristics ===---
Module Height (mm)                              15
Module Thickness (mm)                           1 front, 1 back
Module Width (mm)                               133.5
Module Reference Card                           B

---=== Manufacturer Data ===---
Module Manufacturer                             Invalid
Manufacturing Location Code                     0x02
Part Number                                     OCZ3G1600LV2G     

...

Grafische Front-Ends

Anpassungen

Weblinks


Dieser Artikel (oder Teile davon) steht unter GNU FDL (GNU Freie Dokumentationslizenz) und ist eine Übersetzung aus dem ArchLinux.org Wiki. Am Original-Artikel kann jeder Korrekturen und Ergänzungen vornehmen. Im ArchLinux.org Wiki ist eine Liste der Autoren verfügbar.