02-04-2022, 10:02 PM
I am written a python script to control my fan with pwm. The script is inspirated by shell script from the armbian forum.
You can set the pwm period and duty_cycle.
The script monitoring cpu and all disks an activate the fan when required.
https://github.com/mh-superbox/pwm-fan-control
period
The total period of the PWM signal (read/write). Value is in nanoseconds and is the sum of the active and inactive time of the PWM.
duty_cycle
The active time of the PWM signal (read/write). Value is in nanoseconds and must be less than the period.
More info about pwm: https://www.kernel.org/doc/Documentation/pwm.txt
You can set the pwm period and duty_cycle.
The script monitoring cpu and all disks an activate the fan when required.
https://github.com/mh-superbox/pwm-fan-control
period
The total period of the PWM signal (read/write). Value is in nanoseconds and is the sum of the active and inactive time of the PWM.
duty_cycle
The active time of the PWM signal (read/write). Value is in nanoseconds and must be less than the period.
More info about pwm: https://www.kernel.org/doc/Documentation/pwm.txt