Bitcoin Forum
June 17, 2019, 12:13:21 AM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Antminer S9] Here's how to switch between LPM and Enhanced LPM programmatically  (Read 235 times)
tim-bc
Full Member
***
Offline Offline

Activity: 434
Merit: 115


View Profile
February 12, 2019, 08:30:27 PM
Merited by suchmoon (9), frodocooper (3), BitMaxz (1), HagssFIN (1), mikeywith (1), DireWolfM14 (1)
 #1

Depending on your power costs / cooling situation, it might make sense to have your Antminer S9s running on LPM some days (regular hashrate, 88% energy usage) and on Enhanced LPM on other days (70% hashrate, 53% energy usage). This will reduce heat output and cooling costs when necessary.

If you only have a few miners, you can simply uncheck the "Enhanced Low Power Mode" checkbox in the configuration page when needed.

If you have a lot of miners, you can actually automate this process through SSH. All you have to do is add this line into the config:

Code:
"bitmain-close-low-vol-freq" : true,

There are many tools that allow you to remotely execute commands over SSH. I found the sshpass utility to be the easiest, but you could probably use pssh or ansible as well.

What do you all think?

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
1560730401
Hero Member
*
Offline Offline

Posts: 1560730401

View Profile Personal Message (Offline)

Ignore
1560730401
Reply with quote  #2

1560730401
Report to moderator
1560730401
Hero Member
*
Offline Offline

Posts: 1560730401

View Profile Personal Message (Offline)

Ignore
1560730401
Reply with quote  #2

1560730401
Report to moderator
Bitcoin Poker 3.0
The Largest Bitcoin Poker Site
Bad Beat Jackpot Available
No Limit Texas Hold'em Cash Games And Tournaments
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
DireWolfM14
Sr. Member
****
Offline Offline

Activity: 420
Merit: 589



View Profile WWW
February 12, 2019, 08:33:29 PM
 #2

Thanks for the advice, that's new to me.  Will this work on the S9i and S9j models as well?

mikeywith
Sr. Member
****
Offline Offline

Activity: 434
Merit: 913


be constructive or S.T.F.U


View Profile
February 13, 2019, 01:01:43 AM
Last edit: February 15, 2019, 10:59:08 PM by mikeywith
 #3

Thanks for the advice, that's new to me.  Will this work on the S9i and S9j models as well?

i see no reason why not , that's an SSH command that should run on all types of miners with those LPM modes.



op, great work as usual, keep bringing these goodies.

tim-bc
Full Member
***
Offline Offline

Activity: 434
Merit: 115


View Profile
February 15, 2019, 09:50:18 PM
Last edit: February 15, 2019, 11:10:00 PM by frodocooper
 #4

Thanks for the advice, that's new to me.  Will this work on the S9i and S9j models as well?

Yes, it should work the exact same way, same syntax for every command. It's only a different firmware file when you are initially upgrading to the enhanced firmware.

op, great work as usual, keep bringing these goodies.

Thanks! I hope it helps some of the bigger miners out there Grin

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
tim-bc
Full Member
***
Offline Offline

Activity: 434
Merit: 115


View Profile
March 08, 2019, 04:41:42 PM
Merited by frodocooper (3), BitMaxz (1)
 #5

Here's a proof of concept shell script that will enhance the miner at IP address $1 unless a second argument is provided, which causes it to do the opposite:

Code:
#!/bin/bash
if [ $# -eq 2 ]
then
  timeout 11 sshpass -p 'admin' ssh -4 -o StrictHostKeyChecking=no root@$1 "sed -i '/bitmain-freq/ a \"bitmain-close-low-vol-freq\" : true,' /config/bmminer.conf && /sbin/reboot" &
else
  timeout 11 sshpass -p 'admin' ssh -4 -o StrictHostKeyChecking=no root@$1 "sed -i '/close-low-vol-freq/d' /config/bmminer.conf && /sbin/reboot" &
fi

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
Lunga Chung
Newbie
*
Offline Offline

Activity: 204
Merit: 0


View Profile
April 27, 2019, 06:25:51 AM
 #6

How would this work in Awesome Miner?

I can define a trigger to execute SSH command on scheduled time ex:

from 00:00 AM - 08:00 AM (low tariff)  LPM
from 08:00 AM - 00:00 AM (high tariff) Enhanced LPM

Can someone more experienced with SSH past a full command string?

Thx
tim-bc
Full Member
***
Offline Offline

Activity: 434
Merit: 115


View Profile
April 30, 2019, 03:28:22 PM
Merited by frodocooper (2)
 #7

Can someone more experienced with SSH past a full command string?

You should be able to use the same ssh commands that I posted above to get you started.
For example, if you want to enable enhanced mode you would just use awesome miner to send the part in the double quotes:

Code:
sed -i '/close-low-vol-freq/d' /config/bmminer.conf && /sbin/reboot

That being said, I'm surprised that the Awesome Miner developers haven't added this as a feature yet.

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 1834
Merit: 1259


Evil beware: We have waffles!


View Profile
April 30, 2019, 03:37:18 PM
Last edit: April 30, 2019, 11:23:14 PM by frodocooper
 #8

... That being said, I'm surprised that the Awesome Miner developers haven't added this as a feature yet.

Patrike usually only adds features if someone requests it. Ask him about it in the Awesome Miner support thread.

For bitcoin to succeed the community must police itself - Joshua Zipkin aka Joshua Alexander leaked AMT A1 miner skype chats
How a miner mfgr SHOULD operate: HaggsFIN trip to Canaan My info useful? Donations welcome! 1Fuzzyk398kDWVjuC5qPX5v6CjSkvbgAbd
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
Lunga Chung
Newbie
*
Offline Offline

Activity: 204
Merit: 0


View Profile
May 01, 2019, 06:29:57 AM
Last edit: May 01, 2019, 08:55:39 AM by frodocooper
 #9

You should be able to use the same ssh commands that I posted above to get you started.
For example, if you want to enable enhanced mode you would just use awesome miner to send the part in the double quotes:

Code:
sed -i '/close-low-vol-freq/d' /config/bmminer.conf && /sbin/reboot

That being said, I'm surprised that the Awesome Miner developers haven't added this as a feature yet.

You can create a trigger in AM which can execute a command under defined circumstances (eg time of the day).

Sending just a command under double quotes does nothing but a full command works.

Which command would be for disabling enhanced mod?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!