Skip to content

Instantly share code, notes, and snippets.

@zany130
Created March 28, 2020 02:11
Show Gist options
  • Save zany130/e215de42b8f994ec130c8d43b93987fc to your computer and use it in GitHub Desktop.
Save zany130/e215de42b8f994ec130c8d43b93987fc to your computer and use it in GitHub Desktop.
# 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 nvme
hwmon1 is nvme
hwmon2 is zenpower
hwmon3 is iwlwifi_1
hwmon4 is it8792
Found the following PWM controls:
hwmon4/pwm1 current value: 255
hwmon4/pwm2 current value: 255
hwmon4/pwm3 current value: 255
Giving the fans some time to reach full speed...
Found the following fan sensors:
hwmon4/fan1_input current speed: 826 RPM
hwmon4/fan2_input current speed: 1250 RPM
hwmon4/fan3_input current speed: 820 RPM
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 hwmon4/pwm1 ...
hwmon4/fan1_input ... speed was 826 now 825
no correlation
hwmon4/fan2_input ... speed was 1250 now 1256
no correlation
hwmon4/fan3_input ... speed was 820 now 823
no correlation
No correlations were detected.
There is either no fan connected to the output of hwmon4/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)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment