Software & AppsOperating SystemLinux

How To Control Fans on an Asus Laptop in Ubuntu 20.04

Ubuntu 13

In this guide, we’ll explore various methods on how to control the fans on an Asus laptop running Ubuntu 20.04. This can be useful for managing your laptop’s temperature and noise levels. However, it’s crucial to understand that altering your laptop’s fan control settings can potentially impact the device’s performance and longevity. Therefore, proceed with caution and at your own risk.

Quick Answer

To control fans on an Asus laptop in Ubuntu 20.04, you can use the built-in kernel fan control feature introduced in kernel version 5.6. Alternatively, you can create aliases in your ~/.bashrc file to easily switch between fan modes. Another option is to try using the "faustus" kernel module, although it may not be fully stable or compatible with all laptop models. It’s important to research and understand the potential risks and limitations before modifying fan settings on your laptop.

Using Kernel Fan Control

Starting with kernel version 5.6, fan control for Asus laptops was introduced. To check if your laptop supports this feature, navigate to the appropriate directory by typing the following command in your terminal:

cd /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy

If this directory exists, your laptop supports kernel fan control. The values 2 for Silent, 0 for Balance, and 1 for Turbo correspond to the modes in Armoury Crate on Windows. You can change these values to control the fan speed.

Creating Aliases for Fan Control

To simplify the process of switching between fan modes, you can create aliases in your ~/.bashrc file. The ~/.bashrc file is a script that runs every time you open a new terminal window. By adding aliases to this file, you can create custom commands.

Open the ~/.bashrc file in a text editor with the following command:

nano ~/.bashrc

Then, add the following aliases to the file:

alias fan-turbo='cd /sys/devices/platform/asus-nb-wmi; sudo sh -c "echo 1 >> fan_boost_mode"; sudo sh -c "echo 1 >> throttle_thermal_policy"; source ~/.bashrc; cd ~;'
alias fan-performance='cd /sys/devices/platform/asus-nb-wmi; sudo sh -c "echo 0 >> fan_boost_mode"; sudo sh -c "echo 0 >> throttle_thermal_policy"; source ~/.bashrc; cd ~;'
alias fan-silent='cd /sys/devices/platform/asus-nb-wmi; sudo sh -c "echo 2 >> fan_boost_mode"; sudo sh -c "echo 2 >> throttle_thermal_policy"; source ~/.bashrc; cd ~;'

These aliases change the fan_boost_mode and throttle_thermal_policy values to control the fan mode. After adding the aliases, apply the changes with the following command:

source ~/.bashrc

Now, you can use the commands fan-turbo, fan-performance, and fan-silent to switch between fan modes.

Using the Faustus Kernel Module

An open-source kernel module called “faustus” is being developed to add CPU fan control for Asus laptops. This module is available on GitHub at hackbnw/faustus. You can try using this module to control the fan speed on your Asus laptop.

Please note that this is an ongoing development and may not be fully stable or compatible with all laptop models. Always research and understand the potential risks and limitations associated with using unofficial kernel modules.

Conclusion

Controlling the fans on an Asus laptop running Ubuntu 20.04 can be done using the built-in kernel fan control, by creating aliases for fan control, or by using an unofficial kernel module like Faustus. However, not all Asus laptop models may have full fan control support on Linux. Always ensure to understand the potential risks and limitations associated with modifying fan settings on your laptop.

Can I control the fans on my Asus laptop running Ubuntu 20.04?

Yes, you can control the fans on your Asus laptop running Ubuntu 20.04 using various methods such as kernel fan control, creating aliases for fan control, or using an unofficial kernel module like Faustus.

How can I check if my Asus laptop supports kernel fan control?

To check if your Asus laptop supports kernel fan control, navigate to the /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy directory using the terminal. If this directory exists, your laptop supports kernel fan control.

What are the different fan modes available for Asus laptops?

The different fan modes available for Asus laptops are: Silent, Balance, and Turbo. In kernel fan control, these modes correspond to the values 2 for Silent, 0 for Balance, and 1 for Turbo.

How can I switch between fan modes easily?

You can create aliases in your ~/.bashrc file to switch between fan modes easily. By adding the provided aliases in the guide to your ~/.bashrc file, you can use commands like fan-turbo, fan-performance, and fan-silent to switch between fan modes.

Is the Faustus kernel module stable and compatible with all Asus laptop models?

The Faustus kernel module is an ongoing development and may not be fully stable or compatible with all Asus laptop models. It’s important to research and understand the potential risks and limitations associated with using unofficial kernel modules before trying to use Faustus.

Leave a Comment

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