# How to set fanspeed in Linux from terminal

**URL:** <https://forums.developer.nvidia.com/t/how-to-set-fanspeed-in-linux-from-terminal/72705>\
**Category:** CUDA Programming and Performance\
**Created:** [April 8, 2019, 11:15pm UTC](https://forums.developer.nvidia.com/t/how-to-set-fanspeed-in-linux-from-terminal/72705 "2019-04-08T23:15:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![prodigit80](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/prodigit80/32/20900_2.png) [@prodigit80](https://forums.developer.nvidia.com/u/prodigit80)\
**Post date:** [December 7, 2019, 10:08am UTC](https://forums.developer.nvidia.com/t/how-to-set-fanspeed-in-linux-from-terminal/72705/6 "2019-12-07T10:08:33Z")

</div>

> [@""](#):
>
> I’m also annoyed by cards that start thermal throttling before fan speed reaches 100%.
> 
> After setting cool-bits to 28 (4 or 31 might work too), you can set fan speed via:  
> nvidia-settings -a ‘[gpu:0]/GPUFanControlState=1’  
> nvidia-settings -a ‘[fan:0]/GPUTargetFanSpeed=100’
> 
> Edit: I see you used something similar, try “GPUTargetFanSpeed=” instead of “GPUCurrentFanSpeed=”, which is my guess why you got a read-only error!

I’m not sure where you can enter those values, but it doesn’t work in my terminal.  
Depending on why you use the GPU, if you have constant high GPU usage (like heavy gaming, or folding or crunching), the best thing you can do, is lower the TDP of the card.  
It’ll still throttle the speed, but the card will run much cooler.

For reference, I have an open test bench, with an environment temperature of somewhere between 60-75F, and I can get 90-95% performance out of any RTX card running them at the following settings:

## GPU , GPU 2: Running watt +x/-y watts

RTX 2060, 2060 Super: 126W +/-1 Watt  
RTX 2070: 129W +4/-2 Watt  
RTX 2070 Super, 2080: 144W +/-5 Watt  
RTX 2080 Super: 149W +/-7 Watt  
RTX 2080 Ti: 166W. +14/-12 Watt

I raise the value by x watts, if the ambient temperature gets closer to 85-90F.  
I lower the value by y watts, if the ambient temperature gets closer to 55F.

Lowering the power, reduces heat. When heat goes lower, the driver will increase the boost frequency.  
Together with a fine tuned overclock, you can get near to 95% of performance, at 60-75% of the power consumption. I’m not sure why Nvidia tunes for maximum performance, instead of highest efficiency on the RTX line, as these cards run very hot (inside a case), and consume a lot of power.

The performance penalty (~5-10%) is well worth the reduction in heat (20-40C lower temps) and power consumption (25-40% lower per card).

If you have an intermittent performance demand on your card, water cooling is offering a better solution.

---

_[View the full topic](https://forums.developer.nvidia.com/t/how-to-set-fanspeed-in-linux-from-terminal/72705)._
