Software & AppsOperating SystemLinux

How To Control Fan Speed on Ubuntu

Ubuntu 20

In this article, we will guide you through the process of controlling the fan speed on your Ubuntu system. This can be particularly useful if you want to reduce noise or manage the temperature of your system. We will cover several methods, including using lm-sensors and fancontrol, thinkfan (for ThinkPad users), checking UEFI/BIOS settings, and i8kutils (for Dell computers).

Quick Answer

It is possible to control fan speed on Ubuntu using various methods such as lm-sensors and fancontrol, thinkfan (for ThinkPad users), checking UEFI/BIOS settings, and i8kutils (for Dell computers). These tools allow you to adjust fan speed to manage system temperature and reduce noise.

Using lm-sensors and fancontrol

The lm-sensors and fancontrol packages are powerful tools for controlling fan speed. Here’s how to use them:

  1. Install the lm-sensors and fancontrol packages. You can do this by running the following command in the terminal:
    sudo apt-get install lm-sensors fancontrol
  2. Configure lm-sensors. Run sudo sensors-detect and answer YES to all questions. This will detect all sensor chips on your system.
  3. Edit the /etc/modules file. Insert the modules detected by sensors-detect into this file. You can use any text editor for this, such as nano or vim.
  4. Start the kmod service. This will load the new modules into the kernel. Use the command sudo service kmod start.
  5. Configure fancontrol. Run sudo pwmconfig and follow the prompts to detect and configure fans.
  6. Fine-tune the fan settings. Edit the /etc/fancontrol file to adjust the fan speed according to your preference.
  7. Start the fancontrol service. This will apply the changes. Use the command sudo service fancontrol start.

Using thinkfan (for ThinkPad users)

If you’re using a ThinkPad, you can use the thinkfan package to control fan speed:

  1. Install the thinkfan package. Run sudo apt-get install thinkfan.
  2. Enable fan control. Edit the /etc/modprobe.d/thinkfan.conf file to set options thinkpad_acpi fan_control=1.
  3. Set thinkfan to start on boot. Edit the /etc/default/thinkfan file to set START=yes.
  4. Detect your laptop’s sensors. Run sudo sensors-detect.
  5. Configure thinkfan. Copy the paths of the sensors into the /etc/thinkfan.conf file and set the fan speed levels.
  6. Reboot your system. This will apply the changes.

Checking UEFI/BIOS settings

In some cases, you can control fan speed directly from the UEFI/BIOS setup:

  1. Restart your computer and enter the UEFI/BIOS setup. The key to press during boot to enter the setup varies by manufacturer.
  2. Look for a fan control setting. This is usually under the Hardware Monitor, System Health, or similar section.
  3. Adjust the setting according to your preference. You can usually choose between different modes such as Silent, Performance, Full Speed, or Customize.

Using i8kutils (for Dell computers)

Dell computer users can use the i8kutils package to control fan speed:

  1. Install the i8kutils package. Run sudo apt-get install i8kutils.
  2. Force the loading of the i8k kernel module if necessary. This can be done by adding i8k to /etc/modules.
  3. Configure i8kutils. Follow the instructions provided in the i8kutils documentation to configure fan control.

Conclusion

Controlling fan speed on Ubuntu can help manage system temperature and reduce noise. However, it’s important to be cautious when modifying system settings and always save your work before making changes. With the methods described in this article, you should be able to control fan speed on your Ubuntu system effectively.

Can I control the fan speed on any Ubuntu system?

Yes, you can control the fan speed on any Ubuntu system by following the methods described in this article.

Do I need to install additional packages to control fan speed?

Yes, depending on the method you choose, you may need to install lm-sensors, fancontrol, thinkfan, or i8kutils packages. Instructions for installing these packages are provided in the article.

Can I control fan speed on a ThinkPad using lm-sensors and fancontrol?

While lm-sensors and fancontrol can be used to control fan speed on some systems, ThinkPad users are recommended to use thinkfan, as it is specifically designed for ThinkPad laptops. Instructions for using thinkfan are provided in the article.

Is it safe to modify UEFI/BIOS settings to control fan speed?

Modifying UEFI/BIOS settings can be safe if done correctly. However, it’s important to be cautious and follow the manufacturer’s instructions. Make sure to save your work before making any changes.

Are the methods described in this article applicable to all Dell computers?

The i8kutils method described in this article is specifically for Dell computers. Other methods, such as lm-sensors and fancontrol, can be used on any Ubuntu system, including Dell computers.

Can controlling fan speed help reduce system noise?

Yes, by adjusting the fan speed, you can reduce the noise generated by the fans on your system. Lowering the fan speed can make your system quieter.

Can controlling fan speed help manage system temperature?

Yes, by increasing the fan speed, you can enhance airflow and cooling, which helps in managing the system temperature. It can be particularly useful during heavy usage or in hot environments.

Is it necessary to reboot the system after making changes to control fan speed?

It depends on the method you choose. Some methods may require a system reboot for the changes to take effect, while others may not. Follow the instructions provided in the article for each method to ensure the changes are applied correctly.

Leave a Comment

Your email address will not be published. Required fields are marked *