Featured image of post Debian获取风扇信息(微星B560M MORTAR)

Debian获取风扇信息(微星B560M MORTAR)

目前 PVE 使用的 Sensor 无法获取到风扇信息,为了解决这个问题,我经过一番查找,终于解决了。现在把方法分享出来。

在使用sensors-detect后,sensors中只加载到了coretemp, 没有别的信息

第一步: 确认芯片型号

自己从主板上确认芯片型号,有 ITE 和 nct 两种。

第二步: 安装驱动

PVE 是debian系

如果没有安装过 dkms ,需要先安装依赖

1
apt-get install build-essential linux-headers-$(uname -r) dkms dh-dkms

编译和安装dkms

1
2
3
git clone https://github.com/Fred78290/nct6687d
cd nct6687d
make dkms/install

安装成功后,执行 sensors 就可以看到设备信息了。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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

也可以用这个命令直接添加

1
sh -c 'echo "nct6687" >> /etc/modules'

参考文档

  1. Fred78290/nct6687d
  2. frankcrawford/it87
使用 Hugo 构建
主题 StackJimmy 设计