Bitcoin Forum
May 10, 2024, 08:03:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   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 329 times)
tim-bc (OP)
Full Member
***
Offline Offline

Activity: 538
Merit: 175


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.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715371421
Hero Member
*
Offline Offline

Posts: 1715371421

View Profile Personal Message (Offline)

Ignore
1715371421
Reply with quote  #2

1715371421
Report to moderator
1715371421
Hero Member
*
Offline Offline

Posts: 1715371421

View Profile Personal Message (Offline)

Ignore
1715371421
Reply with quote  #2

1715371421
Report to moderator
1715371421
Hero Member
*
Offline Offline

Posts: 1715371421

View Profile Personal Message (Offline)

Ignore
1715371421
Reply with quote  #2

1715371421
Report to moderator
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2184
Merit: 4238


Join the world-leading crypto sportsbook NOW!


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?

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
mikeywith
Legendary
*
Offline Offline

Activity: 2226
Merit: 6375


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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
tim-bc (OP)
Full Member
***
Offline Offline

Activity: 538
Merit: 175


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 (OP)
Full Member
***
Offline Offline

Activity: 538
Merit: 175


View Profile
March 08, 2019, 04:41:42 PM
Merited by frodocooper (3), jakaba (2), 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
Member
**
Offline Offline

Activity: 277
Merit: 23


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 (OP)
Full Member
***
Offline Offline

Activity: 538
Merit: 175


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: 3626
Merit: 2542


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 -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
Lunga Chung
Member
**
Offline Offline

Activity: 277
Merit: 23


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:  

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