The script should not terminate Xorg, or the custom speed settings may revert to their defaults. This will probably need to be executed at boot. Fan speed configurationĬreate a script (named gpufansetting in this example) in your user home or somewhere convenient. Above command creates sections for each GPU in the system. If you want to set all cool-bits binary bits to ‘1’ to control other aspects of the GPU, you can just set –cool-bits=31. sudo nvidia-xconfig -enable-all-gpus -allow-empty-initial-configuration -cool-bits=7 Without the “cool-bits” option set to a proper value in the nf file, trying to set fan speeds will just not work. You can check any existing configuration file /etc/X11/nf for the coolbits setting, or just create a new one using the command below.
NVIDIA FAN CONTROL INSTALL
Make the script run on boot Install and Configure Xorgįirst we need to have Xorg installed and configured properly. Install Xorg and create nf configuration file Our post on Mining Pods using CentOS 7.4 with CUDA 9.1, covers the procedure for CentOS, and was tested with NVIDA FE GPU cards and some Zotac cards. The procedure was tested on Ubuntu 16.04.2 LTS with EVGA GTX 1050 Ti GPUs, on Ubuntu 16.04.3 LTS with EVGA and ASUS GTX 10 Ti GPUs. Unfortunately it appears that we cannot avoid installing and keeping running an Xorg server, just to change GPU settings and keep them that way. The following steps are needed to make this permanent, and without any display attached (a headless system.) This generally applies to datacenter and remote server environments.Ī simple search on the the Internet was not sufficient to make things work so here is a write-up that works. The following assumes you installed Ubuntu Server without desktop environment, you do not want to run a desktop manager, and you need a command prompt after reboot. In high-performance computing applications when the system is in a datacenter, it is often preferable to run the fan at maximum speeds for lowest possible operating temperature to possibly prolong the life of the hardware. 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.NVIDIA GPUs have fan speed profiles that control the fan to keep the noise to a minimum. In my limited experience, setting it too high had no effect. If you set this too low, you will get an error. Where the 0 is my GPU number, and the 90 is the maximum power in watts. =END OF ANSWER=Īnd 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 90 nvidia-settings -a "/GPUFanControlState=1" -a "/GPUTargetFanSpeed=55"įor a much more detailed overview of this feature including multiple GPU fans, check out this thorough documentation Nvidia Overclocking and Coolingįor a somewhat rambling and wayward thread which lead me to the above link, check out Set Fanspeed in Linux from Terminal Importantly I note that my 1070 Ti is GPU 0. Gives information about the GPU(s) and their numbers. To tell nvidia-xconfig to allow the fan to be controlled in the command line. To control Nvidia GPU fan speed via Terminal on Linux Mint 20 with a 1070 Ti: sudo nvidia-xconfig -cool-bits=4