Cannot set fan speed even with coolbits enabled

Hello!

So, recent Manjaro convert here, just set up my machine yesterday. Everything’s been going fine so far, except for this one thing. I cannot seem to get my graphics card to listen to my fan speed settings.

I have set coolbits to 31 in my nvidia.conf in /etc/X11/mhwd.d/. In GreenWithEnvy and nvidia-settings, it has unlocked the overclocking and fan speed controls. However, attempting to use them in either program fails. In GWE, the fan profile simply doesn’t apply, and in nvidia-settings, it says “Failed to set new Fan Speed!” in the bottom left when pressing the Apply button.

Some things I have attempted so far:

  • Installing Flatpak and AUR git versions of GWE
  • Setting coolbits in either “Screen” or “Device” sections, and also in both
  • Setting coolbits to just 4
  • Made sure that nvidia.conf is the loaded xorg configuration file

Running kernel 5.10.32-1 and NVIDIA driver 460.73.01.
Here my current nvidia.conf file. If you would like any other info, please let me know.

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "Coolbits" "31"
	Option "NoLogo" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Coolbits" "31"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

EDIT: Even though it is visible on my profile, I’d also like to specify that I am on the unstable branch.

I just tried, added coolbits 4 to my device section as per the instruction on the Arch wiki, rebooted, and I can see in the Thermal Settings of Nvidia Settings that I can manage my fan speed now. Testing branch, GTX 1060, kept the 465 drivers though (stopped updating since the rollback).

Here is my /etc/X11/mhwd.d/nvidia.conf file

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 465.24.02

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DVI-D-0: 1680x1050_60_0 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

//EDIT: is your card able to have controlled fan?
//EDIT2: may be a bug in 460 drivers. Not in the mood to rollback drivers for a test :\

My card is able to have a controlled fan. GWE worked fine on Pop OS 20.10. Just wondering, how did you update your driver to 465? Using Manjaro’s Settings to auto install proprietary, it didn’t offer me an update, but I may be doing it wrong.

I got them in a recent update that was rolled back shortly after because some people have issues that need fixing from Nvidia, so you can’t have them anymore from Manjaro.

I see… Alright, well guess it’s the waiting game for me. Thanks for the help though!

One thing you could try though, is to run sudo nvidia-settings from terminal, and save the configuration (without merging) to the nvidia.conf file, then add the coolbits in the proper section (the device section as in my config file) and reboot, to see if that works this way. Make sure to have a copy of the original config file elsewhere in case it breaks for whatever reason when you do that (it shouldn’t).

Note that running graphical application as sudo is bad practice and always not recommended, but I do it anyway for this exact procedure (save the nvidia config file).

Same issue but for the driver I use, when I have no issue :thinking: but still it could be same issue also in 460 drivers, for some hardware.

I eventually updated my system and rolled back the drivers to 460. It is working as expected on my side.

Tried the sudo nvidia-settings thing, unfortunately didn’t fix the problem. The issue seems not to be with the coolbits setting itself, but the inability for applications to set the values that the coolbits supposedly allow them too. It’s unfortunate, yet also kind of relieving that others are having the same issue as me.

Same problem here after updating to 460.73.01 Can’t set fan speed anymore

sudo nvidia-settings -a ‘[gpu:0]/GPUFanControlState=1’ -a ‘[fan:0]/GPUTargetFanSpeed=99’

Attribute ‘GPUFanControlState’ (caimPC:1[gpu:0]) assigned value 1.

ERROR: Error assigning value 99 to attribute ‘GPUTargetFanSpeed’ (caimPC:1[fan:0]) as specified in assignment ‘[fan:0]/GPUTargetFanSpeed=99’ (Unknown Error).

1 Like

I had this issue too but I managed to fix for myself. I found that there was 6 versions of the xorg configuration file (xorg.backup-working.conf, xorg.conf.backup. xorg.conf.nvidia-xorg-origonal, xorg.conf xorg.conf.d/nvidia.conf.nvidia-xconfig-original, xorg.conf xorg.conf.d/nvidia.conf) in /etc/X11. I found these was interfering with my settings, i reverted all the xorg files to the default file xorg file (removed all coolbit lines from every file) and then added coolbit lines in the screen “section” heading (strange ik) for the mhwd.d/nvidia.conf and xorg.conf.backup.

this is my xorg.conf.backup file

# nvidia-xconfig:  version 460.67

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 460.67

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1080 Ti"
	Option "NoLogo" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Coolbits" "8"
    Option         "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x1; PowerMizerDefault=0x1; PowerMizerDefaultAC=0x1"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
 

and this is my mhwd.d/nvidia.conf file

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 460.67

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 460.67

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1080 Ti"
	Option "NoLogo" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Coolbits" "28"
    Option         "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x1; PowerMizerDefault=0x1; PowerMizerDefaultAC=0x1"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
 

a strange solution yes but it fixed the issue for me. ( i also added those registyrswords line under which might help fix the issue ) might work for you.