Linux fan control on the Gigabyte Designare TRX40

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 :slight_smile:

Thanks and have a good day.

1 Like

Study the tools ps and lsof:
man ps
man lsof

Other useful tools for your case are:
sort
grep

Bookmark this page;
https://ss64.com/bash/
(note: not mine!)

Thanks for the hint. I tried lsof on the directory in the sysfs, but to no avail. No process is writing to that file.

I rather suspect, that the kernel inherits the UEFI’s settings and spins the fans accordingly. Unfortunately, I don’t know how to stop that. Any ideas?

For the sake of completeness, here’s the exact input and output of commands I tried. All those processes refer to shells which are sitting around somewhere.

# lsof -x +d /sys/class/hwmon/hwmon4/
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
bash    114250 root  cwd    DIR   0,22        0 62963 /sys/class/hwmon/../../devices/platform/it87.2656/hwmon/hwmon4
bash    120899 root  cwd    DIR   0,22        0 63077 /sys/class/hwmon/../../devices/platform/it87.2656/hwmon/hwmon4/power
lsof    124129 root  cwd    DIR   0,22        0 62963 /sys/class/hwmon/../../devices/platform/it87.2656/hwmon/hwmon4
lsof    124130 root  cwd    DIR   0,22        0 62963 /sys/class/hwmon/../../devices/platform/it87.2656/hwmon/hwmon4

This topic was automatically closed 273 days after the last reply. New replies are no longer allowed.