Skip to content

Instantly share code, notes, and snippets.

@yanorei32
Created January 2, 2022 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanorei32/ac814a08c9323ab5c96e90d90ec69e07 to your computer and use it in GitHub Desktop.
Save yanorei32/ac814a08c9323ab5c96e90d90ec69e07 to your computer and use it in GitHub Desktop.
pwmconfig failed with 6000 RPM cooling fan
# pwmconfig version 3.6.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 nct6779
hwmon1 is k10temp
Testing pwm control hwmon0/pwm1 ...
hwmon0/fan1_input ... speed was 5895 now 4720
no correlation
hwmon0/fan2_input ... speed was 1945 now 1904
no correlation
hwmon0/fan3_input ... speed was 1988 now 1973
no correlation
hwmon0/fan4_input ... speed was 3020 now 3047
no correlation
hwmon0/fan5_input ... speed was 2973 now 2986
no correlation
No correlations were detected.
There is either no fan connected to the output of hwmon0/pwm1,
or the connected fan has no rpm-signal connected to one of
the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)
Did you see/hear a fan stopping during the above test (n)?
@yanorei32
Copy link
Author

yanorei32 commented Jan 2, 2022

https://github.com/lm-sensors/lm-sensors/blob/42f240d2a457834bcbdf4dc8b57237f97b5f5854/prog/pwm/pwmconfig#L63-L64
こいつを10にいじって解決

# pwmconfig version 3.6.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 nct6779
   hwmon1 is k10temp
   hwmon2 is k10temp
   hwmon3 is iwlwifi_1

Found the following PWM controls:
   hwmon0/pwm1           current value: 255
   hwmon0/pwm2           current value: 255
   hwmon0/pwm3           current value: 255
   hwmon0/pwm4           current value: 255
   hwmon0/pwm5           current value: 255

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon0/fan1_input     current speed: 6000 RPM
   hwmon0/fan2_input     current speed: 1939 RPM
   hwmon0/fan3_input     current speed: 1988 RPM
   hwmon0/fan4_input     current speed: 3020 RPM
   hwmon0/fan5_input     current speed: 2993 RPM

Warning!!! This program will stop your fans, one at a time,
for approximately 10 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 hwmon0/pwm1 ...
  hwmon0/fan1_input ... speed was 6000 now 3047
    It appears that fan hwmon0/fan1_input
    is controlled by pwm hwmon0/pwm1
Would you like to generate a detailed correlation (y)? y
Would you like to generate a graphical plot using gnuplot (y)? n
    PWM 255 FAN 5844
    PWM 240 FAN 5769
    PWM 225 FAN 5672
    PWM 210 FAN 5443
    PWM 195 FAN 5252
    PWM 180 FAN 5000
    PWM 165 FAN 4639
    PWM 150 FAN 4313
    PWM 135 FAN 4103
    PWM 120 FAN 3739
    PWM 105 FAN 3452
    PWM 90 FAN 3229
    PWM 75 FAN 2922
    PWM 60 FAN 2700
    PWM 45 FAN 2436
    PWM 30 FAN 2166
    PWM 28 FAN 2000
    PWM 26 FAN 1967
    PWM 24 FAN 1936
    PWM 22 FAN 1898
    PWM 20 FAN 1890
    PWM 18 FAN 1856
    PWM 16 FAN 1824
    PWM 14 FAN 1785
    PWM 12 FAN 1769
    PWM 10 FAN 1687
    PWM 8 FAN 1668
    PWM 6 FAN 1609
    PWM 4 FAN 1588
    PWM 2 FAN 1542
    PWM 0 FAN 1515

  hwmon0/fan2_input ... speed was 1939 now 1898
    no correlation
  hwmon0/fan3_input ... speed was 1988 now 1942
    no correlation
  hwmon0/fan4_input ... speed was 3020 now 3020
    no correlation
  hwmon0/fan5_input ... speed was 2993 now 3020
    no correlation

Testing pwm control hwmon0/pwm2 ...
  hwmon0/fan1_input ... speed was 6000 now 5744
    no correlation
  hwmon0/fan2_input ... speed was 1939 now 0
    It appears that fan hwmon0/fan2_input
    is controlled by pwm hwmon0/pwm2
Would you like to generate a detailed correlation (y)? y
Would you like to generate a graphical plot using gnuplot (y)? n
    PWM 255 FAN 1962
    PWM 240 FAN 1846
    PWM 225 FAN 1767
    PWM 210 FAN 1666
    PWM 195 FAN 1601
    PWM 180 FAN 1464
    PWM 165 FAN 1386
    PWM 150 FAN 1283
    PWM 135 FAN 1188
    PWM 120 FAN 1051
    PWM 105 FAN 964
    PWM 90 FAN 826
    PWM 75 FAN 721
    PWM 60 FAN 606
    PWM 45 FAN 488
    PWM 30 FAN 346
    PWM 28 FAN 327
    PWM 26 FAN 311
    PWM 24 FAN 309
    PWM 22 FAN 309
    PWM 20 FAN 311
    PWM 18 FAN 311
    PWM 16 FAN 310
    PWM 14 FAN 308
    PWM 12 FAN 0
    Fan Stopped at PWM = 12

  hwmon0/fan3_input ... speed was 1988 now 1965
    no correlation
  hwmon0/fan4_input ... speed was 3020 now 3040
    no correlation
  hwmon0/fan5_input ... speed was 2993 now 2993
    no correlation

Testing pwm control hwmon0/pwm3 ...
  hwmon0/fan1_input ... speed was 6000 now 5869
    no correlation
  hwmon0/fan2_input ... speed was 1939 now 1923
    no correlation
  hwmon0/fan3_input ... speed was 1988 now 0
    It appears that fan hwmon0/fan3_input
    is controlled by pwm hwmon0/pwm3
Would you like to generate a detailed correlation (y)? y
Would you like to generate a graphical plot using gnuplot (y)? n
    PWM 255 FAN 1973
    PWM 240 FAN 1906
    PWM 225 FAN 1812
    PWM 210 FAN 1719
    PWM 195 FAN 1622
    PWM 180 FAN 1520
    PWM 165 FAN 1431
    PWM 150 FAN 1328
    PWM 135 FAN 1225
    PWM 120 FAN 1101
    PWM 105 FAN 1003
    PWM 90 FAN 892
    PWM 75 FAN 778
    PWM 60 FAN 655
    PWM 45 FAN 545
    PWM 30 FAN 413
    PWM 28 FAN 391
    PWM 26 FAN 376
    PWM 24 FAN 375
    PWM 22 FAN 376
    PWM 20 FAN 375
    PWM 18 FAN 379
    PWM 16 FAN 379
    PWM 14 FAN 374
    PWM 12 FAN 0
    Fan Stopped at PWM = 12

  hwmon0/fan4_input ... speed was 3020 now 3020
    no correlation
  hwmon0/fan5_input ... speed was 2993 now 3026
    no correlation

Testing pwm control hwmon0/pwm4 ...
  hwmon0/fan1_input ... speed was 6000 now 5895
    no correlation
  hwmon0/fan2_input ... speed was 1939 now 1890
    no correlation
  hwmon0/fan3_input ... speed was 1988 now 1991
    no correlation
  hwmon0/fan4_input ... speed was 3020 now 0
    It appears that fan hwmon0/fan4_input
    is controlled by pwm hwmon0/pwm4
Would you like to generate a detailed correlation (y)? y
Would you like to generate a graphical plot using gnuplot (y)? n
    PWM 255 FAN 3020
    PWM 240 FAN 2922
    PWM 225 FAN 2760
    PWM 210 FAN 2523
    PWM 195 FAN 2372
    PWM 180 FAN 2235
    PWM 165 FAN 2061
    PWM 150 FAN 1877
    PWM 135 FAN 1708
    PWM 120 FAN 1527
    PWM 105 FAN 1356
    PWM 90 FAN 1167
    PWM 75 FAN 969
    PWM 60 FAN 795
    PWM 45 FAN 611
    PWM 30 FAN 433
    PWM 28 FAN 356
    PWM 26 FAN 323
    PWM 24 FAN 296
    PWM 22 FAN 269
    PWM 20 FAN 243
    PWM 18 FAN 211
    PWM 16 FAN 0
    Fan Stopped at PWM = 16

  hwmon0/fan5_input ... speed was 2993 now 3075
    no correlation

Testing pwm control hwmon0/pwm5 ...
  hwmon0/fan1_input ... speed was 6000 now 5921
    no correlation
  hwmon0/fan2_input ... speed was 1939 now 1962
    no correlation
  hwmon0/fan3_input ... speed was 1988 now 1982
    no correlation
  hwmon0/fan4_input ... speed was 3020 now 3082
    no correlation
  hwmon0/fan5_input ... speed was 2993 now 0
    It appears that fan hwmon0/fan5_input
    is controlled by pwm hwmon0/pwm5
Would you like to generate a detailed correlation (y)? y
Would you like to generate a graphical plot using gnuplot (y)? n
    PWM 255 FAN 3020
    PWM 240 FAN 3000
    PWM 225 FAN 2915
    PWM 210 FAN 2812
    PWM 195 FAN 2636
    PWM 180 FAN 2454
    PWM 165 FAN 2292
    PWM 150 FAN 2086
    PWM 135 FAN 1901
    PWM 120 FAN 1698
    PWM 105 FAN 1528
    PWM 90 FAN 1314
    PWM 75 FAN 1086
    PWM 60 FAN 0
    Fan Stopped at PWM = 60


Testing is complete.
Please verify that all fans have returned to their normal speed.

The fancontrol script can automatically respond to temperature changes
of your system by changing fanspeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment