For anyone looking how to control their nvidia gpu fans in linux this is how I got it working.
I based my script on this post Control NVIDIA GPU Fan Speed on Linux Ubuntu 16.04 - ideanist
Note I don't know what has changed since that post but I can kill X and the fan speeds still stay at 100%. You could also do other things like messing with overclocking or power if you wanted to before the script kills X.
FYI I'm running Ubuntu 16.04
1. Install Xorg
2. Run Patrick's nvidia mining docker to start miner.
3. Run the script below. Note if you want multiple cpu's you would add more lines like so:
nvidia-settings -a [gpu:1]/GPUFanControlState=1 -a [fan-1]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:2]/GPUFanControlState=1 -a [fan-2]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:3]/GPUFanControlState=1 -a [fan-3]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:4]/GPUFanControlState=1 -a [fan-4]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:5]/GPUFanControlState=1 -a [fan-5]/GPUTargetFanSpeed=100
startfancontrol.sh
nvidia-xconfig --enable-all-gpus --allow-empty-initial-configuration --cool-bits=7
X :2 &
sleep 10
export DISPLAY=:2
#set GPU 0..5 fan to 100%. (This assumes six GPUs)
nvidia-settings -a [gpu:0]/GPUFanControlState=1 -a [fan-0]/GPUTargetFanSpeed=100
sleep 3
sudo killall Xorg
I have it down to 75C. It's in a case and its only a single fan mini 1060.
I based my script on this post Control NVIDIA GPU Fan Speed on Linux Ubuntu 16.04 - ideanist
Note I don't know what has changed since that post but I can kill X and the fan speeds still stay at 100%. You could also do other things like messing with overclocking or power if you wanted to before the script kills X.
FYI I'm running Ubuntu 16.04
1. Install Xorg
2. Run Patrick's nvidia mining docker to start miner.
3. Run the script below. Note if you want multiple cpu's you would add more lines like so:
nvidia-settings -a [gpu:1]/GPUFanControlState=1 -a [fan-1]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:2]/GPUFanControlState=1 -a [fan-2]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:3]/GPUFanControlState=1 -a [fan-3]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:4]/GPUFanControlState=1 -a [fan-4]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:5]/GPUFanControlState=1 -a [fan-5]/GPUTargetFanSpeed=100
startfancontrol.sh
nvidia-xconfig --enable-all-gpus --allow-empty-initial-configuration --cool-bits=7
X :2 &
sleep 10
export DISPLAY=:2
#set GPU 0..5 fan to 100%. (This assumes six GPUs)
nvidia-settings -a [gpu:0]/GPUFanControlState=1 -a [fan-0]/GPUTargetFanSpeed=100
sleep 3
sudo killall Xorg
I have it down to 75C. It's in a case and its only a single fan mini 1060.
Last edited: