
我已经按照基本流程检测了我的传感器(nct-6791芯片),但我从传感器获得的信息如下:
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +105.0°C)
temp2: +29.8°C (crit = +105.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +32.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +27.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +27.0°C (high = +80.0°C, crit = +100.0°C)
Core 2: +21.0°C (high = +80.0°C, crit = +100.0°C)
Core 3: +24.0°C (high = +80.0°C, crit = +100.0°C)
asus-isa-0000
Adapter: ISA adapter
cpu_fan: 0 RPM
我已经检查了sensors3.conf,它有如下芯片的条目,但在我看来,传感器要么没有读取conf,要么可能是内核缺少对该芯片的支持。
chip "w83627ehf-*" "w83627dhg-*" "w83667hg-*" "nct6775-*" "nct6776-*" "nct6779-*" "nct6791-*"
label in0 "Vcore"
label in2 "AVCC"
label in3 "+3.3V"
label in7 "3VSB"
label in8 "Vbat"
label fan1 "Fan 1"
label fan2 "CPU fan"
# The correponding pwm also controls the 'CPU Opt' fan
label fan3 "Fan 2"
label fan4 "Fan 3"
label fan5 "Fan 4"
label fan6 "CPU fan 2"
# 'CPU Opt' header
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 3.3 * 0.90
set in3_max 3.3 * 1.10
set in7_min 3.3 * 0.90
set in7_max 3.3 * 1.10
set in8_min 3.0 * 0.90
set in8_max 3.3 * 1.10
不管怎样,我都不够聪明,没有指导就不知道下一步该怎么做。我很乐意根据说明进行更改,但目前我自己深入挖掘的能力相当薄弱。我不想控制速度,只想在我的 conky 仪表板上报告速度。
提前致谢
答案1
我碰巧也有这块主板,现在它主要运行 Ubuntu 而不是 Windows,我最终决定弄清楚如何在不使用 BIOS UI 的情况下控制风扇。
简而言之;
使用 lax acpi 资源共享启动并加载 nct6775 驱动程序。
grep CMDLINE /etc/default/grub
GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"
update-grub
reboot
modprobe nct6775
保留 GRUB_CMDLINE_LINUX_DEFAULT 原样,除非您有理由更改它。
在做松懈的事情之前,加载 nct6775 模块后我可以在 dmesg 中看到此错误:
[84740.224136] nct6775: Enabling hardware monitor logical device mappings.
[84740.224146] nct6775: Found NCT6791D or compatible chip at 0x2e:0x290
[84740.224151] ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x0000000000000299 (\_GPE.HWM) (20210331/utaddress-204)
[84740.224156] ACPI: OSL: Resource conflict; ACPI support missing from driver?
之后,我得到了这些传感器:
# sensors
(...)
nct6791-isa-0290
Adapter: ISA adapter
Vcore: 880.00 mV (min = +0.00 V, max = +1.74 V)
in1: 1.02 V (min = +0.00 V, max = +0.00 V) ALARM
AVCC: 3.38 V (min = +2.98 V, max = +3.63 V)
+3.3V: 3.38 V (min = +2.98 V, max = +3.63 V)
in4: 1.02 V (min = +0.00 V, max = +0.00 V) ALARM
in5: 1.99 V (min = +0.00 V, max = +0.00 V) ALARM
in6: 384.00 mV (min = +0.00 V, max = +0.00 V) ALARM
3VSB: 3.41 V (min = +2.98 V, max = +3.63 V)
Vbat: 3.30 V (min = +2.70 V, max = +3.63 V)
in9: 1.01 V (min = +0.00 V, max = +0.00 V) ALARM
in10: 0.00 V (min = +0.00 V, max = +0.00 V)
in11: 824.00 mV (min = +0.00 V, max = +0.00 V) ALARM
in12: 104.00 mV (min = +0.00 V, max = +0.00 V) ALARM
in13: 96.00 mV (min = +0.00 V, max = +0.00 V) ALARM
in14: 424.00 mV (min = +0.00 V, max = +0.00 V) ALARM
fan1: 742 RPM (min = 0 RPM)
fan2: 558 RPM (min = 0 RPM)
fan3: 906 RPM (min = 0 RPM)
fan4: 0 RPM (min = 0 RPM)
fan5: 0 RPM (min = 0 RPM)
fan6: 0 RPM (min = 0 RPM)
SYSTIN: +63.0°C (high = +0.0°C, hyst = +0.0°C) sensor = thermistor
CPUTIN: +50.0°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor
AUXTIN0: -128.0°C sensor = thermistor
AUXTIN1: -128.0°C sensor = thermistor
AUXTIN2: +35.0°C sensor = thermistor
AUXTIN3: +63.0°C sensor = thermistor
PECI Agent 0: +50.0°C
PCH_CHIP_CPU_MAX_TEMP: +0.0°C
PCH_CHIP_TEMP: +0.0°C
PCH_CPU_TEMP: +0.0°C
intrusion0: ALARM
intrusion1: ALARM
beep_enable: disabled
(...)
还有这些风扇控制器:
# find /sys/ -name 'pwm?'
/sys/devices/platform/nct6775.656/hwmon/hwmon3/pwm5
/sys/devices/platform/nct6775.656/hwmon/hwmon3/pwm3
/sys/devices/platform/nct6775.656/hwmon/hwmon3/pwm1
/sys/devices/platform/nct6775.656/hwmon/hwmon3/pwm4
/sys/devices/platform/nct6775.656/hwmon/hwmon3/pwm2
您可以阅读此讨论,了解为什么需要使用 lax acpi 参数。使用它可能很安全,但要小心。老实说,我不知道可能出现什么问题,但您可以进一步研究这一点。
总结一下——你看到的内核消息是正确的。要避免这种情况,需要编写新的驱动程序。如果你亲自您可以传递 acpi_enforce_resources=lax 选项,并且可以放心地忽略风险,但这不能是默认选项,因为在一般情况下它是不安全的,所以它不是解决更广泛问题的方案。
当它工作后,使用fancontrol
实用程序在自动模式下控制风扇速度或使用手动配置风扇速度pwmconfig
。
答案2
运行sensors-detect
。它将检测并更新您的模块。
我仍然需要/etc/sensors3.conf
在主板上找到芯片组的更新条目。
但是,我的 asus-isa-0000 也显示 0 速度,但我的 nct6779 现在显示一切正常。