有一个众所周知的问题,即某些芯片会报告完全虚假的温度读数(可能是因为根本没有连接传感器)。但它们会显示在 lm_sensors 输出中:
nct6798-isa-0290
Adapter: ISA adapter
AUXTIN0: +26.0°C (high = +80.0°C, hyst = +75.0°C)
(crit = +100.0°C) sensor = thermistor
AUXTIN1: +8.0°C (high = +80.0°C, hyst = +75.0°C)
(crit = +125.0°C) sensor = thermistor
AUXTIN2: -11.0°C (high = +80.0°C, hyst = +75.0°C)
(crit = +125.0°C) sensor = thermistor
AUXTIN3: +26.0°C (high = +80.0°C, hyst = +75.0°C)
(crit = +100.0°C) sensor = thermistor
AUXTIN4: +79.0°C (high = +80.0°C, hyst = +75.0°C) ALARM
(crit = +100.0°C)
如何排除/忽略这些传感器?
我尝试将其添加到 /etc/sensors3.conf 和 /etc/sensors.d/nuvoton,但没有成功:
chip "nct6798-*"
ignore "AUXTIN0"
ignore "AUXTIN1"
ignore "AUXTIN2"
ignore "AUXTIN3"
ignore "AUXTIN4"
编辑:如果我停止 lm_sensors.service,输出中会消失大量读数sensors
。如果我再次启动它,我试图忽略的读数又会回来。守护进程的配置是否不同?
环境:
- Fedora 39 x86_64
- lm_sensors 3.6.0
答案1
按照@harrymc 的建议检查输出sensors -u
,我注意到每个“AUXTIN*”条目下面都有几个读数:
AUXTIN3:
temp6_input: 26.000
temp6_max: 80.000
temp6_max_hyst: 75.000
temp6_crit: 100.000
temp6_alarm: 0.000
temp6_type: 4.000
temp6_offset: 0.000
temp6_beep: 0.000
因此我改变了配置来引用这些temp*
值而不是AUXTIN*
:
chip "nct6798-*"
ignore temp3
ignore temp4
ignore temp5
ignore temp6
ignore temp7
而且它成功了!