Wie kann ich die CPU-Temperatur unter Linux überwachen?

Wie kann ich die CPU-Temperatur unter Linux überwachen und anzeigen?

Author: Dave Jarvis, 2009-08-19

8 answers

Wie andere bemerkt haben, benötigen Sie das Paket lm-sensors. Ich dachte, ich sollte erwähnen, dass Sie zusätzlich zur Installation des Pakets den Befehl sensors-detect ausführen sollten, um die zu ladenden Kernelmodule zu identifizieren.

Wenn Sie dies nicht getan haben, führen Sie dies einmal manuell aus und prüfen Sie, ob Sensoren an Bord Ihres Computers erkannt werden.

$ sudo sensors-detect 
# sensors-detect revision 5249 (2008-05-11 22:56:25 +0200)

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.

We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no): 
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 0000:00:1f.3: Intel 82801G ICH7

We will now try to load each adapter module in turn.
Module `i2c-i801' already loaded.
If you have undetectable or unsupported I2C/SMBus adapters, you can have
them scanned by manually loading the modules before running this script.

We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.

Next adapter: SMBus I801 adapter at 10c0 (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)
Probing for `EDID EEPROM'...                                No

Some chips are also 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 LM78-J' 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
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some Super I/O chips may also contain 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'...                   No
Trying family `SMSC'...                                     Yes
Found unknown chip with ID 0x2803
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No
Trying family `ITE'...                                      No

Some south bridges, CPUs or memory controllers may also contain
embedded sensors. Do you want to scan for them? (YES/no): 
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD K10 thermal sensors...                                  No
Intel Core family thermal sensor...                         Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No

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

Driver `coretemp' (should be inserted):
  Detects correctly:
  * Chip `Intel Core family thermal sensor' (confidence: 9)

I will now generate the commands needed to load the required modules.
Just press ENTER to continue: 

To load everything that is needed, add this to /etc/modules:

#----cut here----
# Chip drivers
coretemp
#----cut here----

Do you want to add these lines automatically? (yes/NO)

Wenn Sie Glück haben, unterstützt Ihr Laptop eine Reihe von Sensoren. Wenn nicht, finden Sie möglicherweise immer noch einen grundlegenden Satz von sensoren für die CPU):

$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:       +40.5°C  (crit = +105.0°C)                  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +35.0°C  (crit = +100.0°C)                  

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +40.0°C  (crit = +100.0°C)                  
 126
Author: ,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2009-08-19 00:30:56

Mit ' Sensoren '(von lm-Sensoren) und ' Uhr ' (von procps pkg) können Sie Sensordaten in Echtzeit über die Befehlszeile überwachen:

watch -n 1 -d sensors

Dadurch werden alle 1 Sekunde Sensoren angezeigt und der Unterschied zur vorherigen Sekunde hervorgehoben.

Every 1.0s: /usr/bin/sensors

...
temp1:       +55C  (high =   +50C, hyst =   +45C)   sensor = thermistor   ALARM
temp2:     +35.0C  (high =   +80C, hyst =   +75C)   sensor = thermistor
temp3:     +35.0C  (high =   +80C, hyst =   +75C)   sensor = thermistor
 82
Author: johnnyB,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2015-01-15 00:31:20

Lm-sensoren

Lm-Sensoren ist eine Hardware-Gesundheit überwachungspaket für Linux. Es ermöglicht den Zugriff auf Informationen von temperatur, Spannung und Lüfterdrehzahl Drucksensoren. Es funktioniert mit den meisten neueren Computersystemen. Dieses Paket enthält Programme zu helfen sie richten Daten ein und lesen Sie aus lm-sensoren.

Zu installieren verwenden:

# sudo apt-get install lm-sensors sensors-applet

Zu verwenden :

# sensors-detect
...
# sensors
V1.5:      +2.467 V  (min =  +1.42 V, max =  +1.58 V)   ALARM
VCore:     +1.479 V  (min =  +1.48 V, max =  +1.63 V)   ALARM
V3.3:      +3.373 V  (min =  +3.13 V, max =  +3.47 V)
V5:       +5.000 V  (min =  +4.74 V, max =  +5.26 V)
V12:      +11.734 V  (min = +11.38 V, max = +12.62 V)
CPU_Fan:   2299 RPM  (min = 4000 RPM)                     ALARM
fan2:         0 RPM  (min =    0 RPM)
fan3:      1057 RPM  (min =    0 RPM)
fan4:         0 RPM  (min =    0 RPM)
CPU:      +41.50°C  (low  =   +10°C, high =   +50°C)
Board:    +35.25°C  (low  =   +10°C, high =   +35°C)
Remote:   +35.50°C  (low  =   +10°C, high =   +35°C)     ALARM
CPU_PWM:   144
Fan2_PWM:  112
Fan3_PWM:  112
vid:      +1.550 V  (VRM Version 9.0)

Oder fügen Sie das Applet zu Ihrer Taskleiste hinzu.

geben Sie hier die Bildbeschreibung ein


Du könntest es auch versuchen das computertemp-Applet.

Ubuntu-Paket -

Startseite

Computer-Temperatur-Monitor ist ein kleines Applet für den GNOME-Desktop das zeigt die Temperatur Ihres computer CPU-und Festplatten auf dem Bildschirm.

Sie können sich auch anmelden. in eine Datei. Sie können Alarme auf benachrichtigen sie, wenn eine tempertature ist ist. Mehrere Monitore können hinzugefügt werden um das Panel zu überwachen verschiedene Drucksensoren. Es ist entworfen, um zu schauen wie CPU-Frequenz Gnome-applet, so dass Sie passen Sie auf Systemsteuerung.

Zu installieren verwenden:

sudo apt-get install computertemp

Und dann zu Ihrer Taskleiste hinzufügen

geben Sie hier die Bildbeschreibung ein

 24
Author: lyarwood,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2011-08-11 16:30:37

Ich habe einen Dell-server (Poweredge R420) Ausführung Fedora / Red Hat Linux - . Ich habe lm_sensors installiert, aber sensors gab mir eine Meldung, dass die Kerneltreiber nicht geladen wurden. Ich habe Sensoren-Detect verwendet, um herauszufinden, welchen Sensor ich brauchte, und es stellte sich heraus, dass ich IPMI brauchte.

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

Driver `ipmisensors':
  * ISA bus, address 0xca8
    Chip `IPMI BMC KCS' (confidence: 8)

Warning: the required module ipmisensors 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.

Ich habe die Seite überprüft, die mir geraten hat, ipmitool zu verwenden. Ich habe es installiert, aber es würde immer noch nicht funktionieren:

$ ipmitool sensor
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
Get Device ID command failed
Unable to open SDR for reading

Nach weiteren Recherchen stieß ich auf Folgendes Seite: http://osdir.com/ml/hardware.ipmitool.devel/2008-02/msg00012.html

Ihr Skript ipmimod.sh für mich hat das funktioniert:

#!/bin/bash

#IPMI kernel module installer for Redhat-style machines
#dranch-3r7Miqu9kMnR7s880joybQ@xxxxxxxxxxxxxxxx

#07/26/06 - use absolute paths for modprobe
#05/01/06 - orig version

/sbin/modprobe ipmi_devintf

maj=`cat /proc/devices | awk '/ipmidev/{print $1}'`
echo $maj
if [ -c /dev/ipmi0 ]
then
   rm -f /dev/ipmi0
   /bin/mknod /dev/ipmi0 c $maj 0
else
   /bin/mknod /dev/ipmi0 c $maj 0
fi

IPMI_DRIVERS="ipmi_si ipmi_si_drv ipmi_kcs_drv"
for driver in $IPMI_DRIVERS; do
  find /lib/modules/`uname -r`/kernel/drivers/char/ipmi | grep $driver > /dev/null
  RETURN_VALUE=$?
  if [ $RETURN_VALUE -eq 0 ] ; then
    #Here are specific memory locations for Supermicro AOC-type IPMI cards
    /sbin/modprobe $driver type=kcs ports=0xca8 regspacings=4
    break
  fi
done

Nachdem ich das ausgeführt habe, kann ich endlich die CPU-Temperatur sehen:

$ ipmitool sensor | grep Temp
Inlet Temp       | 24.000     | degrees C  | ok    | na        | -7.000    | 3.000     | 42.000    | 47.000    | na
Temp             | na         | degrees C  | na    | na        | 3.000     | 8.000     | 77.000    | 83.000    | na
Temp             | na         | degrees C  | na    | na        | 3.000     | 8.000     | 77.000    | 83.000    | na

Ich hoffe, dies hilft jedem mit Dell-Servern, die Schwierigkeiten haben, die Temperaturen zu erreichen.

 9
Author: msb,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2016-10-01 09:43:57

Mit Linux können Sie auf Temperaturinformationssensoren zugreifen. Es funktioniert mit RH6. 2x64.

Dieser Treiber enthält Leseförderung mit lm-Sensoren:

Typ

modprobe coretemp
sensors
 6
Author: arik android_senior,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2013-07-18 13:43:11

Ich entdeckte andere Software mit GUI zur Temperaturüberwachung. Der Name der Software lautet: Psensor: https://wpitchoune.net/psensor/

Und siehe den Artikel aus dem Internet: https://www.tecmint.com/psensor-monitors-hardware-temperature-in-linux/

Um auf Ubuntu/Mint zu installieren, führen Sie diesen Befehl an Ihrem Terminal aus:

sudo apt install psensor

Um die Anwendung auszuführen, führen Sie einfach Folgendes aus:

sudo psensor

Dank.

 4
Author: Wellington1993,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2017-09-03 04:36:54

ACPI

Erwähnenswert eine Erwähnung der Befehl acpi,

acpi -t   # or -V for all

-t / --thermal: thermische Informationen anzeigen

Von apt-cache show acpi:

Description-de: zeigt Informationen zu ACPI-Geräten an Versucht, die Funktionalität des Befehls "old" apm auf ACPI-Systeme, einschließlich Batterie und thermische Informationen.
Unterstützt nicht ACPI Aussetzung, zeigt nur informationen zu ACPI-Geräten.

Startseite: http://sourceforge.net/projects/acpiclient

Auf Ubuntu-ähnlichen System können Sie es installieren mit

sudo apt-get install acpi

Hinweis: Sie können die Temperatur mit watch -n 1 -d acpi -V überwachen oder die Ausgabe (oder die Ausgabe sensors) mit einem Skript (mit oder ohne den Befehl date) analysieren, Farben hinzufügen und die Ausgabe in einer Datei protokollieren...

while [[ 1 ]] ; do acpi -t | awk '{printf ("%2.2f ",$4)}'; date; sleep 1 ; done

 3
Author: Hastur,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2017-05-25 10:19:34

Sie können die Befehlszeile in einer Conky-Datei zurückgeben, um sie auf Ihrem Bildschirmschoner anzuzeigen. Es ist immer noch weniger aufgebläht als ein space-Essen-applet.

sudo apt-get install conky

Dann konstruieren Sie die .conkyrc Datei Ihrer Träume in Ihrem/home / Benutzer Ordner und fügen Sie es zu Ihren Anwendungen lauched beim Start.

IMP: Siehe tutorials über conky oder eigene .conkyrc, Ubuntu und Ubuntu-fr Foren Threads, Lifehacker und mehr für schöne conky Setups.

 1
Author: zillion,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2015-07-29 19:45:32