How to Configure Cgminer for Litecoin & Bitcoin (Windows 8)

How to Configure Cgminer for Litecoin & Bitcoin (Windows 8)

How to configure Cgminer to mine bitcoin, and litecoin.

System details

b2ap3_thumbnail_GGBT-Top.jpg

Motherboard: Gigabyte 990FXA-UD3

Processor: AMD FX 4100 4-Core Processor
Memory/RAM: Gskill Ripjaws 8GB
Power Supply: Raidmax RX-1000 - 1000W 80 PLUS Gold Power Supply
Graphics card: Sapphire AMD 7950 Dual-x
Operating system:  Windows 8 64bit Professional
AMD Drivers: 13.8 Beta
Cgminer: 3.4.0
GPU Settings:  MSI Afterburner

UPDATE WARNING:  If mining litecoin (Scrypt coins) do not upgrade to anything above Cgminer 3.7, as the GPU mining element has been removed.

Overview

This tutorial is a compliment to the Cgminer-Linux tutorial.  You can find that Here.  In comparing Windows, and Linux for mining purposes.  Windows has some important features, that Linux simply does not have.  The most important, is the capacity to adjust the voltage settings on "unlocked" graphics cards.  This can lower your temperatures by 10C, which is significant, when it comes to mining.  This configuration of cgminer, I will be using two Sapphire AMD Radeon 7950 GPUs, 

System pre-check

First, download, and install the drivers, and the cgminer software.  They can be found at the links above.  Always use the latest version.  If you run into problems, you can always roll back your drivers, and cgminer versions.  Unzip cgminer into a folder on your main drive.  For example:  C:\cgminer-3.4.0-windows  Make sure you reboot your computer, after you've completed the installation.

Once the reboot is complete.  We need to set our environmental variables.  Open your command prompt (with administrator access), and type the following commands:

setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1

It should give you a visual confirmation, that it was successful.  You can double check that these environmental variables are set, by going into the control panel>search "variable">Edit environmental variables for your account.  This should open a new window, where your environmental variables are shown.  If you do not see them here, you must add them in.  Click "New", and enter the variable name, and value above.  It should look something like this:

b2ap3_thumbnail_control-var4.jpg b2ap3_thumbnail_control-var5.jpg b2ap3_thumbnail_control-var6.jpg

Now that you've verified the installation of the environmental variables, we can verify that cgminer recognizes your gpu.  In your command prompt:

cd /
cd cgminer-3.4.0-windows   #Whatever the directory name, cgminer is in
cgminer.exe -n

The result should look like this:

b2ap3_thumbnail_cgminer-output.jpg

Cgminer configurations

First, open windows explorer, and navigate to your cgminer directory.  Inside, you'll find a file named: example.conf.  Rename your example.conf to cgminer.conf.  This will be where the default settings for cgminer will be stored.  It will access it every time you start cgminer.

Open your newly renamed cgminer.conf.  This will give you a good head start on creating your .conf file.  Depending on how you want to configure your mining rig, these settings can be static, or dynamic.  You can find all of the possible commands inside the cgminer directory, in the "README" & "SCRYPT-README" files.

Pulling information from my previous Sapphire 7950 installations, I already know a good working range for the clock/mem speeds.  Some of these basic settings for the 7950 can be found in this review:  Sapphire 7950 Dual-x Graphics Card Review.  Below are the settings I used for this tutorial. Your results may vary.

b2ap3_thumbnail_cgconf.jpg

Now that we have our cgminer.conf configured.  We need to create a .bat file Inside the cgminer directory.  You can do this by "right mouse-click">New>Text Document, inside the cgminer directory.  Name the file Cgminer-Start.bat (or something you'll remember).  This file will be setup to automatically start mining when your computer reboots. I automatically delete the .bin file.  I do this every time cgminer starts up.  By not deleting your .bin file, it can be the source of many problems.  The .bin file stores information about your settings.  It's good practice to automatically delete this file.  The settings are as follows:

del *.bin
cgminer.exe

Now that we have our cgminer.conf and Cgminer-Start.bat we can begin our final adjustments.

Initialize cgminer - Litecoin

Cgminer can be initialized, by simply double-clicking on the Cgminer-Start.bat file.  Once it starts up, you can then begin card optimization.  

b2ap3_thumbnail_cgm-set4-19.jpg

Using the configuration settings for the Sapphire 7950 above, this is the result.  Keep in mind, there was no modification of the voltage settings.  Hence, the high temperatures.  Manually adjusting cgminer's GPU settings can be done by pressing [G] on your keyboard.  This will bring you to a menu where you can select which option you need to adjust.  Get to know the adjustment settings in cgminer, they can save you a lot of time, when fine tuning your GPU's.  Alternatively, you can adjust your settings inside MSI Afterburner, in real time.  Either option works well.  

MSI Afterburner configuration

Using Afterburner is crucial when bitcoin/litecoin mining on Windows.  It's relatively easy to install, and get setup.  You can download the latest version of Afterburner at the link above.

After installing Afterburner, you'll need to modify your configuration file.  It's located in: C:\Program Files (x86)\MSI Afterburner\MSIAfterburner.cfg  Open the MSIAfterburner.cfg, and near the bottom of the file, you'll see this area:

b2ap3_thumbnail_ATI-config.jpg

You must add the correct information in the fields, like in the picture above.  This will enable Afterburner to overclock your graphics card.  Please note, that any damage to your computer, or graphics cards, are your own responsibility.  

Inside Afterburner, in the settings menu, you'll see the following.

Master graphics processor selection
- Sync GPU's only if they are the see9 seleetrong>C:\Prgmineud (102,g=the see9 seleetrong>C:\Prgmineud (oe, that any damagesp;It's

Initialize cgminer -cayeetrong b2ap3_thumbnail_ATI-config.jpgb2ap3_thumbnail_ATI-config.jpgb2ap3_thumbnail_ATI-config.jpgb2ap3_thumbnail_ATI-config.jpgb2ap3_thumbnail_ATI-config.jpgb2ap3_thumbnail_ATI-config.jpg2p3_thumbnail_ATI-config.jpg" tecoin">b2ap3_thumbnail_ATI-config.jpgb2ap3_thumbnail_ATI-config.jpgb2ap3_thumbnail_ATI-config.jpgb2ap3_thumbnail_ATI-config.jpg2p3_thumbnail_ATI-conTI-config.jpg" tecoin">bth=cgminer.exe

Using the configuration settings for the Sapphire 7950 above, this is the result.  Keep in mind, there was no modification of the voltagd 2n.g.

.

1fd50 above, this is the result. ltagd 2n.g.

.

1fd50 above, this is the result. ltagd 2n.g.

.

1fd50 above, this is the result. ltagd 2n.g.

.

1fd50 a2y> l="nofolove, this is the ettig.jpg" tecoin">bth=cgm c"gceoydfor the Sapphire 7950 above, 2p>

1fd50 aboveecoin">		1fd50 aboveecoior the Sapphire 7dnail_A	1fdl=fiboveecoin"> .bin file.  I do this every time cgminer starts up.  By not deleting your .bin file, it can be the source of many problems.b5ae y5Gvu It's goomAkce source of many problems.b5ae y5Gvu It's goomAkce source of many problems.b5ae y5Gvu It's goomAkce source of many problems.b5ae y5Gvu It's goomAkce source of many problems.b5ae y5Gvu It's goomAkce souphire 7uOvly delete this fi.,ydvu&nond6ddimages/easyblog_images/338/cgm-set4-19.jpggxt. lta3hdfterd6dd, ce souphire 7uOvly deleten. 1fd50 auMSI Afterburner bitcoin litecoin">b2ap3_thumbnail_ATI-config.jpg

1fd38/b2ap3_thumbnail_ATI-config.0">

1fd38/b2ap3_thumbnail_ATI-config.0">

1fd38/b2ap3_thumbnail_ATI-config.0">

1fd38/b2yn" t="bth="ap3_thumbnail_ATI

1fd38/b2ap3gurations

> 1fd38/b2ap3gura/easyblog_images/d  1fdt="2ings can2ap3gurationsBelow are the settings I use alfBt="btingin" width="40nfigstrong>BOtomatint-size: 16px; fonin is: 1.125Vstrong>Bi2d38thumbn>Cgmieig Gvu1.100Vstrong>B 7950r>fileptioes/easyoob2ap3_thuJ" tewew" hreOvlyfile.  I do i2d38tIowerercan2in"> "2ap3_thuMacoinay prjpg" tealtlog_imaer.exefifile.  I do yblog_images/338/cgm-set4-19.jpg c"gceoyds/easyblog_images/338/b2ap3_t2.

1fd38/b2ap3gurations

> 1fd38/3 ="b2ap3_thfi238/b2ap3guratve, t0ions

> 1rations > 1fd.nts.

1fd38/b2ap3_thumbnail_ATI-config.0"> vr2aUig r

oinTI-config.jpg" teItomatiabo" tons tingin" width=" h="238er -tbetwdow,steeco

es/easuig r

oin tingin<2ap3_thu 7l="nofollopeakso

1fd38/b2ap3gurations

g.

9.jpg c"gceoyds/ve, t0ions

> 1fd

Inside Afterburner, in the settings menu, you'll see the following.

How">VS file storesyblog_images/338/cgm-set4-19.jpg c"gceoyds/easyblog_images/338/b2ap3_t2.

1fd38/b2ap3gurations

g.

6 <-uig r

p> 6 <-uig r

p> 9.jpg c"gceoyds/ve, t0ions

> 1fd C:\Prgminliew" .com/i">cges/easPCI-l="i strong>Bimbteco roomgin" width=" Gvu78F/25.5Cwhere youg alt="bAdel *.bpyay p38/cgminece sour:.  Either op 7l=il_hh2> Cgminer configurationsMngs can2aimageni"eanprjpg" te.bpy/pme cnh="tro -ng when y classthese environmo this every time cg _control-var4How">Leasyblog- class="hat these environmo this every time cg _control-var4How">e need toronmentalhe file, you'll see this ardows   #Whatrol-var4How">{ need tolog-imag"p013-" : [olog-imag{olog-imag"mp;ca: ura/easybP013bth=:9327",olog-imag"ms> 1f: u="fa you",olog-imag"ent=1f: uent="ca-polog-imag},olog-imag{olog-imag"mp;ca: up013bth=",olog-imag"ms> 1f: u="fa you",olog-imag"ent=1f: uent="ca-polog-imag},olog-imag{olog-imag"mp;ca: up013bth=",olog-imag"ms> 1f: u="fa you",olog-imag"ent=1f: uent="ca-polog-imag}olog-imag],olog-imag"iBJM"sity1f: u19",olog-imag"vnbsp;=1f: u1",olog-imag"hmg rGCM" : u256",olog-imag"kfa e;ca: usriabl",olog-imag"Cgmiup-gapca: u0",olog-imag"t/33or LononsW4tcy1f: u21376",olog-imag"shande=1f: u0",olog-imag"gpu-engieb-e: u1100",olog-imag"gpu-fan-e: u85",olog-imag"gpu-mems://c-e: u1600",olog-imag"gpu-memh="21f: u0",olog-imag"gpu-pe setueb-e: u20",olog-imag"gpu-vddc1f: u0.000",olog-imag"in" -cuno"21f: u95",olog-imag"in" -httphner-e: u85",olog-imag"in" -tn"> ,olog-imag"apii"htt-e: u4028",olog-imag"expi : u120",olog-imag" ailhttp-rongiv: i> ,olog-imag"gpu-dyniBJMrva;ca: u7",olog-imag"gpu-plath="t1f: u0",olog-imag"gpu-t/33or=1f: u1",olog-imag"hotplug1f: u5",olog-imag"ljs#p: u5",olog-imag"no-p013-disoutpuv: i> ,olog-imag"queub-e: u1",olog-imag"scan-s. &-e: u30",olog-imag"sriabl"v: i> ,olog-imag"in" -hge-cRWJG=1f: u3",olog-imag"shity=1f: u0",olog-imag"kfa e;-il_h1f: u/usr/ 1fdeckbsp;Ald38/b2ats. 1fdeckbsp;Ald38/b2ats.

ndc: u1 ,d"eb-help"pGCM": usb-me ,d"eb-help"ttpb": urati ,d"eb-help"

bns</ =Gskill Ripjaws 8GBTwdofa/eed tos="ee/atownofol"eb-help !impor"eb-helpiv class="eb-helpa1&a=B008B6shity:M677U4-tcoid="ass="eb-helpa

EjpgBljs.requsre() .ass="f(torials

Gskill Ripjaws 8GBbiv clTutoyds/26-onsggres/33Rns

:div>