root@pve:~# cd it87 root@pve:~/it87# root@pve:~/it87# apt install -y dkms make gcc build-essential libelf-dev lm-sensors root@pve:~/it87# make clean root@pve:~/it87# make warning: pahole version differs from the one used to build the kernel The kernel was built with: 130 You are using: 0 CC [M] it87.o MODPOST Module.symvers CC [M] it87.mod.o CC [M] .module-common.o LD [M] it87.ko BTF [M] it87.ko Skipping BTF generation for it87.ko due to unavailability of vmlinux root@pve:~/it87# make install
root@pve:~/it87# pwmconfig # pwmconfig version 3.8.0 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 nvme hwmon1 is coretemp hwmon1 is nct6798 Found the following PWM controls: hwmon1/pwm1 current value: 255 hwmon1/pwm2 current value: 255 hwmon1/pwm3 current value: 255 hwmon1/pwm4 current value: 153 hwmon1/pwm5 current value: 153 hwmon1/pwm6 current value: 255 hwmon1/pwm7 current value: 255 Giving the fans some time to reach full speed... Found the following fan sensors: hwmon1/fan1_input current speed: 2521 RPM hwmon1/fan2_input current speed: 0 ... skipping! hwmon1/fan3_input current speed: 0 ... skipping! hwmon1/fan4_input current speed: 0 ... skipping! hwmon1/fan5_input current speed: 0 ... skipping! hwmon1/fan6_input current speed: 0 ... skipping! hwmon1/fan7_input current speed: 0 ... skipping! Warning!!! This program will stop your fans, one at a time, for approximately 5 seconds each!!! This may cause your processor temperature to rise!!! If you do not want to do this hit control-C now!!! Hit return to continue:
Testing pwm control hwmon1/pwm1 ... hwmon1/fan1_input ... speed was 2521 now 995 It appears that fan hwmon1/fan1_input is controlled by pwm hwmon1/pwm1 Would you like to generate a detailed correlation (y)? PWM 255 FAN 2521 PWM 240 FAN 2411 PWM 225 FAN 2345 PWM 210 FAN 2300 PWM 195 FAN 2220 PWM 180 FAN 2146 PWM 165 FAN 1979 PWM 150 FAN 1909 PWM 135 FAN 1721 PWM 120 FAN 1632 PWM 105 FAN 1451 PWM 90 FAN 1359 PWM 75 FAN 1196 PWM 60 FAN 1080 PWM 45 FAN 1010 PWM 30 FAN 1005 PWM 28 FAN 1004 PWM 26 FAN 1003 PWM 24 FAN 1002 PWM 22 FAN 1002 PWM 20 FAN 1002 PWM 18 FAN 1002 PWM 16 FAN 1001 PWM 14 FAN 1000 PWM 12 FAN 1000 PWM 10 FAN 1000 PWM 8 FAN 998 PWM 6 FAN 998 PWM 4 FAN 997 PWM 2 FAN 997 PWM 0 FAN 995
这里选择基于哪个温度传感器控制PWM调速
1 2 3 4 5 6 7 8 9 10
Select a temperature sensor as source for hwmon1/pwm1: 1. hwmon0/temp1_input 10) hwmon3/temp3_input 2. hwmon1/temp1_input 11) hwmon3/temp4_input 3. hwmon1/temp2_input 12) hwmon3/temp5_input 4. hwmon1/temp3_input 13) hwmon3/temp6_input 5. hwmon2/temp1_input 14) hwmon3/temp7_input 6. hwmon2/temp2_input 15) hwmon3/temp8_input 7. hwmon2/temp6_input 16) hwmon3/temp9_input 8. hwmon3/temp1_input 17) None (Do not affect this PWM output) 9. hwmon3/temp2_input
# 风扇起转的温度 Enter the low temperature (degree C) below which the fan should spin at minimum speed (20): 30 # 最高温度 Enter the high temperature (degree C) above which the fan should spin at maximum speed (60): 55 # 风扇停转时的PWM调速值 Enter the minimum PWM value (0-255) at which the fan STOPS spinning (press t to test) (100): 120 # 风扇起转时PWM调速值 Enter the minimum PWM value (0-255) at which the fan STARTS spinning (press t to test) (100): 135