Software & AppsOperating SystemLinux

How To Control Fanspeeds in Ubuntu: A GUI Solution

Ubuntu 21

In this article, we will explore a Graphical User Interface (GUI) solution for controlling fan speeds in Ubuntu. The software we will be using is called fancontrol-gui, which is a user-friendly interface for the fancontrol script that is part of the lm_sensors package.

What is Fancontrol-GUI?

Fancontrol-GUI is a software tool that provides an easy-to-use graphical interface for managing and adjusting fan speeds on your Ubuntu system. It is designed to work with Ubuntu 18.04 and above, making it an ideal solution for users who prefer a GUI over command-line interfaces.

Prerequisites

Before we begin, you should have a basic understanding of Ubuntu and its command-line interface. You should also have sudo privileges on your system.

Step 1: Install the Build Requirements

The first step in installing fancontrol-gui is to install the necessary build requirements. These are a set of software libraries and tools that are required to build the fancontrol-gui software from its source code.

Open a terminal and run the following command:

sudo apt update
sudo apt install libkf5config-dev libkf5auth-dev libkf5package-dev libkf5declarative-dev libkf5coreaddons-dev libkf5dbusaddons-dev libkf5kcmutils-dev libkf5i18n-dev libkf5plasma-dev libqt5core5a libqt5widgets5 libqt5gui5 libqt5qml5 extra-cmake-modules qtbase5-dev libkf5notifications-dev qml-module-org-kde-kirigami2 qml-module-qtquick-dialogs qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel cmake build-essential gettext git 

This command updates your package list and installs the necessary build requirements for fancontrol-gui. The -y flag is used to automatically answer ‘yes’ to any prompts that may appear during the installation process.

Step 2: Clone the Fancontrol-GUI Repository

The next step is to clone the fancontrol-gui repository from GitHub. This will download the source code for the software onto your system.

Run the following commands in your terminal:

git clone https://github.com/Maldela/fancontrol-gui.git
cd fancontrol-gui

The git clone command downloads the fancontrol-gui source code, and the cd command changes your current directory to the newly created fancontrol-gui directory.

Step 3: Build and Install Fancontrol-GUI

Now that we have the source code and the build requirements, we can build and install fancontrol-gui. This is done using the following commands:

mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_KCM=on -DBUILD_PLASMOID=on
make -j
sudo make install

Here’s what each command does:

  • mkdir build creates a new directory named build.
  • cd build changes your current directory to the build directory.
  • cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_KCM=on -DBUILD_PLASMOID=on configures the build process. The -DCMAKE_INSTALL_PREFIX=/usr option sets the installation directory to /usr. The -DBUILD_KCM=on and -DBUILD_PLASMOID=on options enable the building of the KCM and Plasmoid components of fancontrol-gui.
  • make -j builds the software. The -j option enables parallel building, which can speed up the build process on multi-core systems.
  • sudo make install installs the software onto your system.

Step 4: Launch Fancontrol-GUI

After the installation is complete, you can launch fancontrol-gui from the applications menu or by running the command fancontrol-gui in the terminal.

Conclusion

In this article, we have explored how to control fan speeds in Ubuntu using a GUI solution, fancontrol-gui. This software provides an easy-to-use interface for managing fan speeds, making it an ideal solution for users who prefer GUIs over command-line interfaces. By following the steps outlined in this article, you should now be able to control the fan speeds on your Ubuntu system with ease.

Can I use fancontrol-gui on other Linux distributions?

Fancontrol-gui is specifically designed for Ubuntu 18.04 and above. While it may work on other Linux distributions, it is recommended to check the compatibility and availability of dependencies before attempting to install and use it on a different distribution.

How does fancontrol-gui adjust fan speeds?

Fancontrol-gui utilizes the fancontrol script from the lm_sensors package to adjust fan speeds. The script uses temperature readings from various sensors on your system to determine the appropriate fan speed. You can configure the temperature thresholds and corresponding fan speeds in the fancontrol-gui interface.

Can I damage my hardware by manually adjusting fan speeds?

While fancontrol-gui provides a user-friendly interface for adjusting fan speeds, it is important to exercise caution when making changes. Setting fan speeds too low can lead to overheating and potential damage to your hardware. It is recommended to monitor your system’s temperatures and consult documentation or seek expert advice if you are unsure about optimal fan speed settings.

Can I uninstall fancontrol-gui if I no longer need it?

Yes, you can uninstall fancontrol-gui from your system. Open a terminal and run the following command:

sudo make uninstall

This will remove the fancontrol-gui software from your system.

Leave a Comment

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