Hello Igor,
Thanks for fast reply. I tried something manually then I tried some scripts and now I tried Your script. It seems that I have to solve some other problem first since none of the scripts are working as they should (the results are strange).
Setup is like this:
1. OS is openmediavault debian based linux.
2. NanoPI M4 with sata hat
3. 4 wire thermalright fan where the pwm wire is connected to pin 23 of the 24 pin connector (I don't want to use 2 pin fan connected to sata hat)
The fan behaviour now is like this:
1. Fan rotates at the lowest speed as soon as the system boots up. During boot, fan is rotating at its max RPM.
2. Setting the parameters manually does not affect the fan speed. Parameters of the pwmchip1 pwm0 like duty_cycle and timing
3. running the script after the system is running for a while does not rotate the fan at maximum (if I undertsand well, it should)
4. running the script right after the boot, slightly for a short time changes the RPM of the fan (not for the specified time in script)
So, even with CPU measurements, it doesn't work in my setup.
Since You are the author of this script, do You have any idea why does this behave this way?
Best regards.
Vuk.