我找到了这个帖子
https://linuxconfig.org/monitor-amd-ryzen-temperatures-in-linux-with-latest-kernel-modules
但是他们使用的 git 存储库不再存在,所以我无法尝试。
硬件:
@SERVER:~$ sudo sensors-detect
# sensors-detect revision 6284 (2015-05-31 14:00:33 +0200)
# Board: ASUSTeK COMPUTER INC. ROG STRIX X370-F GAMING
# Kernel: 4.15.0-38-generic x86_64
# Processor: AMD Ryzen 7 1800X Eight-Core Processor (23/1/1)
......
Sorry, no sensors were detected.
Either your system has no sensors, or they are not supported, or
they are connected to an I2C or SMBus adapter that is not
supported. If you find out what chips are on your board, check
http://www.lm-sensors.org/wiki/Devices for driver status.
答案1
从 Linux 内核版本开始4.15(这是默认的Ubuntu 18.04.1)、it87
和nct6775
模块都包含在发行版中。您不必自己编译它们。
以下是it87
目前能够实现的功能 – 在此示例中AMD 锐龙 5 2600:
$ sensors
it8792-isa-0a60
Adapter: ISA adapter
in0: +0.80 V (min = +0.00 V, max = +2.78 V)
in1: +1.02 V (min = +0.00 V, max = +2.78 V)
in2: +1.08 V (min = +0.00 V, max = +2.78 V)
+3.3V: +1.67 V (min = +0.00 V, max = +2.78 V)
in4: +1.30 V (min = +0.00 V, max = +2.78 V)
in5: +1.17 V (min = +0.00 V, max = +2.78 V)
in6: +2.78 V (min = +0.00 V, max = +2.78 V) ALARM
3VSB: +1.67 V (min = +0.00 V, max = +2.78 V)
Vbat: +1.60 V
fan1: 0 RPM (min = 0 RPM)
fan2: 0 RPM (min = 0 RPM)
fan3: 0 RPM (min = 0 RPM)
temp1: +30.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp2: +34.0°C (low = +127.0°C, high = +127.0°C) sensor = Intel PECI
temp3: +34.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
intrusion0: ALARM
如果您需要每个核心温度和/或更好的支持AMD Zen 2CPU,它们将用于4.21 内核版本– 希望到2019 年第一季度。有关 Phoronix 的更多信息。
更新:4.21 刚刚升级为 5.0,5.0-rc1 版本