A tool to control fan speed by temperature automatically for ROCK5B. Forked to modify the fan curve, as it made very little sense for the Radxa fan.
CAUTION
This tool only works with kernels that don't use the kernel driver module (pwm-fan
, to see if it is loaded, use lsmod|grep pwm
, if it lists the module, this userspace script won't work).
- Control fan speed by temperature. (above 40 degrees)
- Set fan speed manually
make package
dpkg -i fan-control*.deb
systemctl enable fan-control
systemctl start fan-control
The location of the configuration file is /etc/fan-control.json
. Configuration parameters:
Parameter | Description |
---|---|
pwmchip | pwmchip id, 1 for auto scan |
gpio | gpio id, 0 is default gpio |
pwm-period | PWM period |
temp-map | temperature configuration table |
temp | temperature, in degrees Celsius |
duty | duty ratio |
duration | duration, in second |
MIT License