There are several ways to control NVIDIA GPU fan speeds in Linux, depending on your specific hardware and the software tools you have installed. Here are a few common methods:
- Using the
nvidia-control utility:
The nvidia-control utility is a part of the NVIDIA Linux driver package and provides a command-line interface for controlling various aspects of the GPU, including the fan speed. To use it, you'll need to install the NVIDIA driver and reboot your system. Once you've done that, you can use the following command to control the fan speed:
nvidia-control --fan <fan_speed>
Replace <fan_speed> with the desired fan speed in percent. For example, to set the fan speed to 50%, you would use:
nvidia-control --fan 50
You can also use the --auto option to automatically adjust the fan speed based on the GPU temperature:
nvidia-control --fan --auto
- Using the
temperature utility:
The temperature utility is a part of the lm-sensors package and provides a command-line interface for reading and controlling various temperature sensors, including the GPU temperature. To use it, you'll need to install the lm-sensors package and reboot your system. Once you've done that, you can use the following command to control the fan speed:
temperature -f <fan_speed>
Replace <fan_speed> with the desired fan speed in percent. For example, to set the fan speed to 50%, you would use:
temperature -f 50
You can also use the -a option to automatically adjust the fan speed based on the GPU temperature:
temperature -a -f 50
- Using the
pwmconfig utility:
The pwmconfig utility is a part of the pwm package and provides a command-line interface for controlling PWM (pulse-width modulation) devices, including GPU fan controllers. To use it, you'll need to install the pwm package and reboot your system. Once you've done that, you can use the following command to control the fan speed:
pwmconfig -l 0 -c 50
This command will set the fan speed to 50% of the maximum speed. You can adjust the value 50 to change the fan speed.
- Using a GUI tool:
There are several GUI tools available that can control the GPU fan speed, such as gnome-sensors, sensors-gui, and pwmgui. You can install one of these tools and use it to adjust the fan speed.
Note: The specific commands and options may vary depending on your hardware and the version of the software you are using. You may need to consult the documentation for your specific GPU and software tools to get more information on how to control the fan speed.