June 28th, 2024

The Simplest Way to Control Nvidia GPU Fan Speed in Linux

The GitHub repository provides a script for controlling NVIDIA GPU fan speed in Linux. It includes a fan curve graph and instructions for setup, dependencies installation, and script execution to manage fan speed efficiently.

Read original articleLink Icon
The Simplest Way to Control Nvidia GPU Fan Speed in Linux

The GitHub repository offers a script designed for managing NVIDIA GPU fan speed in Linux. It features a fan curve points graph and detailed guidance on configuring the environment, installing necessary dependencies, and executing the script. By following the instructions provided in the repository, users can effectively regulate the fan speed of their NVIDIA GPU on a Linux system using the script.

Link Icon 4 comments
By @blagie - 7 months
Simplest? Perhaps.

Stupidest? Definitely.

What one really wants is a target temperature. There are two pieces I'd use here:

- Baseline open-loop controller based on power usage (integrated over some time; e.g. past 30 seconds)

- Closed-loop controller for fine-tuning with feedback from measured temperature to fan speed (PID is fine, but the integral term is critical)

The latter can be used to periodically calibrate the former.

You do not want a simple mapping of temperature to fan speed.

The odd issue about the above is that done wrong, continuously-changing fan speeds can be upsetting to users. Once can use a discrete approximation with hysteresis to avoid that.

By @SoftTalker - 7 months
Is there something wrong with the GPU fan speeds in stock configuration?
By @ThrowawayTestr - 7 months
I just use MSI afterburner