Psensors 不显示 AMD radeon 卡的温度。解决方案?

W. *_*awk 4 overheating temperature radeon 16.04 amd-graphics

我在运行 Ubuntu 16.04 LTS 的笔记本电脑中遇到了一些过热问题,所以我只想使用 psensor 监控我的 GPU 温度。在我运行时正确安装依赖项和 psensor 本身之后

sensors
Run Code Online (Sandbox Code Playgroud)

在终端,我得到的是这个 -

acpitz-virtual-0
Adapter: Virtual device
temp1:        +46.0°C  (crit = +128.0°C)
temp2:         +0.0°C  (crit = +128.0°C)
temp3:        +37.0°C  (crit = +128.0°C)
temp4:        +42.0°C  (crit = +128.0°C)
temp5:        +24.0°C  (crit = +128.0°C)
temp6:       +127.0°C  (crit = +128.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:            N/A  (crit = +120.0°C, hyst = +90.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +47.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:         +46.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:         +44.0°C  (high = +87.0°C, crit = +105.0°C)
Run Code Online (Sandbox Code Playgroud)

正如您所看到的,我的 GPU 温度没有显示出来。知道为什么吗?

而且,temp6 显示 127 C,这很奇怪,因为我的 PC 中没有任何东西接近该温度。

电脑配置:HP ProBook 4540s Intel Corei5-3230M 2.60 GHz 4GB RAM AMD Radeon HD 7650

cAM*_*AMP 6

您的笔记本电脑可能有 2 个 GPU(一个集成,一个离散)。

当您运行时sensors,独立 GPU 关闭,因此没有可用的温度读数。

您必须首先激活您的离散 (Radeon) 卡,然后sensors再次运行。

我发现的一种简单方法是:

  1. 你安装 mesa-utils ( apt install mesa-utils)
  2. 然后像这样打开独立显卡运行 glxgears: DRI_PRIME=1 glxgears
  3. 当 glxgears 运行时,打开一个新的终端窗口并sensors再次运行。您现在应该会看到 Radeon 卡的温度读数。

上述方法适用于我的 Radeon 卡。

我认为问题是由于 Linux 内核为 Radeon 卡打开了 DPM(动态电源管理)。这是有道理的,因为您不希望您的独立 GPU 一直处于开启状态并消耗电力。