1.先確定你系統是不是64位
uname -p
x86_64
如果是x84_64,那麼恭喜你,你可以繼續看下去了,如果是i686和i386的,那不好意思,請你去重裝系統吧.
2.安裝
yum install lm_sensors -y
#配置
sh -c "yes|sensors-detect"
#載入模組
modprobe i2c-dev
modprobe coretemp (如果是64位系統,這步就直接通過了,如果是32位系統,這步是我弄死都過不去的一道坎)
#查看CPU溫度
1、使用命令sensors (管理使用者,主節點)
[root@console ~]# sensors
w83627hf-isa-0a00
Adapter: ISA adapter
VCore 1: +1.15 V (min = +0.00 V, max = +0.00 V) ALARM
VCore 2: +1.15 V (min = +0.00 V, max = +0.00 V) ALARM
+3.3V: +3.22 V (min = +3.14 V, max = +3.47 V)
+5V: +5.11 V (min = +4.76 V, max = +5.24 V)
+12V: +5.78 V (min = +10.82 V, max = +13.19 V) ALARM
-12V: -5.45 V (min = -13.18 V, max = -10.80 V) ALARM
-5V: +2.94 V (min = -5.25 V, max = -4.75 V) ALARM
V5SB: +5.67 V (min = +4.76 V, max = +5.24 V) ALARM
VBat: +3.34 V (min = +2.40 V, max = +3.60 V)
fan1: 5273 RPM (min = 0 RPM, div = 8)
fan2: 5818 RPM (min = 0 RPM, div = 8)
fan3: 5818 RPM (min = 883 RPM, div = 8)
temp1: +64°C (high = -1°C, hyst = -1°C) sensor = thermistor ALARM
temp2: -3.0°C (high = +80°C, hyst = +75°C) sensor = diode
temp3: -3.0°C (high = +80°C, hyst = +75°C) sensor = diode
vid: +0.000 V (VRM Version 8.2)
alarms: Chassis intrusion detection ALARM
beep_enable:
Sound alarm enabled
2、gpu
GPU 0000:82:00.0
Product Name : GeForce GTX 460
Display Mode : N/A
Persistence Mode : Disabled
Driver Model
Current : N/A
Pending : N/A
Serial Number : N/A
GPU UUID : N/A
VBIOS Version : 70.04.13.00.00
Inforom Version
OEM Object : N/A
ECC Object : N/A
Power Management Object : N/A
PCI
Bus : 0x82
Device : 0x00
Domain : 0x0000
Device Id : 0x0E2210DE
Bus Id : 0000:82:00.0
Sub System Id : 0x23221462
GPU Link Info
PCIe Generation
Max : 2
Current : 1
Link Width
Max : 16x
Current : 16x
Fan Speed : 52 %
Performance State : N/A
Memory Usage
Total : 1023 MB
Used : 3 MB
Free : 1019 MB
Compute Mode : Default
Utilization
Gpu : N/A
Memory : N/A
Ecc Mode
Current : N/A
Pending : N/A
ECC Errors
Volatile
Single Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Total : N/A
Double Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Total : N/A
Aggregate
Single Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Total : N/A
Double Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Total : N/A
Temperature
Gpu : 41 C
Power Readings
Power Management : N/A
Power Draw : N/A
Power Limit : N/A
Clocks
Graphics : N/A
SM : N/A
Memory : N/A
Max Clocks
Graphics : N/A
SM : N/A
Memory : N/A
Compute Processes : Not Supported
可以看到我cpu的溫度有點高,筆記本將就了.
ps:
其他查看cpu溫度命令:
cat /proc/acpi/thermal_zone/THRM/temperature (這條我在我機器上是可以用的)
這兩條沒有測試過:
cat /sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp
cat /proc/acpi/thermal_zone/THM0/temperature
補充一篇文章:
監控cpu溫度?顯卡溫度和硬碟溫度
1.安裝applet
luther@gliethttp:~$ apt-get install lm-sensors sensors-applet // 之後添加"Hardware Sensors Monitor到面板上,如果沒有該applet,那麼重啟一下電腦就可以了.
luther@gliethttp:~$ sudo sensors-detect // 一路斷行符號就可以了
效果圖:
2.安裝硬體檢測軟體
luther@gliethttp:~$ sudo apt-get install hddtemp
luther@gliethttp:~$ sudo hddtemp /dev/sda
/dev/sda: ST3160815AS: 36°C