Hello friendly folks, I’m in need of some advice concerning fan control on linux for the Gigabyte Designare TRX40.
I need to control fans via software, as the Smart Fan 5 application, which is built into the UEFI, does not support multiple input temperatures per PWM channel while configuring the PWM-vs-temperature curves. I have a water-cooling loop which cools GPU and CPU and hence the pump’s PWM has to react to temperature increases for both components.
All the requires fans and PWM’s are exposed at /sys/class/hwmon/hwmon4/ and, in principle, PWM control is as easy as writing an 8-bit value to pwmN, if pwmN_enable is set to 1, where N indexes a specific output.
My problem now is that something else, apparently, is controlling the PWM’s already. If I write 255 to /sys/class/hwmon/hwmon4/pwm1 to crank up the pump, something else overwrites that value almost immediately. I can bang out 255 in a while-loop 50 times a second which does let me control the device, but that doesn’t seem like the correct method. What’s controlling my fans and how can I disable it?
Also, does anybody here have experience with linux and that motherboard? I’m missing quite a few sensors in linux and some sensors I do get are bogus. Any help is greatly appreciated 
Thanks and have a good day.