GithubHelp home page GithubHelp logo

hobbsh / auto_xmr Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 2.0 33 KB

Trying to automate as much of the Vega XMR mining shenanigans as possible

License: GNU General Public License v2.0

PowerShell 31.51% Batchfile 1.57% Python 66.91%

auto_xmr's Introduction

auto_xmr

Trying to automate as much of the Vega XMR mining shenanigans as possible. All the config files (amd.txt, OverdriveNTool.ini) in this repo are based on a 6x Vega rig (5x Vega FE and 1x Vega 64).

This repo assumes you have everything else setup and working (i.e. drivers, device detection, etc).

What does this do?

The scripts in this repo automate several pre-mining tasks to save a lot of clicking/typing:

  • mine.ps1 - runs the following 3 things:
    • devcon.ps1 - disables and re-enables Vega display adapters using devcon.exe.
      • Runs ulps_crossfire.ps1 after each enable/disable.
    • OverdriveNtool.exe - sets the card profiles. You will probably want to overwrite the OverdriveNtool.ini with yours and modify the line in mine.ps1 that sets the profiles
    • xmr-stak.exe - runs xmr-stak in AMD only mode

If this helped you, consider donating. Thanks!

XMR: 42TtmJxMEReSPiU39tUwFZ84KpFSpzdhuHstkzuTCipTdAuFqh7eMtk6b4zSLvfWZDA26aMKVTynYNVX19996DJx5uJugZm

Prerequisites

  • xmr_stak
  • OverdriveNTool
  • Windows DK (for devcon.exe)
  • Powershell
  • git-scm
  • I'm running Windows 10 Pro x64

1. Clone this repo to C:\

I recommend https://git-scm.com

2. Allow Powershell script execution

Make sure you enable script execution in Group Policy (gp so the powershell scripts can run (and so it persists on reboots). Set it to "Allow local and remote signed scripts". If you are paranoid, you can also enable this for just the User.

Computer Configuration
-Administrative Templates
  -Windows Components
    -Windows PowerShell -> Turn on Script Execution > 

3. Make sure your binaries are in place

Look at mine.ps1 and devcon.ps1 for where everything should be.

  • xmr_stak installation in C:\auto_monero\miner
  • OverdrivenTool.exe in C:\auto_monero\overdriventool

4. Run mine.ps1

Make sure you Run as Administrator!

mine.ps1 runs mine.bat which starts xmr_stak.exe. If you don't want it to start xmr_stak.exe and only do devcon.exe and OverdriveNtool.exe, remove that line in mine.ps1

Footnotes

Additional configuration - may or may not be related to your setup

Monitoring

monitoring/hashrate_poller.py - can be used to poll the xmr_stak web interface and ship data to Graphite. Only tested on Ubuntu 16.04.

dashboard

Dealing with Vega Frontier Edition enable/disable

This is what I had to do to get things setup (I followed Geek Mark's FE video on youtube with some changes):

  • Make sure you have remote desktop or Chrome remote desktop enabled!
  • Boot into safe mode and DDU every driver (including onboard) - at this point, it's ok to be plugged into one of the cards
  • Unplug all cards except one FE and boot
  • Install adrenaline driver only - run ulps_crossfire.ps1 to disable Crossfire and Ulps
  • Unplug your monitor and everything resembling one!
  • Plug the other cards in
  • Run ulps_crossfire.ps1 again to disable Crossfire and Ulps and reboot
  • Make sure settings stick on reboot
  • Disable all cards in Device Manager except for one - I pick an FE usually
  • Choose Update Driver and select the blockchain driver using "Have Disk"
  • When it's done, they should all be enabled. Run devcon.ps1
  • Run mine.ps1 to get rolling

References

Contributing

Open a PR!

Authors

Wylie Hobbs

auto_xmr's People

Contributors

hobbsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

miuchin pau1m

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.