CPU fan control means choosing how fast the CPU fan spins at each temperature, which you do with a fan curve in the BIOS/UEFI, a vendor or third-party utility on Windows, or fancontrol and the hwmon sysfs files on Linux. Start with the motherboard's own automatic mode, and only edit the curve if the fan is too loud at idle or the CPU runs hotter than you want under load.
Menu names and options differ by motherboard and laptop maker, so this article describes what each setting does and where the standard parts are documented. Laptops often lock fan control to the firmware, so the options below may be missing there.
How CPU fan control works
The motherboard reads a CPU temperature sensor and sets the fan speed to match. Two things vary: what signal the board sends to the fan, and which rule decides the speed.
- PWM mode. The board keeps the voltage steady and switches the signal on and off. A higher on-time share (duty cycle) means a faster fan.
- DC mode. The board lowers or raises the voltage itself. This is the mode for 3-pin fans, which do not have the extra control wire.
- Fan curve. The rule that turns temperature into speed: a minimum speed below a low temperature, full speed above a high one, and a ramp between them.
The Linux kernel documents this split in its hwmon interface: pwm1_mode is 0 for DC mode and 1 for PWM mode. The speed itself is an integer from 0 to 255, where 255 is maximum, or 100%.
Set CPU fan speed in the BIOS or UEFI
This is the most reliable method, because it works before the operating system loads and does not depend on running software.
- Restart and open the firmware setup (the key, often
DelorF2, is shown at boot). - Find the hardware monitor or fan control page. It may be called Q-Fan, Smart Fan, Fan Xpert or similar, depending on the maker.
- Select the CPU fan header and set its control mode to match the fan: PWM for a 4-pin fan, DC for a 3-pin fan. Many boards have an automatic option that detects this.
- Pick a preset (silent, standard, performance) or edit the curve points yourself.
- Save and exit, then check temperatures under load.
A preset is a good first step. Edit the curve points only if the preset gives noise or temperatures you do not like.
How to build a fan curve
A curve is a few points of temperature against fan speed. These values are an illustrative starting layout, not a rule. Fans and coolers differ, so adjust them by testing.
| CPU temperature | Fan speed (example) | Purpose |
|---|---|---|
| Up to 40 °C | 30% | Quiet at idle, still moving air |
| 50 °C | 45% | Light work, gentle ramp |
| 65 °C | 70% | Sustained load |
| 80 °C | 100% | Full cooling before the CPU needs to slow down |
Two habits make a curve more comfortable. First, keep the minimum speed above the point where the fan stalls or rattles. Second, avoid steep jumps at low temperatures: a CPU that spikes for a second can make the fan surge up and down. Many BIOS pages and utilities have a smoothing or step-delay option for this.
Check your CPU's maximum temperature on the maker's product page and keep your top curve point comfortably below it. To read temperatures while you tune, see how to check CPU and GPU temperature or the list of CPU temperature monitor tools.
Test the curve with a stress test
A curve that is quiet while you browse proves nothing about full load. Run a stress test, watch the temperature and fan speed together, and confirm the temperature levels off instead of climbing until the top curve point. The steps are in how to run a CPU stress test. If temperatures stay high even with the fan at 100%, the problem is the cooler, the airflow or the paste, not the curve. See how to replace thermal paste.
CPU fan control on Windows
Windows does not have a fan speed slider of its own. Your options are:
- The motherboard or laptop maker's utility, if it offers one. It usually edits the same curve the BIOS holds.
- A third-party fan control program. It can only control fans that your hardware exposes to software, so a fan header that the firmware locks will not respond.
- The BIOS curve, with no software at all.
Windows power plans do affect heat indirectly, because they change how hard the CPU is allowed to run. powercfg is the command-line tool for power plans. List your plans with:
powercfg /list
and inspect the active plan's settings with powercfg /query. Microsoft documents /setacvalueindex (plugged in) and /setdcvalueindex (battery) for changing a setting's value, and powercfg /aliases lists the setting names you can use in place of GUIDs. A lower maximum processor state generates less heat, but it also lowers performance. That is a different lever from the fan itself.
CPU fan control on Linux
Linux exposes fan controllers through the hwmon interface in /sys/class/hwmon/. Which hwmonN folder is yours depends on your system, so list them first. The files are documented in the kernel's hwmon sysfs interface page:
| File | Meaning |
|---|---|
fan1_input | Fan speed in RPM, read only |
pwm1 | Fan output, 0 to 255 (255 is maximum), read and write |
pwm1_enable | 0 no speed control (fan at full speed), 1 manual control through pwm1, 2 or higher automatic control |
pwm1_mode | 0 DC mode, 1 PWM mode |
Read the current speed (the folder number is an example):
cat /sys/class/hwmon/hwmon2/fan1_input
Example output:
1180
That is 1,180 RPM. To set a fixed speed, switch to manual mode and write a value, as root:
echo 1 | sudo tee /sys/class/hwmon/hwmon2/pwm1_enable
echo 128 | sudo tee /sys/class/hwmon/hwmon2/pwm1
128 out of 255 is about 50%. Note that pwm1_enable values above 1 depend on the chip, and the kernel docs point you to the individual chip documentation for the details of automatic mode. Not every driver exposes these files, and writing a low fixed value then forgetting it leaves the CPU without a temperature-based ramp. Set it back to automatic afterwards with echo 2 to pwm1_enable if your chip uses 2 for that.
Automatic curves with fancontrol
fancontrol is a script from lm_sensors. It reads temperatures, then sets the PWM outputs in a loop, and between a minimum and a maximum temperature the fan speed rises roughly linearly. Its companion pwmconfig walks you through writing the configuration file interactively, and the manual recommends it for first setup. You can edit the file by hand afterwards for small changes.
The settings are one variable per line, mapping each PWM output to a value. For example, MINTEMP=hwmon0/device/pwm1=40 sets 40 °C as the temperature at which that fan starts to speed up. Two behaviours from the manual are worth knowing. On startup the script exits if the devices or files in the config no longer match, because hwmon numbering can change after a driver or kernel update. The manual also warns that most fans are not designed for a PWM-modulated supply voltage, and says to set up a temperature alarm or shutdown in case a fan fails and you do not hear it stop.
If the fan will not respond
- The fan is on the wrong header. Use the motherboard's CPU fan header. Other headers may have different default curves or none.
- The control mode does not match. A 3-pin fan set to PWM mode may stay at one speed. Switch the header to DC mode, or the reverse for a 4-pin fan.
- The fan reads 0 RPM. The fan may be stopped by a zero-RPM feature at low temperature, or the speed signal may not reach the board. Raise the temperature with a stress test and see whether it starts.
- The curve is ignored. A utility and the BIOS can fight each other. Use one source of control at a time.
If the fan is loud even at idle, dust is a common cause. Cleaning the heatsink and fan often lowers the speed the curve asks for.
Frequently asked questions
- What is a fan curve?
- A fan curve maps a temperature to a fan speed. At low temperatures the fan runs slowly or at a fixed minimum, and as the CPU gets hotter the fan speeds up, up to full speed at a chosen maximum temperature. The fancontrol tool on Linux describes this as speed rising roughly linearly between a minimum and a maximum temperature.
- Can I control my CPU fan speed in Windows without extra software?
- Windows has no general fan speed slider. Fan behaviour is set by the motherboard or laptop firmware (BIOS/UEFI) and by the manufacturer's own utility, if one exists. If you want a curve you can edit from inside Windows, you need the vendor's utility or a third-party fan control program that supports your hardware.
- Is it safe to run the CPU fan at a low speed?
- It is safe only if the temperature stays well inside the CPU's limits under load. Test any new curve with a stress test while watching temperatures, and keep a fast ramp-up at high temperatures. The fancontrol manual also advises setting up a temperature alarm or shutdown in case a fan fails without you noticing.
- Why does my fan show 0 RPM or no control option?
- The fan header may not be reporting speed, the fan may be plugged into a header that is not the CPU fan header, or the control mode may not match the fan. Check the header in the BIOS monitor page and the fan control mode (automatic, PWM or DC), and try the CPU fan header on the motherboard.