Thank you @PetrozPL
... but your script does the same as other scripts: write values to duty_cycle and period.
As I already wrote, that does not work on my system.
Your script returns (as expected) -1
... and manually writing value to duty_cycle or period results in "no such file or directory".
So may be, its related to the different kernel version, other dtb, whatever.
I don't know, where to search for support/solution.
Could you please check your dts file, whether it contains "duty_cycle" and "period"?
If you post the surrounding paragraph, I could give it a try.
When I use raspian and install the original driver from radxa, fanspeed is related to cputemperature.
With armbian there's no way to change fanspeed.
Well - original driver from radxa uses pigpio and python. I tried to port pigpio to rockpi, but I wasn't successful.
I don't care about language - anything that works would be ok for me.
The point is, I don't know nothing about lowlevel programming of pi/rockpi, but if you gimme a hand, I'll try to solve it.