Software & AppsOperating SystemLinux

How To Set Coolbits in Ubuntu 20.04 for Manual GPU Fan Control

Ubuntu 8

In this article, we will guide you through the process of setting Coolbits in Ubuntu 20.04 to enable manual GPU fan control. This can be particularly useful if you’re looking to optimize your GPU’s performance or reduce noise levels.

Quick Answer

To set Coolbits in Ubuntu 20.04 for manual GPU fan control, you need to edit the X configuration file, the Xwrapper configuration file, and change the permissions of the Xwrapper configuration file. After making these changes and rebooting your system, you will be able to control the GPU fan manually.

Understanding Coolbits

Coolbits is a feature provided by NVIDIA that allows users to manipulate several advanced properties of the NVIDIA graphics driver. These properties include GPU clock offsets, memory transfer rate offsets, and fan speed control. The value of Coolbits is a sum of its component bits in the binary numeral system. For example, a Coolbits value of 4 enables manual GPU fan control.

Prerequisites

Before we begin, ensure you have administrative privileges on your Ubuntu 20.04 system and the NVIDIA graphics driver installed.

Step 1: Editing the X Configuration File

First, we need to edit the X configuration file. Open the terminal and run the following command:

sudo nano /etc/X11/xorg.conf

This command uses the nano text editor to open the xorg.conf file located in the /etc/X11/ directory. The sudo command is used to run operations that require administrative privileges.

In the file, locate the “Device” section. Here, you need to add the line Option "Coolbits" "4". The “Device” section should look something like this:

Section "Device"
 Identifier "Device0"
 Driver "nvidia"
 VendorName "NVIDIA Corporation"
 BoardName "GeForce GTX 1070"
 Option "Coolbits" "4"
EndSection

Press Ctrl + O to save the file, then Ctrl + X to exit the editor.

Step 2: Editing the Xwrapper Configuration File

Next, we need to edit the Xwrapper configuration file. Run the following command in terminal:

sudo nano /etc/X11/Xwrapper.config

In the file, locate the line that starts with allowed_users=. Comment it out by adding a # at the beginning. It should look like this:

# allowed_users=console

Below the commented line, add the following two lines:

allowed_users = anybody
needs_root_rights = yes

The allowed_users = anybody line allows any user to start the X server. The needs_root_rights = yes line grants the X server root rights, which are necessary for Coolbits to function correctly.

Press Ctrl + O to save the file, then Ctrl + X to exit the editor.

Step 3: Changing the Permissions of the Xwrapper Configuration File

Finally, we need to change the permissions of the Xwrapper configuration file. Run the following command in terminal:

sudo chmod 2644 /etc/X11/Xwrapper.config

This command changes the permissions of the Xwrapper.config file to 2644. In this permission set, the owner can read and write the file, while the group and others can only read the file.

Step 4: Rebooting the System

Reboot your computer for the changes to take effect. You can do this by running the following command:

sudo reboot

Conclusion

By following these steps, you should be able to set the Coolbits in Ubuntu 20.04 and enable manual GPU fan control. Remember to adjust the Coolbits value according to your requirements. For more information on Coolbits and its different values, you can refer to the NVIDIA documentation.

What is manual GPU fan control?

Manual GPU fan control allows users to manually adjust the speed of their GPU’s fan. This can help optimize the GPU’s performance by keeping it cool during intensive tasks or reduce noise levels by lowering the fan speed during lighter workloads.

Why would I want to enable manual GPU fan control?

Enabling manual GPU fan control gives you more control over your GPU’s cooling system. You can adjust the fan speed according to your specific needs, whether it’s for better performance or a quieter computing experience.

What is Coolbits?

Coolbits is a feature provided by NVIDIA that allows users to manipulate advanced properties of the NVIDIA graphics driver, including GPU clock offsets, memory transfer rate offsets, and fan speed control.

How do I check if I have administrative privileges on Ubuntu 20.04?

You can check if you have administrative privileges by running the sudo -v command in the terminal. If you have administrative privileges, it will prompt you for your password without any error messages.

What if I don’t have the NVIDIA graphics driver installed?

If you don’t have the NVIDIA graphics driver installed, you can follow the official NVIDIA documentation or use the Additional Drivers tool in Ubuntu to install the appropriate driver for your GPU.

Can I adjust the Coolbits value to enable other features besides manual GPU fan control?

Yes, the Coolbits value can be adjusted to enable other features such as GPU clock offsets and memory transfer rate offsets. However, in this article, we focus specifically on enabling manual GPU fan control by setting the Coolbits value to 4.

Leave a Comment

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