Fixing NVIDIA GPU Fan Not Starting in Ubuntu

If your NVIDIA GPU fan isn’t starting on Ubuntu, you can fix it with a simple tweak to the Xorg configuration. Here’s how to do it:

  1. Open the Xwrapper.config file
    First, open a terminal and edit the Xwrapper.config file with this command:

    sudo nano /etc/X11/Xwrapper.config
    
  2. Edit the file
    In the file, add the following line:

    needs_root_rights=yes
    

    Also, make sure the line for allowed users is set like this:

    allowed_users=console
    
  3. Save and exit
    After adding the lines, save the file by pressing Ctrl+O, then press Enter. Exit by pressing Ctrl+X.

  4. Reboot
    Reboot your system for the changes to take effect.

    sudo reboot
    
  5. Set Fan Speed
    After rebooting, open the NVIDIA settings by running:

    nvidia-settings
    

    From the NVIDIA Settings window, go to the Thermal Settings tab and adjust the fan speed as desired.

This should get your GPU fan working as expected in Ubuntu! If you encounter any issues, ensure that your NVIDIA drivers are properly installed and up to date.