if you want to restart miner x time due hash drop here is simple script .
my miner restart every 30 min
Ps don't close script terminal.
creat bat file and put this.
Edit
set commandline and set u config
@echo off
echo -------------------------------------------------------------------
echo Restart Cast miner every 30 min
echo -------------------------------------------------------------------
echo:
set executable=cast_xmr-vega.exe
set commandline= -S youpoolhere -u youwallet here and others cmd from you bat file. %* --fastjobswitch --forcecompute
set runforseconds=1800
set restartinseconds=2
set /a counter=0
timeout 2
:start
start "cast_xmr-vega" %executable% %commandline%
echo:
echo The software will run for %runforseconds% seconds
timeout %runforseconds%
taskkill /f /im %executable%
echo:
echo Restarting the software in %restartinseconds% seconds (%counter%)
timeout %restartinseconds%
set /a counter+=1
echo:
echo:
goto start
Thanks!! That is awesome stuff. Ever since I plugged 6 Vega either the drivers or the program are less stable and have to restart things over with a bat file, which I use, but it is manual and different than this one. How could your bat file be done to have onedrivetool and devcon.exe settings included too?
I really want to switch the drivers to the new Adrenalin ones... but it seems like the hash rate is quite slower for Vega 56
here is script to restart video cards , start overdrive and start mining.
juts copy,creat new bat file and edit.
SET MinerOpts -S xmr-eu.dwarfpool.com:9100 -u .... etc
SET VidTool1= OverdriveNTool.exe -r0 -p0Vega56 -r0 -p1Vega56 ... etc
set runforseconds=1800 secs to restart , 30 min default.
sorry but bitcointalk does not let me post the complete script in the code
Credits @TheJerichoJones
http://fgteambr.esy.es/start.txtNice band-aid. What a waste of time though. You are better to figure out why the hash rate drops.
I have noticed that the hash rate drops in the following instances
1. Windows is not set to "Never Turn Monitor off" on the power settings
2. Making sure that windows never shuts off the HDD or SDD "Always on" in power settings
3. Locking the computer or sending it to the lock screen (drops hash rate instantly) Keep the computer logged in on the desktop!
4. If you can't leave a monitor hooked up to it (tuned off) then find a dummy plug.
5. Using remote desktop and logging off ( Sends computer to lock screen) Even team viewer can cause problems.
6. In some cases running miners on different pools (running multiple instances of CAST) can cause the has rate to drop, meaning its best to use a single instance and point them all at the same pool. Results differ per miner.
7. Using the onboard GPU or iGPU is recommended. Plugging displays into the VEGA mining cards directly is not really recommend but works fine for some. Find another GPU to plugin if you don't have onboard to use as a last resort.
8. Try not to mix cards, as this can cause problems as well unless you really know what you are doing.
9. For 6 Vegas you should have at a minimum of at least 49452 Virtual Memory specified in Windows. A 120GB SSD is fine and so is 4GB of ram to accomplish this, just make sure you have enough space on the drive to do this. Increase by 8GB for each additional card. Windows may display this in MB but it's fine. The math is as follows 1024*(number of vegas)*(8 megabytes/gigabytes - whatever windows)+ (300 for overhead) = 49452
You can probably get away with less but it works so who cares.
10. Boot into safe mode to remove AMD drivers using DDU or even the AMD driver removal tool.
11. Install [Suspicious link removed]pute drivers for VEGA! in normal Windows(not safe mode) Don't install anything you don't need.. like ReLive or Problem report tool... (many different opinions about Wattman. I use it and have no issues)
12. Keep your mining rig configuration simple and focused as possible and you will have few issues.
13. Device manager disable and re-enable VEGA's after every reboot before you start to mine.
Shutting down the miner all the time is a waste of time and money. Spend the time to figure out what is wrong by testing out your rig and finding out what works before using a band aid solution that is not great for mining.
Again, hashrate drop is a known issue as per CircusDad's guide, and nothing you've said above will prevent it from happening to people who are experiencing it.
Also, using remote desktop doesn't cause the severe hashrate drop - I use remote desktop to all my rigs multiple times a day and at worst it causes a slight, temporary drop in the display card's hashrate (no iGPU on the rig, if there was an iGPU it wouldn't cause a drop at all) which goes straight back up once you log out of remote desktop (leaving the rig at login screen).