# Fan speed on headless linux machine without performance loss

**URL:** <https://forums.developer.nvidia.com/t/fan-speed-on-headless-linux-machine-without-performance-loss/46770>\
**Category:** Linux\
**Created:** [December 13, 2016, 4:50pm UTC](https://forums.developer.nvidia.com/t/fan-speed-on-headless-linux-machine-without-performance-loss/46770 "2016-12-13T16:50:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sizmailov](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sizmailov](https://forums.developer.nvidia.com/u/sizmailov)\
**Post date:** [December 13, 2016, 4:50pm UTC](https://forums.developer.nvidia.com/t/fan-speed-on-headless-linux-machine-without-performance-loss/46770/1 "2016-12-13T16:50:09Z")

</div>

System info:  
  \* headless server with ubuntu 15.04

- 4 x GTX780 on board
- nvidia driver 375.20

Problem:

- Cards overheat with default fan speed and clocks(and performance) drops
  - The script from [https://sites.google.com/site/akohlmey/random-hacks/nvidia-gpu-coolness](https://sites.google.com/site/akohlmey/random-hacks/nvidia-gpu-coolness) worked well with older driver (was installed with cuda-5.5), but with the recent one (375) performance state drops quickly to P8 from P0. But fun speed is 85%, heh.

Question:

- How to set fan speed properly on headless linux machine without loss of performance?

I’ve tried to apply various settings but it did’t work:

[https://devtalk.nvidia.com/default/topic/832288/how-to-automatically-set-powermizer-to-prefer-maximum-performace-with-340-and-346-drivers/](https://devtalk.nvidia.com/default/topic/832288/how-to-automatically-set-powermizer-to-prefer-maximum-performace-with-340-and-346-drivers/)

[https://devtalk.nvidia.com/default/topic/858868/powermizer-performance-stuck-at-level-3-all-the-time/](https://devtalk.nvidia.com/default/topic/858868/powermizer-performance-stuck-at-level-3-all-the-time/)

[https://devtalk.nvidia.com/default/topic/572053/linux/-solved-forcing-maximum-power-saving-on-the-desktop-quot-minimum-power-quot-mode-for-powermizer-/](https://devtalk.nvidia.com/default/topic/572053/linux/-solved-forcing-maximum-power-saving-on-the-desktop-quot-minimum-power-quot-mode-for-powermizer-/)

[https://devtalk.nvidia.com/default/topic/831440/linux/fan-speed-without-x-headless-powermizer-drops-card-to-p8/](https://devtalk.nvidia.com/default/topic/831440/linux/fan-speed-without-x-headless-powermizer-drops-card-to-p8/)

---

<div class="post-metadata">

**Author:** ![mabuss](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mabuss](https://forums.developer.nvidia.com/u/mabuss)\
**Post date:** [December 19, 2016, 1:55pm UTC](https://forums.developer.nvidia.com/t/fan-speed-on-headless-linux-machine-without-performance-loss/46770/2 "2016-12-19T13:55:15Z")

</div>

Hi,

same here, 4x GTX 1080 linux 4.4.0-47, nvidia driver version 375.26; some said it would be fixed in .26, it is not.  
Any of the coolbits do not work for me; is there a simple command-line tool (like nvclock) that powers the fan to 100%? And no, I do not want to run any X servers on the cards, just headless for CUDA computation.

Thanks,

Martin

---

<div class="post-metadata">

**Author:** ![tpruzina](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tpruzina/32/12314_2.png) [@tpruzina](https://forums.developer.nvidia.com/u/tpruzina)\
**Post date:** [December 19, 2016, 3:25pm UTC](https://forums.developer.nvidia.com/t/fan-speed-on-headless-linux-machine-without-performance-loss/46770/3 "2016-12-19T15:25:30Z")

</div>

I’m reasonably sure that you fellas are out of luck, to my best knowledge there is no official way to make this work without X.

This said, there are unsupported ways of doing this, like customizing BIOS for your cards and enforcing fan target / fan curve / constant clocks etc.

> **[Kepler BIOS Tweaker (v1.27) Download](https://www.techpowerup.com/download/kepler-bios-tweaker/)**
>
> Kepler BIOS Editor lets you modify the VBIOS of your NVIDIA Kepler-based GeForce graphics card, ie the GeForce GTX 600 Series, like GTX 690, GTX 680,

> **[Kepler Bios Tweaker V1.26 (V1.27 added) TDP unlock GTX...](https://www.overclock.net/threads/kepler-bios-tweaker-v1-26-v1-27-added-tdp-unlock-gtx-780ti-780-titan-gtx770.1452223/)**
>
> TDP Power limit is set to 100 % yet never bypass the 75 % on 1.437 GHz
> 
> 
> 
> Edit thnx to alancsalt
> the 1.27 is here
> the voltage is unlocked you can set you bios with max voltage .
> this is a huge deal to me
> now i don't have to use AB and softvolt mods...

[http://cryptomining-blog.com/1014-how-to-increase-the-geforce-gtx-750-ti-power-target-limit/](http://cryptomining-blog.com/1014-how-to-increase-the-geforce-gtx-750-ti-power-target-limit/)

Basically, biostweaker is a tool for user friendly bios editing, nvflash is a cracked nvidia tool that allows you to flash non-signed vbios images. This is one time thing, once flashed it will just work they way you set it up.

Please note that you keplerbiostweaker is a .net app, but it works in wine with dotnet30 installed via winetricks (or if you have windows box lying around you can modify it there). Nvflash for linux does exist (just google for it).

Don’t believe that pascals in-hardware signature checks have been cracked (yet), so 1080 owners are probably out of luck.

PS: nvidia folks don’t support this and it might or might not void your warranty

---

<div class="post-metadata">

**Author:** ![mabuss](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mabuss](https://forums.developer.nvidia.com/u/mabuss)\
**Post date:** [December 19, 2016, 7:41pm UTC](https://forums.developer.nvidia.com/t/fan-speed-on-headless-linux-machine-without-performance-loss/46770/4 "2016-12-19T19:41:55Z")

</div>

Hi,

thanks, for pascal there is no hack in linux yet.

I came across this post:  
[https://devtalk.nvidia.com/default/topic/789888/set-fan-speed-without-an-x-server-solved-/](https://devtalk.nvidia.com/default/topic/789888/set-fan-speed-without-an-x-server-solved-/)  
It works, one can set the fan speed as desired, and then kill the X server again.

Recommended to run this one first:  
nvidia-xconfig --enable-all-gpus --separate-x-screens --allow-empty-initial-configuration

All in one script:

X :0 &  
sleep 5  
nvidia-settings -a “[gpu:0]/GPUFanControlState=1”  
nvidia-settings -a “[gpu:1]/GPUFanControlState=1”  
nvidia-settings -a “[gpu:2]/GPUFanControlState=1”  
nvidia-settings -a “[gpu:3]/GPUFanControlState=1”  
nvidia-settings -a “[fan:0]/GPUTargetFanSpeed=100”  
nvidia-settings -a “[fan:1]/GPUTargetFanSpeed=100”  
nvidia-settings -a “[fan:2]/GPUTargetFanSpeed=100”  
nvidia-settings -a “[fan:3]/GPUTargetFanSpeed=100”  
killall Xorg

Still, I am at a loss, my MSI Aero 8G card starts to reduce clock frequency at a temperature around 80+C, although “nvidia-smi -a” says throttle to take place at 96C only.  
Unfortunately, I have not managed to induce constant clock speed with nvidia-settings at this point.

Thanks for any suggestions.

- martin
