Author

Topic: GPU shutdown script for Ubuntu (Read 1392 times)

sr. member
Activity: 313
Merit: 250
June 10, 2011, 08:19:44 PM
#6
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 Smiley
newbie
Activity: 56
Merit: 0
June 10, 2011, 08:17:06 PM
#5
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.
member
Activity: 84
Merit: 10
June 10, 2011, 08:05:43 PM
#4
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
newbie
Activity: 56
Merit: 0
June 10, 2011, 07:59:27 PM
#3
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.
member
Activity: 84
Merit: 10
June 10, 2011, 07:16:35 PM
#2
Yes.
newbie
Activity: 41
Merit: 0
June 10, 2011, 07:11:53 PM
#1
Is there a way to have a video card stop hashing if a temperature get's really high?
Jump to: