How can I change the nvidia GPU fan speed?
Matthew Martinez
So im trying ubuntu again after being off it for awhile in win7 i can set gpu fan to 10-30% and its barly reaching 52c , however with ubuntu nvidia set it to 55% wich is really loud on my msi 460gtx.
This is the only thing that keeps me from using ubuntu is there really no program or way to set manually like msi afterburner / evga precision , temperature curve & fan speed?.
Default fan is way to loud and its barly 3 c diffrence from 25% gpu fan speed to 55% but the noise is alot more.
5 Answers
In the terminal run:
sudo nvidia-xconfig
sudo nvidia-xconfig --cool-bits=4restart your computer and search for NVIDIA X Server Settings in the Dash. There should be an option to change fan speed under Thermal Settings.
1Be careful about the highest voted answer. I have two 2080ti GPUs and running that command made my computer unable to boot.
Finally, I found an answer from here. Following that:
Create a file named
/etc/X11/xorg.conf.d/11-nvidia-coolbits.confand write the following in it:Section "OutputClass" Identifier "nvidia" MatchDriver "nvidia-drm" Driver "nvidia" Option "Coolbits" "4" EndSectionLog out and log back in.
Run
nvidia-settings. In the windows that opens you can now find the fan speed control options. Only the fan speed of one GPU can be controlled though.
To control Nvidia GPU fan speed via Terminal on Linux Mint 20 with a 1070 Ti:
sudo nvidia-xconfig --cool-bits=4to tell nvidia-xconfig to allow the fan to be controlled in the command line. You may need to reboot here.
nvidia-smiGives information about the GPU(s) and their numbers. Importantly I note that my 1070 Ti is GPU 0.
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUTargetFanSpeed=55"For a much more detailed overview of this feature including multiple GPU fans, check out this thorough documentation Nvidia Overclocking and Cooling
For a somewhat rambling and wayward thread which lead me to the above link, check out Set Fanspeed in Linux from Terminal
==================END OF ANSWER==================
And as an extra tidbit not asked for in this question, you can also adjust the power output of your Nvidia GPU with:
sudo nvidia-smi -i 0 -pl 90Where the 0 is my GPU number, and the 90 is the maximum power in watts. If you set this too low, you will get an error. In my limited experience, setting it too high had no effect. I found I can get 95%+ performance for ~75% energy cost by setting the power level to 100 in the above command in my mining rig, but I imagine other power conscious users would appreciate this too.
Try sudo apt-get install nvclock
- Install nvclock as someone above pointed out
- Open terminal
nvclock -f -F 80(in this case, fan would run @ 80%)