foucault / nvfancontrol

NVidia dynamic fan control for Linux and Windows
GNU General Public License v3.0
208 stars 20 forks source link

ERROR - Could not update fan speed #35

Open midwire opened 3 years ago

midwire commented 3 years ago

First, thanks for doing this! My GPU fans make a weird croaking/bullfrog sound (one in particular) as it stops and then restarts every few seconds. It is super annoying and I'm hoping your project will help me fix that.

I've followed the README except for running X11 as root. Since my driver version is 460.73.01 I was hoping to avoid doing that. Unfortunately it seems that may be the reason I get the error. Here's my output:

➤ ./nvfancontrol -d
WARN - No config file found; using default curve
DEBUG - Default configuration loaded
DEBUG - [[gpu]]
id = 0
enabled = true
points = [[41, 20], [49, 30], [57, 45], [66, 55], [75, 63], [78, 72], [80, 80]]
DEBUG - Curve points: [(41, 20), (49, 30), (57, 45), (66, 55), (75, 63), (78, 72), (80, 80)]
INFO - NVIDIA driver version: 460.73.01
INFO - NVIDIA graphics adapter #0: GeForce RTX 3070
INFO -   GPU #0 coolers: COOLER-1, COOLER-0
ERROR - Could not update fan speed: XNVCtrl QueryAttr(COOLER_MANUAL_CONTROL) failed; error 0
DEBUG - Temp: 57; Speed: [211, 329] RPM ([35, 38]%); Load: 0%; Mode: ERR

I'd just like to get your advice before I open a security hole by running X11 as root. Is this error caused by my unprivileged X11 use?

foucault commented 3 years ago

Assuming you have enabled Coolbits then it's almost certainly an issue of unprivileged X server. I would suggest you try X11 as root; you can always revert back if you want. If the problem still persists when you run X11 as root then we found a new bug!

TerminalMan commented 3 years ago

I've the same issue. It used to work, however Nvidia's driver past a certain version seems to not support manual fan control anymore. Hopefully this is a bug, because the fancontrol slider in 'nvidia-settings' still exists, but doesn't work either.

Nvidia Driver version: 470.57.02

the patch notes mention, but I am unsure if this affects us:

https://www.nvidia.com/download/driverResults.aspx/177145/en-us

further info:

https://forums.developer.nvidia.com/t/fan-speed-regression-with-nvidia-beta-470-42-01-and-rtx-3080-fans-dont-stop-on-idle/183604/2

the 'fix' described there works for me. That being said, it doesn't appear to be a 'good' fix.

foucault commented 3 years ago

As far as I understand you still need X11 running as root to do anything, regardless of Coolbits.