Fedora 上无法控制风扇

Fedora 上无法控制风扇

升级到 Fedora 27(现在是 FC30)后,我的旧戴尔工作站上的风扇运行得非常快。

我尝试过使用 lm_sensors 包和“fancontrol”。

我的系统如下:

> sensors
coretemp-isa-0001
Adapter: ISA adapter
Core 0:       +35.0°C  (high = +87.0°C, crit = +103.0°C)
Core 1:       +35.0°C  (high = +87.0°C, crit = +103.0°C)
Core 2:       +36.0°C  (high = +87.0°C, crit = +103.0°C)
Core 3:       +34.0°C  (high = +87.0°C, crit = +103.0°C)

dell_smm-virtual-0
Adapter: Virtual device
Processor Fan:    794 RPM
Processor Fan:   1102 RPM
Motherboard Fan: 1132 RPM
Ambient:          +17.0°C

nouveau-pci-0300
Adapter: PCI adapter
GPU core:     +1.18 V  (min =  +1.05 V, max =  +1.18 V)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +37.0°C  (high = +87.0°C, crit = +103.0°C)
Core 1:       +40.0°C  (high = +87.0°C, crit = +103.0°C)
Core 2:       +40.0°C  (high = +87.0°C, crit = +103.0°C)
Core 3:       +40.0°C  (high = +87.0°C, crit = +103.0°C)

nouveau-pci-0400
Adapter: PCI adapter
GPU core:     +1.05 V  (min =  +0.75 V, max =  +1.10 V)
temp1:        +43.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)

pwmconfig 的输出

> pwmconfig

# Initial output from
hwmon0 is nouveau
   hwmon1 is nouveau
   hwmon2 is dell_smm
   hwmon3 is coretemp
   hwmon4 is coretemp

Found the following PWM controls:
   hwmon2/pwm1           current value: 255
   hwmon2/pwm2           current value: 255
   hwmon2/pwm3           current value: 255

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon2/fan1_input     current speed: 947 RPM
   hwmon2/fan2_input     current speed: 1530 RPM
   hwmon2/fan3_input     current speed: 1230 RPM

我尝试手动编写/etc/fancontrol文件:

INTERVAL=5
DEVPATH=hwmon0=devices/pci0000:00/0000:00:03.0/0000:03:00.0 hwmon1=devices/pci0000:00/0000:00:07.0/0000:04:00.0 hwmon2=devices/virtual/hwmon/hwmon2/device hwmon3=devices/platform/coretemp.0 hwmon4=devices/platform/coretemp.1
DEVNAME=hwmon0=nouveau hwmon1=nouveau hwmon2=dell_smm hwmon3=coretemp hwmon4=coretemp
FCTEMPS=hwmon2/device/pwm1=hwmon2/temp1_input hwmon2/device/pwm2=hwmon2/temp2_input hwmon2/device/pwm3=hwmon2/temp3_input
FCFANS=hwmon2/device/pwm1=hwmon2/fan1_input hwmon2/device/pwm2=hwmon2/fan2_input hwmon2/device/pwm3=hwmon2/fan3_input
MINTEMP=hwmon2/device/pwm1=20
MAXTEMP=hwmon2/device/pwm1=55
MINSTART=hwmon2/device/pwm1=150
MINSTOP=hwmon2/device/pwm1=105
MINTEMP=hwmon2/device/pwm2=20
MAXTEMP=hwmon2/device/pwm2=55
MINSTART=hwmon2/device/pwm2=150
MINSTOP=hwmon2/device/pwm2=105
MINTEMP=hwmon2/device/pwm3=20
MAXTEMP=hwmon2/device/pwm3=55
MINSTART=hwmon2/device/pwm3=150
MINSTOP=hwmon2/device/pwm3=105

我通过搜索设备和名称获得了这些值:

# Devices
for d in `seq 0 5`
do
  readlink -f /sys/class/hwmon/hwmon$d/device | sed -e 's/^\/sys\///'
done

devices/pci0000:00/0000:00:03.0/0000:03:00.0
devices/pci0000:00/0000:00:07.0/0000:04:00.0
devices/virtual/hwmon/hwmon2/device
devices/platform/coretemp.0
devices/platform/coretemp.1

# Names:
for d in `seq 0 5`
do
  cat /sys/class/hwmon/hwmon$d/name
done

nouveau
nouveau
dell_smm
coretemp
coretemp

当我运行 fancontrol 时,它说:

Device path of hwmon2 has changed
Configuration appears to be outdated, please run pwmconfig again

当我运行 pwmconfig 时,我可以听到其中一个风扇变慢的声音,因此它似乎能够影响硬件。 pwmconfig 写入配置文件后,我运行 fancontrol 但出现错误:

  1. 它无法从 /sys/class/hwmon/hwmon2/pwm1 读取,如果我注释掉该行(手动设置值以便脚本可以继续)
  2. 那么它就无法写入同一个文件

如果我手动将修改后的值写入该文件,它似乎几乎立即被覆盖。也许硬件传感器写入该文件?

有什么想法我做错了吗?

相关内容