To handle fan control for Linux, install lm-sensors and fancontrol, run sudo sensors-detect, then run sudo pwmconfig to pair each fan with a temperature sensor. If you prefer a desktop app with graphs, CoolerControl does the same job. Fans on headers the kernel cannot see still need a curve set in the BIOS.
Quick Answer
On most Debian and Ubuntu systems the command line route is sudo apt install lm-sensors fancontrol, then sensors-detect, then pwmconfig. That writes /etc/fancontrol, which the fancontrol service reads at boot. Four-pin PWM fans respond best, and a decent replacement fan costs from about R69 to R400 if yours cannot be steered.
🔍 Step One: See What Linux Can Detect
Run sudo sensors-detect and answer the safe defaults. It probes your motherboard's Super I/O chip and tells you which kernel module to load. Then run sensors and look for lines such as fan1 and pwm1.
- Fan RPM readings mean the chip is visible.
- A
pwm entry means the speed can be written, not just read. - No fan lines at all usually points to a very new board whose driver has not landed in your kernel yet.
Some boards need the kernel parameter acpi_enforce_resources=lax before the chip shows up, so read the sensors-detect output for hints about your exact chipset.
🛠️ Step Two: Pair Fans with Sensors
pwmconfig spins each fan to full and then stops it, so you can see which pwm channel steers which fan. Listen carefully and answer its prompts. It then asks you to choose a temperature source, normally the CPU package sensor, and the temperature range for minimum and maximum speed.
Keep the minimum high enough that the fan never stalls. Many fans need roughly 30 to 40 percent to start turning, so set the lowest speed above that. Enable the service with sudo systemctl enable --now fancontrol.
🖥️ The Graphical Route and Its Limits
CoolerControl gives you curves, profiles and live graphs, and it can follow GPU temperatures too. It is friendlier than editing a config file, and it handles many AIO coolers and hubs that fancontrol ignores. On the Highveld, where a summer afternoon pushes room air up, a profile that ramps fans a few degrees earlier keeps temperatures steadier.
If Linux simply cannot see a header, set the curve in the BIOS and leave software out of it. Fighting a BIOS curve with a software one often leaves fans hunting up and down.
🌀 Choosing Fans That Cooperate
Control is cleaner with four-pin PWM fans, since the speed signal is separate from power. Three-pin fans can be slowed by voltage on some boards, but you must switch that header to DC mode first. If you are replacing noisy units, browse case fans and match the connector, and check that your computer case has the right mount size and enough filtered intake. Airflow design settles most noise problems before any software does.
🔁 Making It Survive a Reboot
After pwmconfig saves its file, test the curve under load before you trust it. Run a CPU stress tool for ten minutes and watch sensors in a second terminal. If the fan ramps late or the temperature climbs past 80 degrees, lower the minimum temperature in /etc/fancontrol and restart the service. Some boards renumber their hwmon devices between boots, which breaks the file. The fix is to edit the DEVPATH and DEVNAME lines, or to let CoolerControl rediscover devices on every start.
Frequently Asked Questions
Which tools control PC fans on Linux?
The classic pair is lm-sensors for readings and fancontrol for curves. CoolerControl is the desktop alternative, with saved profiles and graphs.
Why does pwmconfig say it found no fan controllers?
Your kernel may lack a driver for the board's Super I/O chip. Re-read the sensors-detect output and search for your chipset, because brand-new boards often wait for a kernel update.
Can I set a temperature curve instead of a fixed speed?
Yes. Both tools map a sensor to a fan percentage, so the fans idle quietly and only ramp as the CPU or GPU warms.
Does my fan need a 4-pin PWM header to be controlled?
PWM gives cleaner control. A 3-pin fan can be steered by voltage on many boards, but the header must be set to DC mode in the BIOS first.
Why are my fans still loud after I set a curve?
A BIOS curve may be fighting the software one, or a hub is passing on a different header's signal. Set the header to manual in the BIOS and test one fan at a time.
Should a Gauteng summer change how I set the curve?
Yes. Warm room air means components start hotter, so begin ramping a few degrees earlier and recheck temperatures during a long load.
Ready to quieten your Linux build?
Pick PWM case fans and a case with good airflow from the Evetech component range, then tune the curve in software.