Getting back into the habit of writing small utilities for myself -- rather than relearn the syntax for thinkfan I wrote my own fan controller for my current main Linux laptop -- a Thinkpad X131e
https://github.com/insom/tinyfan/blob/main/tinyfan.c
Now I can build it for my preference (fan at max to cool the machine down, and then off the rest of the time) and I can enjoy a little C practice while I do it.
@insom awesome!
i was just thinking about replacing fancontrol (a bash script) with something that
- can use cpu load as an (additional) input, to ramp up fan speed ahead of temp increase and
- doesn't need to exec /bin/sleep every second