nan0s7 / nfancurve

A small and lightweight POSIX script for using a custom fan curve in Linux for those with an Nvidia GPU.
GNU General Public License v3.0
314 stars 57 forks source link

Fan speed does not back to 0 #55

Closed petrux6776 closed 1 year ago

petrux6776 commented 1 year ago

I have a Gigabyte Eagle RTX 3060 12GB, it is dual fan and has a zero rpm feature. I'm on Manjaro (Gnome) and Nvidia driver version is 530.41.03. In the nfancurve config file I set min_t and min_t2 to 43 Celsius and the first fan speed at 55%. When I launch the nfancurve script I get this message:

The valid values for 'GPUTargetFanSpeed' are in the range 30 - 100 (inclusive). 'GPUTargetFanSpeed' can use the following target types: Fan.

However, when I run a benchmark or a game the fans start at ~43 and the speed ramps up as specified in the config file. The strange thing is that when I close the game the fans speed decreases as in config file, but when the temp of 43 is reached, the speed is stuck at the first speed in fcurve. In my case the first speed is 55% and fans are stuck at 55% even if temp is far below 43 Celsius (temp at 29, fans stuck at 55%). If I kill nfancurve fans speed is back to 0, as expected in the default fan curve of this videocard.

My config file:

min_t="43"
min_t2="43"

sleep_time="7"

hyst="2"

fcurve="55 70 85 95 99" 
tcurve="55 65 75 85 95" 

force_check="0"

fcurve2="55 70 85 95 99"
tcurve2="55 65 75 85 95"

which_curve="1 2 1 2"

default_fan="0"

fan2gpu="0 0 1 1"

P.S. I used nfancurve with same config file on Ubuntu with driver 525.105.17 and there wasn´t this issue.

petrux6776 commented 1 year ago

oh... It seems the issue is related to the fact that I'm unable to run xorg as root on Manjaro. On Ubuntu I was able to do this by editing Xwrapper.config. I don't know why on Manjaro creating and editing /etc/X11/Xwrapper.config doesn't solve the issue.