orkblutt / MinerLamp

Qt GUI for ethminer
43 stars 16 forks source link

Reapply Overclocking #4

Closed Malapha closed 7 years ago

Malapha commented 7 years ago

Another Idea.

sometimes when CUDA error comes, my overclock Settings get reset. I use MSI Afterburner with profiles.

I found a Switch for that, so profiles can be loaded and applied via commandline.

So - having another Path/Exec Var pointing to MSI Afterburner plus an Integer (1-5) one could force Afterburner to reload a given Profile after a CUDA Crash..

MSIAfterburner.exe /Profile[1-5]

orkblutt commented 7 years ago

The easy way should to pass to MinerLamp a script in the miner path In that script you run your OC settings and then call ethminer with the good parameters Just avoid the term "error" in the output of your OC settings because MinerLamp will catch it and will restart your script over and over...

orkblutt commented 7 years ago

I'll probably add a better way later in MinerLamp

Malapha commented 7 years ago

Applying the afterburner Profile now via a small script:

minerlamp.ps1

function EthRestart{
         Start-Process .\minerlamp\run.bat
}

$ethstartdate=get-date
$jobstartdate= Get-Date
$nowdate = Get-Date
Start-Process .\minerlamp\run.bat
$f=0
while($f -eq 0) { 
        sleep 10
  $nowdate= Get-Date

#after 12hours restart minerlamp/ethminer and apply afterburnersettings
  if(($nowdate - $ethstartdate).totalseconds -ge 43200) {
        ethrestart
        $ethstartdate= Get-Date
        $jobstartdate=$nowdate        
   }
}
exit

run.bat

"C:\Program Files (x86)\MSI Afterburner\"msiafterburner.exe /profile3
Exit
soerenwa commented 7 years ago

Is there any other option to set the pwt and mem/core clock on startup? Afterburner with ethminer causing high cpu usage and lagging/freezing. Currently running a workaround with taskkill which seems to work ok. But any tips with another approach would be great ;-). An integration in minerlamp would be awsome aswell :D

orkblutt commented 7 years ago

I'm looking to integrate OC directly in MinerLamp. As you can sse in the last release, it's already interacting with nvidia's driver using NVML (as nvidia-smi does). I hope to find time to work on it this week.

orkblutt commented 7 years ago

A bit longer to make it work... still on it

orkblutt commented 7 years ago

@Malapha can you test the latest version please?

Malapha commented 7 years ago

Hi Orkblutt,

I switched back to claymore as my rig changed to a mixed set amd/nvidia. Handling was easier that way, as I went into holidays..

Of cause I still have all the configs, so I can check it in a view days..

Regards

Von: orkblutt [mailto:notifications@github.com] Gesendet: Samstag, 2. September 2017 10:08 An: orkblutt/MinerLamp MinerLamp@noreply.github.com Cc: Malapha lurgenprinz@online.de; Mention mention@noreply.github.com Betreff: Re: [orkblutt/MinerLamp] Reapply Overclocking (#4)

@Malapha https://github.com/malapha can you test the latest version please?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/orkblutt/MinerLamp/issues/4#issuecomment-326729671 , or mute the thread https://github.com/notifications/unsubscribe-auth/AczOc9bJUAJzsRFldjcY3SMKtN92Auv3ks5seQzfgaJpZM4OdzwA . https://github.com/notifications/beacon/AczOc0PYjAFE0xwcvLSd0TV_FB9_8ZnQks5seQzfgaJpZM4OdzwA.gif

orkblutt commented 7 years ago

done