Bitcoin Forum

Bitcoin => Mining => Topic started by: afarzin on June 11, 2011, 12:11:53 AM



Title: GPU shutdown script for Ubuntu
Post by: afarzin on June 11, 2011, 12:11:53 AM
Is there a way to have a video card stop hashing if a temperature get's really high?


Title: Re: GPU shutdown script for Ubuntu
Post by: Rob P. on June 11, 2011, 12:16:35 AM
Yes.


Title: Re: GPU shutdown script for Ubuntu
Post by: horrorshow on June 11, 2011, 12:59:27 AM
Quote
Yes.

That was not helpful at all.

Since it's linux, find a program that will monitor the hardware temperatures (there are numerous ones out there). Then make a shell script and find the temperature output by executing this program with whichever arguments you want. Then, take that output and use a conditional statement to kill your miner processes and spit out an error message if the temp exceeds your desired Tmax. Run this script on a constant loop (using "while true") or with a cron set to every minute.

I'm not at home right now, and unfortunately that means I don't have enough time to lay all this out or even draft anything...but if you've done a shell script before this should be fairly easy.


Title: Re: GPU shutdown script for Ubuntu
Post by: Rob P. on June 11, 2011, 01:05:43 AM
I answered the question, he didn't ask for examples.

I'd be happy to write one, need:
     Command to check temp of each card, sample output
     Command to run miner for each card
     Output of 'ps ax' while miners running


Title: Re: GPU shutdown script for Ubuntu
Post by: horrorshow on June 11, 2011, 01:17:06 AM
Sorry, you are technically correct. I just don't think he had a yes/no in mind. He may be thinking there's a script already out there just ready for him to run. In most cases people just write these themselves.


Title: Re: GPU shutdown script for Ubuntu
Post by: nomnomnom on June 11, 2011, 01:19:44 AM
This -> https://github.com/jsidhu/Bitcoin-Miner-Script/blob/master/start_miner_x.sh script
has a part in it that shuts down gpu at certain temperature (starting around line ~138)
So you can look there how it can be done :)