I want to modify speed of pwm-fan, but it does not work

eg: hwmon4 → ../../devices/platform/pwm-fan/hwmon/hwmon4

I used to be able to modify the speed of pwm fan in the Jetpack 5.1.2 system through the above methods, but it is not effective in the latest Jetpack 6.2 version. The value of pwm1 will be automatically restored after modification. I have already stopped the nvfancontrol service.

hello 659860569,

it’s now using nvfancontrol service, i.e. /etc/nvfancontrol.conf
please refer to developer guide for the steps of configuration.

I mean, I have stopped the fancontrol service. Why can’t the pwm1 value be saved and what program is affecting it.I want to control the fan speed through my own program instead of nvfancontrol.

hello 659860569,

may I know.. why don’t you changing the default fan profile, it should be straightforward for having your own profile table.

The original nvfancontrol of the system was not open source, and it was not flexible to customize. Can you answer my question directly

hello 659860569,

here’s profile table for modification.

FAN_PROFILE cool {
        #TEMP   HYST    PWM     RPM
        0       0       255     2900
        10      0       255     2900
        11      0       215     2440
        30      0       215     2440
        60      0       66      750
        105     0       66      750
}

Modifying according to the above method did not solve my problem.

hello 659860569,

may I know the expectation for your fan controls.
please also share your modification for reference.

Firstly, I believe my requirements have been clearly described above. I need to control the speed of the cooling fan myself, rather than using the nvfancontrol service system.
The current issue is that, while the nvfancontrol service has been stopped, I attempted to modify the value of the fan speed (/sys/class/hwmon/hwmon4/pwm1), but it was quickly changed back by another program in the system. I don’t know which system program made the modification.

hello 659860569,

please stop the nvfancontrol, i.e. $ sudo systemctl stop nvfancontrol.service
according to Fan Profile Table.
you’ve to changing to open-loop to adjusts the fan speed by PWM value,
also, using pid governor without linearly interpolate the fan speed.
for instance, please modify /etc/nvfancontrol.conf with following..

        FAN_DEFAULT_CONTROL open_loop
        FAN_DEFAULT_PROFILE cool
        FAN_DEFAULT_GOVERNOR pid

please restart nvfancontrol, i.e. $ sudo systemctl start nvfancontrol.service for checking.
you shall now be able to adjusts the fan speed by PWM value,
I’m testing on AGX Orin.
$ ll /sys/class/hwmon/hwmon* lrwxrwxrwx 1 root root 0 Nov 21 2023 /sys/class/hwmon/hwmon0 -> ../../devices/platform/pwm-fan/hwmon/hwmon0/

$ sudo -i
# echo 215 > /sys/class/hwmon/hwmon0/pwm1
# echo 235 > /sys/class/hwmon/hwmon0/pwm1

It does not help.


The value before modification was 86, changed to 215, and was automatically changed back to 86 after a while.
The following is the content of the file ‘/etc/nvfancontrol.conf’

hello 659860569,

please keep nvfancontrol disabled for verification.

That’s how I did it

  1. Stop nvfancontrol service
  2. Modify/etc/nvfancontrol. conf
  3. Start nvfancontrol service
  4. Modify the PWM value

hello 659860569,

ya, I meant skip your step-3 to keep nvfancontrol as disabled for testing.


The result is the same

hello 659860569,

is it Orin Nano developer kit? I’ve test and confirm it’s able to configure fan speed with PWM values without issues.

May I ask which version of Jetpack you are testing on?
I used to be able to modify the speed of pwm fan in the Jetpack 5.1.2. This issue is on Jetpack 6.2.

I’ve tested on AGX Orin and also Orin Nano, both of them were JetPack 6.2/r36.4.3

I am not using a development kit, I am using a self-developed motherboard, but the same hardware has been confirmed to have no problem in Jetpack 5.1.2. I do not know why this issue occurred after the Jetpack version upgrade to Jetpack 6.2.

hello 659860569,

could you please try to set relative low PWM values (such as 155, 200) to check it won’t fall back the settings?