Author

Topic: Too lazy to write your own script to control fans for your headless miner? (Read 840 times)

newbie
Activity: 23
Merit: 0
I found this piece of code while trying to gather info about "--pplib-cmd" http://ubuntuforums.org/showthread.php?t=1742947

I started to customize it a bit to fit my temps and support multiple adapters (since aticonfig gives a slightly different output if you have more than one adapter)... and well... this is what I came up with after a while, thought you could find it as useful as I found the other thread.

Probably shouldn't paste it in a hughe code-box so I pasted it at pastebin: http://pastebin.com/Zt0ZafiR



I will assume that you are using Ubuntu since all other guides seems to be based upon Ubuntu, if you don't use it I suppose you can figure it all out anyway Wink.

If you dont' have python installed (which you probably should have) you can install it by typing

Code:
apt-get install python

Download fancontrol.py

Code:
wget http://pastebin.com/raw.php?i=Zt0ZafiR -O fancontrol.py

Configure fancontrol.py

Code:
nano fancontrol.py

You MUST configure these variables:

Code:
adapters = 4
inactiveadapters = [1,3]

Adapters is the amount of GPU's you have in your computer. I have for example two cards with two GPU's each in this computer, meaning I have four adapters.
Inactive adapters is the GPU's that don't have a fan appointed to them, in my case it's the second and fourth GPU since I have two double GPU cards.

You will also probably want to adjust/balance the temperatures and speeds.


Run fancontrol.py
Code:
python fancontrol.py


(SSH into my miner)
http://s1.postimage.org/1ppkgslok/fancontrol.jpg

The values inside brackets or what it's called, 77.5,  is the calculated value between the average temperature and the warmest card that is used as base for the minimum allowed fanspeed to avoid too much heat spreading to cards in the slots above which causes higher temps for those cards.
(The math goes like this: Average temperature + Half difference between average and warmest temperature)

You could also change the settings so that all cards use the same fanspeed as the warmest one

(Works for boh multiple and single cards)

Edit: Balanced it to not fry your VRM's too much if you have overclocked your cards and starting the fancontrol during boot...
Jump to: