我如何获得CPU的温度?
安装lm-sensors![安装lm-sensors](https://i.stack.imgur.com/73xDO.png)
sudo apt-get install lm-sensors
安装后在终端键入以下内容
sudo sensors-detect
你可能还需要运行
sudo service kmod start
它将问你几个问题。对所有问题回答 "是"。最后,在终端上输入 "sensors "来获取CPU的温度。
sensors
输出:
$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +41.0°C (high = +78.0°C, crit = +100.0°C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1: +41.0°C (high = +78.0°C, crit = +100.0°C)
w83627dhg-isa-0290
Adapter: ISA adapter
Vcore: +1.10 V (min = +0.00 V, max = +1.74 V)
in1: +1.60 V (min = +1.68 V, max = +1.44 V) ALARM
AVCC: +3.30 V (min = +2.98 V, max = +3.63 V)
VCC: +3.28 V (min = +2.98 V, max = +3.63 V)
in4: +1.85 V (min = +1.66 V, max = +1.11 V) ALARM
in5: +1.26 V (min = +1.72 V, max = +0.43 V) ALARM
in6: +0.09 V (min = +1.75 V, max = +0.62 V) ALARM
3VSB: +3.30 V (min = +2.98 V, max = +3.63 V)
Vbat: +3.18 V (min = +2.70 V, max = +3.30 V)
fan1: 0 RPM (min = 10546 RPM, div = 128) ALARM
fan2: 892 RPM (min = 2136 RPM, div = 8) ALARM
fan3: 0 RPM (min = 10546 RPM, div = 128) ALARM
fan4: 0 RPM (min = 10546 RPM, div = 128) ALARM
fan5: 0 RPM (min = 10546 RPM, div = 128) ALARM
temp1: +36.0°C (high = +63.0°C, hyst = +55.0°C) sensor = diode
temp2: +39.5°C (high = +80.0°C, hyst = +75.0°C) sensor = diode
temp3: +119.0°C (high = +80.0°C, hyst = +75.0°C) ALARM sensor = thermistor
cpu0_vid: +2.050 V
查看硬盘温度 安装hddtemp ![安装hddtemp](https://i.stack.imgur.com/73xDO.png)
sudo apt-get install hddtemp
输出:
$ sudo hddtemp /dev/sda
/dev/sda: ST3160813AS: 34°C
快速的命令行解决方案;以摄氏度(m°C)显示温度。
cat /sys/class/thermal/thermal_zone*/temp
小程序
如果你正在寻找一个更容易访问的版本,请在Gnome-Panel中添加一个硬件传感器监视器。
sudo apt-get install sensors-applet
- 这将安装 sensors-applet ! [Install sensors-applet](https://hostmar.co/software-large) 包
3.右键单击面板,选择添加到面板...
,然后选择这个。
4.你就完成了。你可以通过右击小程序并选择偏好->传感器
来配置哪些传感器被显示。
`[alt text][3]
computertemp ![安装computertemp](https://hostmar.co/software-large)是一个显示你当前CPU温度的简单小程序,它还有一些额外的功能,如警报。不幸的是,它不可能(或至少我不知道如何)改变其背景颜色,所以它在标准的Ubuntu主题下看起来不是很好。
它的安装方法与evgeny'的回答中描述的传感器-小程序相同。
computertemp在较新的Ubuntu软件库中不可用。