You are not logged in.

#1 2026-02-22 04:22:30

levgold33
Member
Registered: 2026-02-22
Posts: 1

pwmconfig hwmon "Permission denied"

I am a new Arch user trying to set up lm_sensors and fancontrol. I ran sensors-detect and selected the defaults. When I try to run pwmconfig, I get the following:

 sudo pwmconfig
# pwmconfig version 3.6.2
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 amdgpu
   hwmon3 is amdgpu
   hwmon4 is k10temp
   hwmon5 is spd5118
   hwmon6 is spd5118
   hwmon7 is nct6687
   hwmon8 is r8169_0_e00:00
   hwmon9 is mt7921_phy0

Found the following PWM controls:
   hwmon2/pwm1           current value: 0
/usr/bin/pwmconfig: line 181: hwmon2/pwm1: Permission denied
   hwmon7/pwm1           current value: 109
/usr/bin/pwmconfig: line 181: hwmon7/pwm1: Permission denied
   hwmon7/pwm2           current value: 255
/usr/bin/pwmconfig: line 181: hwmon7/pwm2: Permission denied
   hwmon7/pwm3           current value: 153
/usr/bin/pwmconfig: line 181: hwmon7/pwm3: Permission denied
   hwmon7/pwm4           current value: 153
/usr/bin/pwmconfig: line 181: hwmon7/pwm4: Permission denied
   hwmon7/pwm5           current value: 153
/usr/bin/pwmconfig: line 181: hwmon7/pwm5: Permission denied
   hwmon7/pwm6           current value: 153
/usr/bin/pwmconfig: line 181: hwmon7/pwm6: Permission denied
   hwmon7/pwm7           current value: 153
/usr/bin/pwmconfig: line 181: hwmon7/pwm7: Permission denied
   hwmon7/pwm8           current value: 153
/usr/bin/pwmconfig: line 181: hwmon7/pwm8: Permission denied

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon2/fan1_input     current speed: 0 ... skipping!
   hwmon7/fan1_input     current speed: 916 RPM
   hwmon7/fan2_input     current speed: 0 ... skipping!
   hwmon7/fan3_input     current speed: 1648 RPM
   hwmon7/fan4_input     current speed: 0 ... skipping!
   hwmon7/fan5_input     current speed: 0 ... skipping!
   hwmon7/fan6_input     current speed: 0 ... skipping!
   hwmon7/fan7_input     current speed: 0 ... skipping!
   hwmon7/fan8_input     current speed: 0 ... skipping!
   hwmon7/fan9_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: 

Hitting return does not increase the fan speed, and I get another error: "Manual control mode not supported"

 Testing pwm control hwmon2/pwm1 ...
/usr/bin/pwmconfig: line 218: hwmon2/pwm1_enable: Permission denied
cat: hwmon2/pwm1_enable: No such file or directory
/usr/bin/pwmconfig: line 219: [: : integer expected
/usr/bin/pwmconfig: line 224: hwmon2/pwm1: Permission denied
Manual control mode not supported, skipping.
Testing pwm control hwmon7/pwm1 ...
/usr/bin/pwmconfig: line 218: hwmon7/pwm1_enable: Permission denied
cat: hwmon7/pwm1_enable: No such file or directory
/usr/bin/pwmconfig: line 219: [: : integer expected
/usr/bin/pwmconfig: line 224: hwmon7/pwm1: Permission denied
Manual control mode not supported, skipping.
Testing pwm control hwmon7/pwm2 ...
/usr/bin/pwmconfig: line 218: hwmon7/pwm2_enable: Permission denied
cat: hwmon7/pwm2_enable: No such file or directory
/usr/bin/pwmconfig: line 219: [: : integer expected
/usr/bin/pwmconfig: line 224: hwmon7/pwm2: Permission denied
Manual control mode not supported, skipping.
Testing pwm control hwmon7/pwm3 ...
/usr/bin/pwmconfig: line 218: hwmon7/pwm3_enable: Permission denied
cat: hwmon7/pwm3_enable: No such file or directory
/usr/bin/pwmconfig: line 219: [: : integer expected
/usr/bin/pwmconfig: line 224: hwmon7/pwm3: Permission denied
Manual control mode not supported, skipping.
Testing pwm control hwmon7/pwm4 ...
/usr/bin/pwmconfig: line 218: hwmon7/pwm4_enable: Permission denied
cat: hwmon7/pwm4_enable: No such file or directory
/usr/bin/pwmconfig: line 219: [: : integer expected
/usr/bin/pwmconfig: line 224: hwmon7/pwm4: Permission denied
Manual control mode not supported, skipping.
Testing pwm control hwmon7/pwm5 ...
/usr/bin/pwmconfig: line 218: hwmon7/pwm5_enable: Permission denied
cat: hwmon7/pwm5_enable: No such file or directory
/usr/bin/pwmconfig: line 219: [: : integer expected
/usr/bin/pwmconfig: line 224: hwmon7/pwm5: Permission denied
Manual control mode not supported, skipping.
Testing pwm control hwmon7/pwm6 ...
/usr/bin/pwmconfig: line 218: hwmon7/pwm6_enable: Permission denied
cat: hwmon7/pwm6_enable: No such file or directory
/usr/bin/pwmconfig: line 219: [: : integer expected
/usr/bin/pwmconfig: line 224: hwmon7/pwm6: Permission denied
Manual control mode not supported, skipping.
Testing pwm control hwmon7/pwm7 ...
/usr/bin/pwmconfig: line 218: hwmon7/pwm7_enable: Permission denied
cat: hwmon7/pwm7_enable: No such file or directory
/usr/bin/pwmconfig: line 219: [: : integer expected
/usr/bin/pwmconfig: line 224: hwmon7/pwm7: Permission denied
Manual control mode not supported, skipping.
Testing pwm control hwmon7/pwm8 ...
/usr/bin/pwmconfig: line 218: hwmon7/pwm8_enable: Permission denied
cat: hwmon7/pwm8_enable: No such file or directory
/usr/bin/pwmconfig: line 219: [: : integer expected
/usr/bin/pwmconfig: line 224: hwmon7/pwm8: Permission denied
Manual control mode not supported, skipping.
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)? 

Then, the configuration does not safe to the config file:

 Do you want to set up its configuration file now (y)? y
What should be the path to your fancontrol config file (/etc/fancontrol)? /etc/fancontrol
Loading configuration from /etc/fancontrol ...

Select fan output to configure, or other action:
1) Change INTERVAL
2) Just quit
3) Save and quit
4) Show configuration
select (1-n): 4

Common Settings:
INTERVAL=10 

If I save and quit and try to run fancontrol:

 fancontrol
Loading configuration from /etc/fancontrol ...
Some mandatory settings missing, please check your config file! 

I have already tried editing permissions and ownership for /usr/bin/pwmconfig and manually installing the nct6687d kernel module from GitHub.

My hardware:
MSI MAG B650 Tomahawk Wifi
AMD Ryzen 5 9600x
Scythe Fuma 3 (dual tower cooler with two fans daisy chained and plugged into CPU fan header)
AMD Radeon 9060XT
Antec Flux case (three front fans, one rear fan, and one bottom fan connected to a fan hub which is plugged into a PWM fan header on the motherboard)
2x16GB (32GB) RAM
2 NVMe drives

This is my sensors output:

 sensors
r8169_0_e00:00-mdio-0
Adapter: MDIO adapter
temp1:        +36.0°C  (high = +120.0°C)

spd5118-i2c-15-53
Adapter: SMBus PIIX4 adapter port 0 at 0b00
temp1:        +25.5°C  (low  =  +0.0°C, high = +55.0°C)
                       (crit low =  +0.0°C, crit = +85.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +44.0°C  
Tccd1:        +29.1°C  

amdgpu-pci-0300
Adapter: PCI adapter
vddgfx:      212.00 mV 
fan1:           0 RPM  (min =    0 RPM, max = 6000 RPM)
edge:         +28.0°C  (crit = +100.0°C, hyst = -273.1°C)
                       (emerg = +105.0°C)
junction:     +29.0°C  (crit = +110.0°C, hyst = -273.1°C)
                       (emerg = +115.0°C)
mem:          +30.0°C  (crit = +105.0°C, hyst = -273.1°C)
                       (emerg = +110.0°C)
PPT:          17.00 W  (cap = 170.00 W)
pwm1:              0%
sclk:          38 MHz 
mclk:           1 GHz 

nvme-pci-0400
Adapter: PCI adapter
Composite:    +32.9°C  (low  = -40.1°C, high = +83.8°C)
                       (crit = +87.8°C)
Sensor 1:     +52.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +29.9°C  (low  = -273.1°C, high = +65261.8°C)

mt7921_phy0-pci-0f00
Adapter: PCI adapter
temp1:        +38.0°C  

nct6687-isa-0a20
Adapter: ISA adapter
VIN0:               1.01 V  (min =  +0.00 V, max =  +0.00 V)
VIN1:             992.00 mV (min =  +0.00 V, max =  +0.00 V)
VIN2:               1.20 V  (min =  +0.00 V, max =  +0.00 V)
VIN3:             672.00 mV (min =  +0.00 V, max =  +0.00 V)
VIN4:               1.10 V  (min =  +0.00 V, max =  +0.00 V)
VIN5:             208.00 mV (min =  +0.00 V, max =  +0.00 V)
VIN6:             960.00 mV (min =  +0.00 V, max =  +0.00 V)
VIN7:               1.50 V  (min =  +0.00 V, max =  +0.00 V)
VCC:                3.33 V  (min =  +0.00 V, max =  +0.00 V)
VSB:                3.34 V  (min =  +0.00 V, max =  +0.00 V)
AVSB:               3.33 V  (min =  +0.00 V, max =  +0.00 V)
VTT:                2.03 V  (min =  +0.00 V, max =  +0.00 V)
VBAT:               3.07 V  (min =  +0.00 V, max =  +0.00 V)
fan1:              794 RPM  (min =    0 RPM)
fan2:                0 RPM  (min =    0 RPM)
fan3:             1659 RPM  (min =    0 RPM)
fan4:                0 RPM  (min =    0 RPM)
fan5:                0 RPM  (min =    0 RPM)
fan6:                0 RPM  (min =    0 RPM)
fan7:                0 RPM  (min =    0 RPM)
fan8:                0 RPM  (min =    0 RPM)
fan9:                0 RPM  (min =    0 RPM)
fan10:               0 RPM  (min =    0 RPM)
AMD TSI Addr 98h:  +44.0°C  (low  =  +0.0°C)
                            (high =  +0.0°C, hyst =  +0.0°C)
                            (crit =  +0.0°C)  sensor = AMD AMDSI
Diode 0 (curr):    +31.0°C  (low  =  +0.0°C)
                            (high =  +0.0°C, hyst =  +0.0°C)
                            (crit =  +0.0°C)  sensor = thermal diode
Thermistor 15:     +32.0°C  (low  =  +0.0°C)
                            (high =  +0.0°C, hyst =  +0.0°C)
                            (crit =  +0.0°C)  sensor = thermistor
Thermistor 1:      +28.0°C  (low  =  +0.0°C)
                            (high =  +0.0°C, hyst =  +0.0°C)
                            (crit =  +0.0°C)  sensor = thermistor
Thermistor 16:     +28.0°C  (low  =  +0.0°C)
                            (high =  +0.0°C, hyst =  +0.0°C)
                            (crit =  +0.0°C)  sensor = thermistor
Thermistor 0:      +84.0°C  (low  =  +0.0°C)
                            (high =  +0.0°C, hyst =  +0.0°C)
                            (crit =  +0.0°C)  sensor = thermistor
Thermistor 15:     +28.0°C  (low  =  +0.0°C)
                            (high = +125.0°C, hyst = +35.0°C)
                            (crit =  +0.0°C)  sensor = thermistor
pwm1:                  44%
pwm2:                 128%
pwm3:                  76%
pwm4:                  76%
pwm5:                  76%
pwm6:                  76%
pwm7:                  76%
pwm8:                  76%
intrusion0:       ALARM
beep_enable:      disabled

spd5118-i2c-15-51
Adapter: SMBus PIIX4 adapter port 0 at 0b00
temp1:        +26.5°C  (low  =  +0.0°C, high = +55.0°C)
                       (crit low =  +0.0°C, crit = +85.0°C)

amdgpu-pci-1300
Adapter: PCI adapter
vddgfx:        1.25 V  
vddnb:         1.20 V  
edge:         +37.0°C  
PPT:           6.00 mW 
sclk:         600 MHz 

nvme-pci-1200
Adapter: PCI adapter
Composite:    +23.9°C  (low  = -40.1°C, high = +83.8°C)
                       (crit = +87.8°C)
Sensor 1:     +39.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +23.9°C  (low  = -273.1°C, high = +65261.8°C) 

Any advice is appreciated! I am on the linux-zen kernel if that is relevant.

Offline

Board footer

Powered by FluxBB