Cara Memeriksa Temperatur CPU Melalui Terminal Linux

Minggu, 26 Mei 2019

Cara Memeriksa Temperatur CPU Melalui Terminal Linux. Ini adalah tutorial lanjutan dari tutorial sebelumnya tentang cara cek sensor GPU. Nah untuk memeriksa sensor CPU juga cukup mudah.



Kita bisa gunakan LM_Sensors untuk memeriksa suhu CPU. Seharusnya ini sudah terinstall di sistem saat kita menginstall OS, namun jika belum terinstall, kalian bisa menginstallnya dengan perintah berikut.
Arch Linux
sudo pacman -S lm_sensors

RHEL, CentOS, Fedora
sudo yum install lm_sensors
atau
sudo dnf install lm_sensors

Debian, Ubuntu, Linux Mint
sudo apt-get install lm-sensors

On SUSE, openSUSE
sudo zypper in sensors

Setelah selesai diinstall, kita lakukan konfigurasi dengan perintah
sudo sensors-detect
Contoh output:
# sensors-detect revision 6284 (2015-05-31 14:00:33 +0200)
# System: Micro-Star International Co., Ltd. GL62MVR 7RFX [REV:1.0] (laptop)
# Board: Micro-Star International Co., Ltd. MS-16JB
# Kernel: 4.15.0-48-generic x86_64
# Processor: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (6/158/9)

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): 
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 16h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 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
..................................

Sekarang kita jalankan perintah untuk memeriksa suhu CPU
sensors
Contoh output
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +57.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +54.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +55.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +53.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +54.0°C  (high = +100.0°C, crit = +100.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1:        +58.0°C  (crit = +100.0°C)
temp2:        +27.8°C  (crit = +119.0°C)
temp3:        +29.8°C  (crit = +119.0°C)

iwlwifi-virtual-0
Adapter: Virtual device
temp1:        +47.0°C  

pch_skylake-virtual-0
Adapter: Virtual device
temp1:        +63.0°C  

Bisa juga dipadukan dengan watch agar outputnya realtime.
watch -n 2 sensors

Oke sekian tutorial kali ini, semoga bermanfaat. Jika ada yang kurang jelas silahkan ditanyakan.

Artikel Terkait Linux ,Utilities