Comment # 3 on bug 1181890 from
(Note: I'm using hwmon1/pwm1 here; after finishing this test I found that it's
controlling hwmon3/pwm1 badly (191 ��������� 1; 192 ��������� 255, so I re-did the
configuration (and using it successfully); both script runs are copy/pasted

Also on my system pwm 1 == minimal fan speed turning; 0 == maximal fan speed
turning (aka. 256 it seems). I'm using the mainboard from a Dell Precision
T1500 i7-860 as far as I can tell.)


root@be10:/etc# bash "/usr/sbin/pwmconfig-bugfix"
# 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 coretemp
   hwmon1 is dell_smm
   hwmon2 is amdgpu
   hwmon3/device is f71882fg

Found the following PWM controls:
   hwmon1/pwm1           current value: 255
   hwmon1/pwm2           current value: 255
   hwmon2/pwm1           current value: 22
   hwmon3/device/pwm1           current value: 204
   hwmon3/device/pwm2           current value: 204
   hwmon3/device/pwm3           current value: 101
hwmon3/device/pwm3 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/device/pwm4           current value: 247
hwmon3/device/pwm4 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) 

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon1/fan1_input     current speed: 4504 RPM
   hwmon1/fan2_input     current speed: 2242 RPM
cat: hwmon2/fan1_input: Invalid argument
   hwmon2/fan1_input     current speed: can't read ... skipping!
   hwmon3/device/fan1_input     current speed: 4477 RPM
   hwmon3/device/fan2_input     current speed: 2242 RPM
   hwmon3/device/fan3_input     current speed: 0 ... skipping!
   hwmon3/device/fan4_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 4504 now 1492
    It appears that fan hwmon1/fan1_input
    is controlled by pwm hwmon1/pwm1
Would you like to generate a detailed correlation (y)? n
  hwmon1/fan2_input ... speed was 2242 now 2242
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 1492
    It appears that fan hwmon3/device/fan1_input
    is controlled by pwm hwmon1/pwm1
Would you like to generate a detailed correlation (y)? n
  hwmon3/device/fan2_input ... speed was 2242 now 2242
    no correlation

Testing pwm control hwmon1/pwm2 ...
  hwmon1/fan1_input ... speed was 4504 now 3579
    no correlation
  hwmon1/fan2_input ... speed was 2242 now 2248
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 3579
    no correlation
  hwmon3/device/fan2_input ... speed was 2242 now 2209
    no correlation

No correlations were detected.
There is either no fan connected to the output of hwmon1/pwm2,
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)? 

Testing pwm control hwmon2/pwm1 ...
  hwmon1/fan1_input ... speed was 4504 now 3614
    no correlation
  hwmon1/fan2_input ... speed was 2242 now 2202
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 3614
    no correlation
  hwmon3/device/fan2_input ... speed was 2242 now 2202
    no correlation

No correlations were detected.
There is either no fan connected to the output of hwmon2/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)? 

Testing pwm control hwmon3/device/pwm1 ...
  hwmon1/fan1_input ... speed was 4504 now 4731
    no correlation
  hwmon1/fan2_input ... speed was 2242 now 2209
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 4731
    no correlation
  hwmon3/device/fan2_input ... speed was 2242 now 2209
    no correlation

No correlations were detected.
There is either no fan connected to the output of hwmon3/device/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)? y

Testing pwm control hwmon3/device/pwm2 ...
  hwmon1/fan1_input ... speed was 4504 now 4451
    no correlation
  hwmon1/fan2_input ... speed was 2242 now 2248
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 4451
    no correlation
  hwmon3/device/fan2_input ... speed was 2242 now 2248
    no correlation

No correlations were detected.
There is either no fan connected to the output of hwmon3/device/pwm2,
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)? 

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)?
/etc/fancontrol-bugfix

Select fan output to configure, or other action:
1) hwmon3/device/pwm1
2) hwmon1/pwm1
3) Change INTERVAL
4) Just quit
5) Save and quit
6) Show configuration
select (1-n): 2

Devices:
hwmon0 is coretemp
hwmon1 is dell_smm
hwmon2 is amdgpu
hwmon3/device is f71882fg

Current temperature readings are as follows:
hwmon0/temp2_input      33
hwmon0/temp3_input      33
hwmon0/temp4_input      33
hwmon0/temp5_input      34
hwmon2/temp1_input      46
hwmon3/device/temp1_input       35
hwmon3/device/temp2_input       30
hwmon3/device/temp3_input       128

Select a temperature sensor as source for hwmon1/pwm1:
1) hwmon0/temp2_input                    3) hwmon0/temp4_input                 
  5) hwmon2/temp1_input                    7) hwmon3/device/temp2_input        
    9) None (Do not affect this PWM output)
2) hwmon0/temp3_input                    4) hwmon0/temp5_input                 
  6) hwmon3/device/temp1_input             8) hwmon3/device/temp3_input
select (1-n): 4

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): 55

Enter the PWM value (0-255) to use when the temperature
is over the high temperature limit (255): 192


Select fan output to configure, or other action:
1) hwmon3/device/pwm1
2) hwmon1/pwm1
3) Change INTERVAL
4) Just quit
5) Save and quit
6) Show configuration
select (1-n): 5

Saving configuration to /etc/fancontrol-bugfix...
Configuration saved
root@be10:/etc# cat /etc/fancontrol-bugfix
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon0=devices/platform/coretemp.0 hwmon1=
hwmon3=devices/platform/f71882fg.2560
DEVNAME=hwmon0=coretemp hwmon1=dell_smm hwmon3=f71882fg
FCTEMPS=hwmon1/pwm1=hwmon0/temp5_input
FCFANS= hwmon1/pwm1=hwmon3/device/fan1_input+hwmon1/fan1_input
MINTEMP=hwmon1/pwm1=40
MAXTEMP=hwmon1/pwm1=55
MINSTART=hwmon1/pwm1=150
MINSTOP=hwmon1/pwm1=0
MAXPWM=hwmon1/pwm1=192

**************************************************************************

root@be10:/sys/class/hwmon/hwmon3/device# bash "/usr/sbin/pwmconfig-bugfix"
# 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 coretemp
   hwmon1 is dell_smm
   hwmon2 is amdgpu
   hwmon3/device is f71882fg

Found the following PWM controls:
   hwmon1/pwm1           current value: 255
   hwmon1/pwm2           current value: 255
   hwmon2/pwm1           current value: 22
   hwmon3/device/pwm1           current value: 204
   hwmon3/device/pwm2           current value: 204
   hwmon3/device/pwm3           current value: 101
hwmon3/device/pwm3 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/device/pwm4           current value: 247
hwmon3/device/pwm4 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) 

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon1/fan1_input     current speed: 4504 RPM
   hwmon1/fan2_input     current speed: 2248 RPM
cat: hwmon2/fan1_input: Invalid argument
   hwmon2/fan1_input     current speed: can't read ... skipping!
   hwmon3/device/fan1_input     current speed: 4477 RPM
   hwmon3/device/fan2_input     current speed: 2248 RPM
   hwmon3/device/fan3_input     current speed: 0 ... skipping!
   hwmon3/device/fan4_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 4504 now 1495
    It appears that fan hwmon1/fan1_input
    is controlled by pwm hwmon1/pwm1
Would you like to generate a detailed correlation (y)? n
  hwmon1/fan2_input ... speed was 2248 now 2209
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 1495
    It appears that fan hwmon3/device/fan1_input
    is controlled by pwm hwmon1/pwm1
Would you like to generate a detailed correlation (y)? n
  hwmon3/device/fan2_input ... speed was 2248 now 2202
    no correlation

Testing pwm control hwmon1/pwm2 ...
  hwmon1/fan1_input ... speed was 4504 now 3597
    no correlation
  hwmon1/fan2_input ... speed was 2248 now 2209
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 3597
    no correlation
  hwmon3/device/fan2_input ... speed was 2248 now 2209
    no correlation

No correlations were detected.
There is either no fan connected to the output of hwmon1/pwm2,
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)?      

Testing pwm control hwmon2/pwm1 ...
  hwmon1/fan1_input ... speed was 4504 now 3562
    no correlation
  hwmon1/fan2_input ... speed was 2248 now 2248
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 3562
    no correlation
  hwmon3/device/fan2_input ... speed was 2248 now 2248
    no correlation

No correlations were detected.
There is either no fan connected to the output of hwmon2/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)? 

Testing pwm control hwmon3/device/pwm1 ...
  hwmon1/fan1_input ... speed was 4504 now 4761
    no correlation
  hwmon1/fan2_input ... speed was 2248 now 2209
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 4761
    no correlation
  hwmon3/device/fan2_input ... speed was 2248 now 2209
    no correlation

No correlations were detected.
There is either no fan connected to the output of hwmon3/device/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)? y

Testing pwm control hwmon3/device/pwm2 ...
  hwmon1/fan1_input ... speed was 4504 now 4477
    no correlation
  hwmon1/fan2_input ... speed was 2248 now 2248
    no correlation
  hwmon3/device/fan1_input ... speed was 4477 now 4504
    no correlation
  hwmon3/device/fan2_input ... speed was 2248 now 2209
    no correlation

No correlations were detected.
There is either no fan connected to the output of hwmon3/device/pwm2,
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)? 

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)? 

Select fan output to configure, or other action:
1) hwmon3/device/pwm1
2) hwmon1/pwm1
3) Change INTERVAL
4) Just quit
5) Save and quit
6) Show configuration
select (1-n): 1

Devices:
hwmon0 is coretemp
hwmon1 is dell_smm
hwmon2 is amdgpu
hwmon3/device is f71882fg

Current temperature readings are as follows:
hwmon0/temp2_input      34
hwmon0/temp3_input      35
hwmon0/temp4_input      33
hwmon0/temp5_input      35
hwmon2/temp1_input      47
hwmon3/device/temp1_input       36
hwmon3/device/temp2_input       30
hwmon3/device/temp3_input       128

Select a temperature sensor as source for hwmon3/device/pwm1:
1) hwmon0/temp2_input                    3) hwmon0/temp4_input                 
  5) hwmon2/temp1_input                    7) hwmon3/device/temp2_input        
    9) None (Do not affect this PWM output)
2) hwmon0/temp3_input                    4) hwmon0/temp5_input                 
  6) hwmon3/device/temp1_input             8) hwmon3/device/temp3_input
select (1-n): 4

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): 56

Enter the minimum PWM value (0-255)
at which the fan STOPS spinning (press t to test) (100): 1

Enter the minimum PWM value (1-255)
at which the fan STARTS spinning (press t to test) (150): 2

Enter the PWM value (0-1) to use when the temperature
is below the low temperature limit (0): 1

Enter the PWM value (1-255) to use when the temperature
is over the high temperature limit (255): 255


Select fan output to configure, or other action:
1) hwmon3/device/pwm1
2) hwmon1/pwm1
3) Change INTERVAL
4) Just quit
5) Save and quit
6) Show configuration
select (1-n): 5

Saving configuration to /etc/fancontrol...
Configuration saved
root@be10:/sys/class/hwmon/hwmon3/device# fancontrol 
Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for hwmon3/device/pwm1:
  Depends on hwmon0/temp5_input
  Controls hwmon3/device/fan1_input+hwmon1/fan1_input
  MINTEMP=40
  MAXTEMP=56
  MINSTART=2
  MINSTOP=1
  MINPWM=1
  MAXPWM=255
  AVERAGE=1

Enabling PWM on fans...
Starting automatic fan control...
^CAborting, restoring fans...
Verify fans have returned to full speed
root@be10:/sys/class/hwmon/hwmon3/device# cat /etc/fancontrol
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon0=devices/platform/coretemp.0
hwmon3=devices/platform/f71882fg.2560
DEVNAME=hwmon0=coretemp hwmon3=f71882fg
FCTEMPS=hwmon3/device/pwm1=hwmon0/temp5_input
FCFANS= hwmon3/device/pwm1=hwmon3/device/fan1_input+hwmon1/fan1_input
MINTEMP=hwmon3/device/pwm1=40
MAXTEMP=hwmon3/device/pwm1=56
MINSTART=hwmon3/device/pwm1=2
MINSTOP=hwmon3/device/pwm1=1
MINPWM=hwmon3/device/pwm1=1
MAXPWM=hwmon3/device/pwm1=255


You are receiving this mail because: