Linux、风扇和 PWM

Linux、风扇和 PWM

我正在尝试在 Linux 下控制我的风扇。我有 5 个机箱风扇 + CPU 风扇。尝试了很多解决方案,但都不起作用。

我的主板是华硕 Z170 Deluxe,所有风扇都是 3 针,所以没有 pwm。尝试运行以下命令:

sudo sensors-detect

我当时对所有的答案都是肯定的:

 Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

Driver `lm92':
  * Bus `SMBus I801 adapter at f000'
    Busdriver `i2c_i801', I2C address 0x48
    Chip `lm92' (confidence: 6)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
lm92
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)yes
Successful!

Monitoring programs won't work until the needed modules are
loaded. You may want to run '/etc/init.d/kmod start'
to load them.

Unloading cpuid... OK

然后在 grub 文件中编辑此行:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_enforce_resources=lax"

然后重新启动并:

~$ /etc/init.d/kmod start
[ ok ] Starting kmod (via systemctl): kmod.service


~$ sensors
asus-isa-0000
Adapter: ISA adapter
cpu_fan:        0 RPM

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +30.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:        +28.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:        +27.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:        +27.0°C  (high = +80.0°C, crit = +100.0°C)

lm92-i2c-0-48
Adapter: SMBus I801 adapter at f000
temp1:        +14.0°C  (low  = +14.0°C, hyst = +28.0°C)
                       (high = +14.0°C, hyst =  +0.0°C)
                       (crit = +14.0°C, hyst =  +0.0°C)

$ 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.

/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed

$ fancontrol
Loading configuration from /etc/fancontrol ...
Error: Can't read configuration file

我还尝试检查热区并发现了这一点:

$ cd /sys/class/thermal ; ls
cooling_device0  cooling_device2  cooling_device4  cooling_device6  cooling_device8
cooling_device1  cooling_device3  cooling_device5  cooling_device7  thermal_zone0
$ cat /sys/class/thermal/thermal_zone0/type
x86_pkg_temp
$ cat /sys/class/thermal/cooling_device0/type
Processor
$ cat /sys/class/thermal/cooling_device1/type
Processor
$ cat /sys/class/thermal/cooling_device2/type
Processor
$ cat /sys/class/thermal/cooling_device3/type
Processor
$ cat /sys/class/thermal/cooling_device4/type
Processor
$ cat /sys/class/thermal/cooling_device5/type
Processor
$ cat /sys/class/thermal/cooling_device6/type
Processor
$ cat /sys/class/thermal/cooling_device7/type
Processor
$ cat /sys/class/thermal/cooling_device8/type
intel_powerclamp

现在我没有其他解决方案了,有什么帮助吗?

答案1

正如这里解释的那样Dell Vostro 200 风扇速度- 你可以尝试这个实用程序https://github.com/ichiriac/ubuntu-smart-fan,它基于lm-sensors并管理风扇速度。

启动时,您可以将其作为监视器运行,以便设定风扇行为,并根据您的 CPU 和风扇行为设置参数。

校准温度和阈值后,您将能够将其作为守护进程运行

相关内容