Lm sensors: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
(Komplette Überarbeitung)
 
(2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{SEITENTITEL: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 -S 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".
 
{{hc|# sensors-detect|<nowiki>
# 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:


== Konfiguration ==
Driver `nct6775':
Durch '''sensors-detect''' wird nach Sensoren gesucht und die notwendigen Kernelmodule angezeigt:<br>
  * ISA bus, address 0x290
Bei der Frage ob die Hardware gescannt werden soll antwortet man mit YES. Das können je nach vorhandener Hardware viele Fragen sein bis alle Schnittstellen der Sensoren durchgescannt sind.
    Chip `Nuvoton NCT5577D/NCT6776F Super IO Sensors' (confidence: 9)


# '''sensors-detect'''
Driver `coretemp':
# sensors-detect revision 6085 (2012-10-30 18:18:45 +0100)
  * Chip `Intel digital thermal sensor' (confidence: 9)
# System: MSI MS-7635 [1.0]
# Board: MSI H55M-ED55 (MS-7635)
..
..
Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): '''YES'''
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595...                      No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
..
AMD Family 15h power sensors...                            No
Intel digital thermal sensor...                            Success!
    (driver `coretemp')
..
..
Nach der Scannung wird das Ergebnis der erkannten Sensorhardware und dessen nötigen Treibermodule angezeigt.


Now follows a summary of the probes I have just done.
Do you want to overwrite /etc/conf.d/lm_sensors? (YES/no):
Just press ENTER to continue: '''Enter'''
Unloading i2c-dev... OK
Unloading cpuid... OK
'''Driver `coretemp''':
</nowiki>}}
* Chip `Intel digital thermal sensor' (confidence: 9)
{{hinweis|Ein systemd Dienst wird automatisch gestartet, falls man "Yes" bei der Frage zur Generierung von {{ic|/etc/conf.d/lm_sensors}} angibt.}}


'''Driver `f71882fg''':
== Auslesen der Sensoren ==
* ISA bus, address 0xa00
Chip `Fintek F71889FG/F81801U Super IO Sensors' (confidence: 9)
Eine Konfiguration in /etc/conf.d/lm_sensors erstellen lassen.
Do you want to overwrite /etc/conf.d/lm_sensors? (YES/no): '''YES'''
Unloading i2c-dev... OK
Unloading cpuid... OK


Für das automatische Laden beim Systemstart kann der Service gestartet werden.
Um die Konfiguration zu testen, wird einfach {{ic|sensors}} in der Konsole eingetippt. Hier eine Beispielausgabe:
systemctl enable lm_sensors
{{hc|# sensors|<nowiki>
Um die Konfiguration direkt zu testen können die nötigen Treibermodule geladen werden gefolgt mit dem Kommando sensors.<br>
radeon-pci-0100
Hier im Beispiel sind das die Module f71882fg und coretemp.
Adapter: PCI adapter
modprobe f71882fg
Radeon HD 7970: +59.0°C (crit = +120.0°C, hyst = +90.0°C)
  modprobe coretemp
  sensors
Die Ausgabe sollte in etwa wie folgt sein:


# sensors
coretemp-isa-0000
f71889fg-isa-0a00
Adapter: ISA adapter
Adapter: ISA adapter
Physical id 0:  +47.0°C  (high = +85.0°C, crit = +105.0°C)
+3.3V:        +3.36 V 
Core 0:         +46.0°C  (high = +85.0°C, crit = +105.0°C)
in1:          +0.93 V  (max =  +2.04 V)
Core 1:         +47.0°C  (high = +85.0°C, crit = +105.0°C)
in2:          +0.75 V 
Core 2:         +42.0°C  (high = +85.0°C, crit = +105.0°C)
in3:          +0.96 V 
Core 3:         +45.0°C  (high = +85.0°C, crit = +105.0°C)
in4:          +1.09 V 
in5:          +1.11 V 
in6:          +1.18 V 
3VSB:        +3.22 V 
Vbat:        +3.22 V 
fan1:        1102 RPM
fan2:          0 RPM  ALARM
fan3:           0 RPM  ALARM
  temp1:        +27.0°C  (high = +255.0°C, hyst = +251.0°C)  ALARM (CRIT)
                      (crit = +255.0°C, hyst = +251.0°C) sensor = thermistor
temp2:       +36.0°C  (high = +255.0°C, hyst = +251.0°C)  ALARM (CRIT)
                      (crit = +255.0°C, hyst = +251.0°C) sensor = thermistor
temp3:       +27.0°C  (high = +255.0°C, hyst = +253.0°C)  ALARM (CRIT)
                      (crit = +255.0°C, hyst = +253.0°C) sensor = transistor
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +29.0°C  (high = +89.0°C, crit = +105.0°C)
Core 2:       +19.0°C  (high = +89.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
</nowiki>}}


== SPD-Werte der RAM-Speichermodule auslesen ==
== SPD-Werte der RAM-Speichermodule auslesen ==
Früher war unter lm_sensors ein Script dabei um die SPD-Ram Werte auszulesen.
 
Mittlerweile ist das ein separates Paket i2c-tools das für diesen Zweck installiert werden kann.
Um die SPD-Werte des RAMs auszulesen muss {{paket|i2c-tools}} installiert werden. Danach muss noch das {ic|eeprom}} Kernelmodul geladen werden.
Um die SPD-timing-Werte der RAMs auszulesen, muss vorher das Modul eeprom geladen werden. Anschliessend ein decode-dimms gibt alle RAM Modulwerte aus.
# pacman -S i2c-tools
  # modprobe eeprom
  # modprobe eeprom
$ decode-dimms
decode-dimms version 5929 (2011-02-16 14:58:38 +0100)
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/8-0050
Guessing DIMM is in                            bank 1
...
...
Module Manufacturer                            Corsair
Manufacturing Location Code                    0x01
Part Number                                    CM3X2G1333C9     
Number of SDRAM DIMMs detected and decoded: 2


== Benutzung ==
Schließlich können die Informationen mit {{ic|decode-dimms}} angezeigt werden.
Für lm_sensors existieren verschiedene Front-End-Lösungen wie zum Beispiel '''xsensors''', '''conky''', '''gkrellm''', '''xfce4-sensors-plugin''', '''sensors-applet''', und '''kdeutils-superkaramba'''.
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 ==
== Weblinks ==
* [http://lm-sensors.org/wiki/I2CTools i2c-tools Website] {{sprache|en}}
* [http://lm-sensors.org/wiki/I2CTools i2c-tools Website] {{sprache|en}}
* [https://wiki.archlinux.org/index.php/Lm_Sensors lm_sensors Website] {{sprache|en}}
* [http://lm-sensors.org/ lm-sensors Website] {{sprache|en}}
[[Kategorie:Energieverwaltung]]
[[Kategorie:Energieverwaltung]]


Zeile 113: 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.