Bitcoin Forum
May 03, 2024, 09:54:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Antminer schedule auto change Frequency fan speed  (Read 2809 times)
bittalc1 (OP)
Full Member
***
Offline Offline

Activity: 162
Merit: 100


View Profile
February 14, 2015, 11:06:11 PM
 #1

Hi guys

i wanted to share my setup for automatic change fans speed, frequency and possible voltage but the newest firmware for the S4 does not allow the voltage change and its stuck on 0725v.

So i have created batch file that executes in the morning to slow the fans down and downclock the frequency 187.5Mhz of my miners, and also created another batch file that executes around 17h to bring them back to normal fan mode and frequency to my choosing.

For this setup the following files are required.
1. PSCP (an SCP client, i.e. command-line secure file copy) http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
2. Plink (a command-line interface to the PuTTY back ends)  http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
3. Task Scheduler      you can use the windows version or the no installation file from freebyte  http://www.freebyte.com/fbtaskscheduler/
4.WinScp

At first i set the required voltage and frequency on my miners and after that downloaded the cgminer.sh from /etc/init.d/    and cgminer.conf from /config   and i made separate folders for every miner and put the files there.

After that i downclocked all the miners to 187.5Mhz and 0700v and also made separate folders for my slow configuration  and downloaded and saved the files there (cgminer.sh and cgminer.conf) and edited the cgminer.sh to add the --bitmain-homemode  option to slow the fans.

i also created commands.txt so i can work batch commands through pscp, in this file i put only the cgminer restart line (/etc/init.d/cgminer.sh restart)

Sometimes i must hard restart a miner because it hangs when changing back to normal but its not happening always i think its because of changing the frequency, or maybe i should  use reboot command instead of cgminer restart. -- suggestions are welcome Smiley

In the end i put the slow.bat and normal.bat in task scheduler and choose the time when to execute.

So here is the slow.bat
Quote
@echo Making Slow Antminer 10 with freq 187.5 volt 0700
pscp.exe -scp -pw admin j:\batch\slow10\cgminer.sh root@192.168.1.10:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\slow10\cgminer.conf root@192.168.1.10:/config/cgminer.conf
plink.exe root@192.168.1.10 -pw admin -batch -m commands.txt



@echo Making Slow Antminer 11 with freq 187.5 volt 0700
pscp.exe -scp -pw admin j:\batch\slow11\cgminer.sh root@192.168.1.11:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\slow11\cgminer.conf root@192.168.1.11:/config/cgminer.conf
plink.exe root@192.168.1.11 -pw admin -batch -m commands.txt



@echo Making Slow Antminer 12 with freq 187.5 volt 0700
pscp.exe -scp -pw admin j:\batch\slow12\cgminer.sh root@192.168.1.12:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\slow12\cgminer.conf root@192.168.1.12:/config/cgminer.conf
plink.exe root@192.168.1.12 -pw admin -batch -m commands.txt



@echo Making Slow Antminer 13 with freq 187.5 volt 0700
pscp.exe -scp -pw admin j:\batch\slow13\cgminer.sh root@192.168.1.13:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\slow13\cgminer.conf root@192.168.1.13:/config/cgminer.conf
plink.exe root@192.168.1.13 -pw admin -batch -m commands.txt



@echo Making Slow Antminer 14 with freq 187.5 volt 0700
pscp.exe -scp -pw admin j:\batch\slow14\cgminer.sh root@192.168.1.14:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\slow14\cgminer.conf root@192.168.1.14:/config/cgminer.conf
plink.exe root@192.168.1.14 -pw admin -batch -m commands.txt

And the normal.bat
Quote
@echo Making normal Antminer 10 with freq 200 volt 0725
pscp.exe -scp -pw admin j:\batch\normal10\cgminer.sh root@192.168.1.10:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\normal10\cgminer.conf root@192.168.1.10:/config/cgminer.conf
plink.exe root@192.168.1.10 -pw admin -batch -m commands.txt



@echo Making normal Antminer 11 with freq 200 volt 0725
pscp.exe -scp -pw admin j:\batch\normal11\cgminer.sh root@192.168.1.11:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\normal11\cgminer.conf root@192.168.1.11:/config/cgminer.conf
plink.exe root@192.168.1.11 -pw admin -batch -m commands.txt



@echo Making normal Antminer 12 with freq 200 volt 0725
pscp.exe -scp -pw admin j:\batch\normal12\cgminer.sh root@192.168.1.12:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\normal12\cgminer.conf root@192.168.1.12:/config/cgminer.conf
plink.exe root@192.168.1.12 -pw admin -batch -m commands.txt



@echo Making normal Antminer 13 with freq 200 volt 0725
pscp.exe -scp -pw admin j:\batch\normal13\cgminer.sh root@192.168.1.13:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\normal13\cgminer.conf root@192.168.1.13:/config/cgminer.conf
plink.exe root@192.168.1.13 -pw admin -batch -m commands.txt



@echo Making normal Antminer 14 with freq 200 volt 0725
pscp.exe -scp -pw admin j:\batch\normal14\cgminer.sh root@192.168.1.14:/etc/init.d/cgminer.sh
pscp.exe -scp -pw admin j:\batch\normal14\cgminer.conf root@192.168.1.14:/config/cgminer.conf
plink.exe root@192.168.1.14 -pw admin -batch -m commands.txt
1714730048
Hero Member
*
Offline Offline

Posts: 1714730048

View Profile Personal Message (Offline)

Ignore
1714730048
Reply with quote  #2

1714730048
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
MyRig
Donator
Hero Member
*
Offline Offline

Activity: 792
Merit: 510


support@myrig.com


View Profile WWW
February 15, 2015, 01:12:40 PM
 #2

Wow!

Let us know how it perform after few days or week!  Keep us updated!

Cheers!

Antminer & DragonMint Repair  E-mail: support@myrig.com   T: @MyRig_com
Return Address: MyRig 3700 Quebec Street, Unit 100-239, Denver, Colorado 80207, USA
n200UG
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
May 09, 2015, 10:35:35 PM
 #3

I was looking for something like this for a while ... Great work. How do you save a copy the cgminer.sh cgminer.conf to your local drive ? What is the SHH command

Thanks
notlist3d
Legendary
*
Offline Offline

Activity: 1456
Merit: 1000



View Profile
May 10, 2015, 12:42:25 AM
 #4

Very very impressive.  Nice job writing some batch files!

Sounds like a great idea.
bittalc1 (OP)
Full Member
***
Offline Offline

Activity: 162
Merit: 100


View Profile
May 21, 2015, 05:23:55 PM
 #5

Thanks guys. Btw you can copy the files with Winscp.
adaseb
Legendary
*
Offline Offline

Activity: 3752
Merit: 1709



View Profile
May 21, 2015, 05:34:52 PM
 #6

Yeah thanks for posting this. This might come handy this summer with the heat.

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
n200UG
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
May 25, 2015, 10:00:39 PM
 #7

Thanks for the info. Did you ever found a fix for the hanging at time? I'm also getting a few system hanging after the batch run. I was reading about about bitmain-homemode to slow the fan. Which file need editing for this ?

Cheers
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!