571 字
3 分钟
Debian获取风扇信息(微星B560M MORTAR)
目前 PVE 使用的 Sensor 无法获取到风扇信息,为了解决这个问题,我经过一番查找,终于解决了。现在把方法分享出来。
在使用sensors-detect后,sensors中只加载到了coretemp, 没有别的信息
第一步: 确认芯片型号
需要确认主板上的芯片型号,有 ITE 和 nct 两种。
- ITE的可以去 frankcrawford/it87 参考和安装
- 微星B560M MORTAR 主板使用的 nct 芯片, 开源的驱动在 Fred78290/nct6687d
第二步: 安装驱动
PVE 是debian系
如果没有安装过 dkms ,需要先安装依赖
apt-get install build-essential linux-headers-$(uname -r) dkms dh-dkms
编译和安装dkms
git clone https://github.com/Fred78290/nct6687d
cd nct6687d
make dkms/install
安装成功后,执行 sensors
就可以看到设备信息了。
nct6687-isa-0a20
Adapter: ISA adapter
+12V: 12.02 V (min = +12.00 V, max = +12.05 V)
+5V: 7.01 V (min = +7.00 V, max = +7.03 V)
+3.3V: 3.35 V (min = +0.00 V, max = +3.36 V)
CPU Soc: 832.00 mV (min = +0.83 V, max = +1.23 V)
CPU Vcore: 676.00 mV (min = +0.68 V, max = +0.68 V)
CPU 1P8: 0.00 V (min = +0.00 V, max = +0.00 V)
CPU VDDP: 0.00 V (min = +0.00 V, max = +0.00 V)
DRAM: 1.66 V (min = +1.66 V, max = +2.49 V)
Chipset: 1.06 V (min = +1.06 V, max = +1.06 V)
CPU SA: 1.24 V (min = +1.24 V, max = +1.24 V)
Voltage #2: 1.52 V (min = +1.52 V, max = +1.52 V)
AVCC3: 3.36 V (min = +3.36 V, max = +3.38 V)
AVSB: 3.35 V (min = +0.00 V, max = +3.36 V)
VBat: 1.06 V (min = +0.00 V, max = +1.06 V)
CPU Fan: 1213 RPM (min = 1188 RPM, max = 1481 RPM)
Pump Fan: 0 RPM (min = 0 RPM, max = 0 RPM)
System Fan #1: 0 RPM (min = 0 RPM, max = 0 RPM)
System Fan #2: 0 RPM (min = 0 RPM, max = 0 RPM)
System Fan #3: 0 RPM (min = 0 RPM, max = 0 RPM)
System Fan #4: 0 RPM (min = 0 RPM, max = 0 RPM)
System Fan #5: 0 RPM (min = 0 RPM, max = 0 RPM)
System Fan #6: 0 RPM (min = 0 RPM, max = 0 RPM)
CPU: +48.5°C (low = +47.0°C, high = +62.5°C)
System: +48.0°C (low = +47.5°C, high = +49.0°C)
VRM MOS: +45.5°C (low = +45.5°C, high = +46.0°C)
PCH: +54.0°C (low = +52.0°C, high = +55.0°C)
CPU Socket: +45.5°C (low = +45.5°C, high = +46.0°C)
PCIe x1: +23.0°C (low = +23.0°C, high = +23.0°C)
M2_1: +13.5°C (low = +13.0°C, high = +14.0°C)
如果需要控制风扇转速,可以使用 pwmconfig
等控制
第三步: 配置自动加载驱动
编辑 /etc/modules
文件,增加一行 nct6687
。
也可以用这个命令直接添加
sh -c 'echo "nct6687" >> /etc/modules'
参考文档
Waiting for api.github.com...
Waiting for api.github.com...
Debian获取风扇信息(微星B560M MORTAR)
https://www.jianyun.run/posts/msi-b560m-fan-sensor/