Wiki‎ > ‎

GPU fan speed control

posted Aug 17, 2016, 1:34 PM by Dong Xu   [ updated Aug 30, 2016, 3:57 PM ]
1. Do this only once

Enabling Control of Fan Speed and generate xorg.conf file,
Adds coolbits to the xorg file

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
sudo reboot or rcxdm stop/start  (to restart x so that the new xorg.conf and coolbits take effect)

2. Controlling Fan Speed
sudo nvidia-settings -c :0 -a [gpu:0]/GPUFanControlState=1 -a [fan:0]/GPUTargetFanSpeed=<speed>     # turn on
or
sudo nvidia-settings -c :0 -a [gpu:0]/GPUFanControlState=0   #back to default


https://sites.google.com/site/akohlmey/random-hacks/nvidia-gpu-coolness#TOC-Faking-a-Head-for-a-Headless-X-Server

http://blog.cryptohaze.com/2011/02/scripts-to-control-nvidia-fan-speeds.html

https://wiki.archlinux.org/index.php/NVIDIA/Tips_and_tricks#Set_fan_speed_at_login


https://gist.github.com/squadbox/e5b5f7bcd86259d627ed

https://devtalk.nvidia.com/default/topic/789888/set-fan-speed-without-an-x-server-solved-/?offset=3

https://bbs.archlinux.org/viewtopic.php?pid=1379867#p1379867

https://docs.google.com/file/d/0B4vaYiS2DcC6a3dpYzIzZHZMdEk/edit?pli=1

===========Old steps below=====

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration

rcxdm stop

xinit nvidia-settings -a [gpu:0]/GPUFanControlState=1 -a [fan:0]/GPUTargetFanSpeed=<speed>  --  :0 -once
or
cool_gpu2.sh (<speed>|stop)   
#setting new fan speed messes up GPU power setting and lowers GPU performance P2 to P8

rcxdm start          #this bring P8 back to P2 by starting X

#Conclusion, proper GPU power/performance setting requires X running.

Comments