Post
Topic
Board Mining (Altcoins)
Re: Any word on amd vega hash rates?
by
Mythic
on 28/10/2017, 05:57:00 UTC

Thanks for your contribution Mythic - just tested with my Vega 64 and your solution works great. I've tweaked your automation a little further to disable and enable all Radeon cards in a rig at startup - see below for my contribution (note: this doesn't have code to execute xmr-stak-amd or overdriventool as those are straight forward commands and can be added to the end. If I have some time I might just add some parameters at the top for ease of editing and add some error handling to idiot proof the whole process):

Code:
@echo on
set currentdir=%cd%
cd C:\Program Files (x86)\Windows Kits\10\Tools\x64
devcon findall * | findstr Radeon > %currentdir%\radeoncards.txt
for /F "tokens=1 delims=:" %%a in (%currentdir%\radeoncards.txt) do (
devcon disable "@%%a"
timeout /t 15
devcon enable "@%%a"
timeout /t 15
)
del %currentdir%\radeoncards.txt
cd %currentdir%

After reading the documentation for devcon, I've found that you can actually just do

Code:
cd %~dp0
timeout /t 5
devcon.exe disable =Display
timeout /t 5
devcon.exe enable =Display

Where devcon.exe is placed in the same folder as the batch file. This ought to simplify things a bit.