Skip to content

Instantly share code, notes, and snippets.

@cra

cra/- Secret

Created February 7, 2017 12:43
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 cra/2b18e7dae266747e1fdf3f29d5140c6d to your computer and use it in GitHub Desktop.
Save cra/2b18e7dae266747e1fdf3f29d5140c6d to your computer and use it in GitHub Desktop.
[cra@momo]::[12:33:11 v06[m02]/Feb07] (master) ~
$ sensors
asus-isa-0000
Adapter: ISA adapter
cpu_fan: 25500 RPM
temp1: +39.0°C
acpitz-virtual-0
Adapter: Virtual device
temp1: +39.0°C (crit = +108.0°C)
asus_fan-isa-0000
Adapter: ISA adapter
CPU Fa: 6341 RPM (min = 10 RPM)
gfx_tem: +0.0°C (crit = +0.1°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +40.0°C (high = +87.0°C, crit = +105.0°C)
Core 0: +38.0°C (high = +87.0°C, crit = +105.0°C)
Core 1: +32.0°C (high = +87.0°C, crit = +105.0°C)
[cra@momo]::[13:38:44 v06[m02]/Feb07] (master) ~
$ sudo su
[root@momo cra]# pwmconfig
# pwmconfig revision $Revision$ ($Date$)
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 coretemp
hwmon2 is asus
hwmon3 is asus_fan
Found the following PWM controls:
hwmon2/pwm1 current value: 255
hwmon2/pwm1 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n)
hwmon3/pwm1 current value: 65
Giving the fans some time to reach full speed...
Found the following fan sensors:
hwmon2/fan1_input current speed: 25500 RPM
hwmon3/fan1_input current speed: 6341 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 hwmon3/pwm1 ...
hwmon2/fan1_input ... speed was 25500 now 0
It appears that fan hwmon2/fan1_input
is controlled by pwm hwmon3/pwm1
Would you like to generate a detailed correlation (y)?
Would you like to generate a graphical plot using gnuplot (y)?
PWM 255 FAN 0
Fan Stopped at PWM = 255
This fan appears to stop when the PWM is enabled;
perhaps the fan input shares a pin with the PWM output
on the sensor chip.
You cannot control this fan with this PWM output.
hwmon3/fan1_input ... speed was 6341 now 0
It appears that fan hwmon3/fan1_input
is controlled by pwm hwmon3/pwm1
Would you like to generate a detailed correlation (y)?
Would you like to generate a graphical plot using gnuplot (y)?
PWM 255 FAN 3910
PWM 240 FAN 3883
PWM 225 FAN 3827
PWM 210 FAN 3745
PWM 195 FAN 3633
PWM 180 FAN 3493
PWM 165 FAN 3326
PWM 150 FAN 3131
PWM 135 FAN 2907
PWM 120 FAN 2656
PWM 105 FAN 2377
PWM 90 FAN 2069
PWM 75 FAN 1733
PWM 60 FAN 1369
PWM 45 FAN 978
PWM 30 FAN 558
PWM 28 FAN 501
PWM 26 FAN 441
PWM 24 FAN 383
PWM 22 FAN 323
PWM 20 FAN 263
PWM 18 FAN 202
PWM 16 FAN 142
PWM 14 FAN 80
PWM 12 FAN 18
PWM 10 FAN 0
Fan Stopped at PWM = 10
Hit return to continue...
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.
Do you want to set up its configuration file now (y)?
What should be the path to your fancontrol config file (/etc/fancontrol)?
Loading configuration from /etc/fancontrol ...
Select fan output to configure, or other action:
1) hwmon3/pwm1 3) Just quit 5) Show configuration
2) Change INTERVAL 4) Save and quit
select (1-n):
1) hwmon3/pwm1 3) Just quit 5) Show configuration
2) Change INTERVAL 4) Save and quit
select (1-n): 1
Devices:
hwmon0 is acpitz
hwmon1 is coretemp
hwmon2 is asus
hwmon3 is asus_fan
Current temperature readings are as follows:
hwmon0/temp1_input 38
hwmon1/temp1_input 39
hwmon1/temp2_input 39
hwmon1/temp3_input 32
hwmon2/temp1_input 38
hwmon3/temp1_input 0
Select a temperature sensor as source for hwmon3/pwm1:
1) hwmon0/temp1_input
2) hwmon1/temp1_input
3) hwmon1/temp2_input
4) hwmon1/temp3_input
5) hwmon2/temp1_input
6) hwmon3/temp1_input
7) None (Do not affect this PWM output)
select (1-n): 1
Enter the low temperature (degree C)
below which the fan should spin at minimum speed (20): 40
Enter the high temperature (degree C)
over which the fan should spin at maximum speed (60): 70
Enter the minimum PWM value (0-255)
at which the fan STOPS spinning (press t to test) (100):
Enter the minimum PWM value (100-255)
at which the fan STARTS spinning (press t to test) (150):
Enter the PWM value (0-100) to use when the temperature
is below the low temperature limit (0):
Enter the PWM value (100-255) to use when the temperature
is over the high temperature limit (255):
Select fan output to configure, or other action:
1) hwmon3/pwm1 3) Just quit 5) Show configuration
2) Change INTERVAL 4) Save and quit
select (1-n): 1
Devices:
hwmon0 is acpitz
hwmon1 is coretemp
hwmon2 is asus
hwmon3 is asus_fan
Current temperature readings are as follows:
hwmon0/temp1_input 36
hwmon1/temp1_input 39
hwmon1/temp2_input 39
hwmon1/temp3_input 30
hwmon2/temp1_input 36
hwmon3/temp1_input 0
Select a temperature sensor as source for hwmon3/pwm1:
1) hwmon0/temp1_input
2) hwmon1/temp1_input
3) hwmon1/temp2_input
4) hwmon1/temp3_input
5) hwmon2/temp1_input
6) hwmon3/temp1_input
7) None (Do not affect this PWM output)
select (1-n): 1
Enter the low temperature (degree C)
below which the fan should spin at minimum speed (20): 40
Enter the high temperature (degree C)
over which the fan should spin at maximum speed (60): 70
Enter the minimum PWM value (0-255)
at which the fan STOPS spinning (press t to test) (100):
Enter the minimum PWM value (100-255)
at which the fan STARTS spinning (press t to test) (150):
Enter the PWM value (0-100) to use when the temperature
is below the low temperature limit (0):
Enter the PWM value (100-255) to use when the temperature
is over the high temperature limit (255):
Select fan output to configure, or other action:
1) hwmon3/pwm1 3) Just quit 5) Show configuration
2) Change INTERVAL 4) Save and quit
select (1-n): 4
Saving configuration to /etc/fancontrol...
Configuration saved
[root@momo cra]# fancontrol
Loading configuration from /etc/fancontrol ...
Common settings:
INTERVAL=10
Settings for hwmon3/pwm1:
Depends on hwmon0/temp1_input
Controls hwmon3/fan1_input+hwmon2/fan1_input
MINTEMP=40
MAXTEMP=70
MINSTART=150
MINSTOP=100
MINPWM=0
MAXPWM=255
Enabling PWM on fans...
Starting automatic fan control...
Error reading PWM value from /sys/class/hwmon/hwmon3/pwm1
Aborting, restoring fans...
Verify fans have returned to full speed
[root@momo cra]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment