change the power-on temperature of the pwm-fan

good afternoon. I’m really asking for help, I connected the cooling fan to the pwm-fan port on orangepi5plus with the dietpi operating system, but I can’t find a file anywhere where I can change the processor temperature at which it turns on. presumably, it turns on at 55 degrees Celsius, measured experimentally, including a stress test. There are a lot of instructions on the Internet, but every time I can’t find the right file to make changes to. the screenshot shows the description of the port from the official instructions.

THe image you posted is from:
http://www.orangepi.org/orangepiwiki/index.php/Orange_Pi_5_Plus#How_to_use_the_cooling_PWM_fan

  • So you would need to decompile the file,
  • edit this section to your needs:
 rockchip,temp-trips = <
        60000 1
        65000 2
        70000 3
        75000 4
        80000 5
    >;
  • recompile it and replace the old one

First of all you make a backup of your system before we trying to edit this.

Assuming the dtb is in /boot/dtb/rockchip/ you do following:

sudo apt install device-tree-compiler
sudo dtc -I dtb -O dts -o /tmp/orangepi5plus.dts /boot/dtb/rockchip/rk3588-orangepi-5-plus.dtb

Then edit the file /tmp/orangepi5plus.dts, e.g. with nano.
Then copy it back and reboot

sudo dtc -I dts -O dtb -o /boot/dtb/rockchip/rk3588-orangepi-5-plus.dtb /tmp/orangepi5plus.dts
sudo reboot
1 Like

Thank you, you helped me.