How to Enable GPU fan settings nvidia in Linux

Nvidia Fans Settings
Nvidia Fans Settings

How to Enable GPU fan settings nvidia in Linux
We found the solution. We had to run the following first and restart

Option 1

Edit the xorg.conf file:

You should look for the NVIDIA section and add the following:

finally the file is as follows:

Note: If this file does not appear, run the following command and look for the file again

After that, please change gpu fan speed in the Nvidia X server Settings windows

Nvidia-settings Fan Speed
Nvidia-settings Fan Speed

Tested on:

Ubuntu 20.10

  • GeForce RTX 3080
  • GeForce RTX 3070
  • GeForce RTX 2080
  • GeForce RTX 2070
  • GeForce RTX 2060
  • GeForce RTX 1080
nvidia-settings fan speed tested on
nvidia-settings fan speed tested on

Option 2

Found the solution. I had to run the following first and restart

But I have another question. After reboot, The GPU control the FAN automatically. Then If I set the fan speed manually via

It works as it should. But when I set

afterward, now the Nvidia X Server Settings does not update the FAN Speed although it is possible to see in Nvidia-smi that the fan speed is still changing.

By the way I updated to driver.