我使用 Ubuntu 18.04.2,我安装了 lm-sensors,当我sensors
在终端中输入命令时它给出的结果:
(base) avy@avy-Moi:~$ sensors
asus-isa-0000
Adapter: ISA adapter
cpu_fan: 0 RPM
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +119.0°C)
nouveau-pci-0100
Adapter: PCI adapter
fan1: 0 RPM
temp1: +35.0°C (high = +95.0°C, hyst = +3.0°C)
(crit = +105.0°C, hyst = +5.0°C)
(emerg = +135.0°C, hyst = +5.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +27.0°C (high = +82.0°C, crit = +100.0°C)
Core 0: +26.0°C (high = +82.0°C, crit = +100.0°C)
Core 1: +26.0°C (high = +82.0°C, crit = +100.0°C)
Core 2: +27.0°C (high = +82.0°C, crit = +100.0°C)
Core 3: +27.0°C (high = +82.0°C, crit = +100.0°C)
Core 4: +25.0°C (high = +82.0°C, crit = +100.0°C)
Core 5: +27.0°C (high = +82.0°C, crit = +100.0°C)
但是我的风扇没有出现,我有 4 个。3 个仅用于盒子本身并连接到主板,1 个用于水冷装置,也连接到主板。
即使有风扇控制:
(base) avy@avy-Moi:~$ sudo pwmconfig
# pwmconfig revision 6243 (2014-03-20)
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.
We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.
Found the following devices:
hwmon0 is acpitz
hwmon1 is coretemp
hwmon2 is asus
hwmon3 is nouveau
Found the following PWM controls:
hwmon3/pwm1 current value: 0
hwmon3/pwm1 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n) y
Giving the fans some time to reach full speed...
Found the following fan sensors:
hwmon2/fan1_input current speed: 0 ... skipping!
hwmon3/fan1_input current speed: 0 ... skipping!
There are no working fan sensors, all readings are 0.
Make sure you have a 3-wire fan connected.
You may also need to increase the fan divisors.
See doc/fan-divisors for more information.
答案1
不久前我遇到了这个问题。据我所知,内核阻止lm-sensors
查看风扇使用情况,因此我修改了 GRUB 设置以允许lm-sensors
访问此信息。首先,打开配置文件:
sudo gedit /etc/default/grub
然后将GRUB_CMDLINE_LINUX
选项设置为以下内容:
# This allows fan usage to be read by lm-sensors
GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"
保存文件并关闭,然后更新您的 GRUB 设置:
sudo update-grub
在终端中执行sensors
现在应该会显示风扇的 RPM。可能不是您机器的每个风扇都显示出来 - 对于我的机器,没有显示任何 ASST_FAN。
也许我可以通过对你的主板进行配置来解决这个问题,如下所述这里,但我对通过调整 GRUB 配置所获得的信息感到满意。
答案2
我认为传感器检测无法识别芯片。再次检查 nct6775.c 后,它应该将其视为 nct6798d。
将以下内容添加到文件GRUB_CMDLINE_LINUX_DEFAULT
中的变量中/etc/default/grub
:acpi_enforce_resources=lax
然后重建 grub 配置grub-mkconfig -o /boot/grub/grub.cfg
并重新启动。 sensors-detect
之后可能会检测到它,也可能不会。
一旦 grub 更改生效,它应该很简单,modprobe nct6775
只需显示一些内容即可sensors
。如果这似乎有效,请手动将其添加到/etc/modules
以保留更改。您可能还需要进行编辑/etc/sensors3.conf
以获取所有正确的传感器输出。
有一个例子这里对于 nct6791d,它可能有效,您可能需要寻找 sensor3.conf 的 nct6798d 版本。