I am able to trigger my Raspberry Pi 3B's fan to turn on at 50 °C with the following line in /boot/config.txt:
However, it automatically turns off again when ...
I need a fairly deterministic PWM duty cycle. I don't believe it's rocket science to use hardware PWM.
Numerous sources tell us that we can modify /boot/config.txt by adding