Author Topic: [Application] cgEasy v1.0.1--Generate CGminer config for LTC Mining easy!  (Read 50671 times)

Offline vorksholk

  • Jr. Member
  • **
  • Posts: 70
Hello! Today I invested a few hours time into making a simple program to generate cgminer .bat launch files. The program is a simple, executable jar.

"cgEasy holds your hand through the creation of cgminer configs--All you need is your pool info and know what GPU you have!"

It works on all platforms being Java, but it makes .bat files for cgminer.exe, which pretty much limits it to Windows. All you need to know about your GPU is what it is--is it a 5970 or a 7970M? Or maybe a Mobile 3410? cgEasy has around 200 different GPUs programmed into it--from a 2008 laptop gpu like a Mobility Radeon HD 3200 to a desktop 7970. This program is not meant for advanced users with multiple different gpus which each have different #'s of shaders.

download link: http://www.mediafire.com/?lt7bn1uvtx71ts4
cgminer forum link: https://bitcointalk.org/index.php?topic=28402.0
cgminer download link: http://ck.kolivas.org/apps/cgminer/cgminer-2.6.1-win32.zip
cgEasy v1.0.1 source .zip: http://www.mediafire.com/?za383a4h7nbk0uc

I encourage anyone who knows java to take a look through the source code (and even compile it yourself if you want) as that removes the suspicions and issues of running code you don't know. :)

NEW IN v1.0.1
--Overclocking settings
--Fixed one mobile card's settings
--Added Engine Clocks and Memory settings for almost 200 GPUs
--Allows overvolting

YouTube tutorial: http://www.youtube.com/watch?v=l4cVKu7j9tg !

What does the program do?
--Allows you to customize what color the background and font of cgminer is
--Allows "shortcutting" to pools (enter litecoinpool, it knows you mean http://litecoinpool.org:9332).
------>Supported Pools: litecoinpool.org, pool-x.eu, ltcmine.ru, coinotron, notroll.in, xurious, nuking, and litecoincash
--Does the work of finding out what shaders your card has for you. It asks what card you have, you type in whatever it is (say 5970, or 6990M) and it looks in it's almost 200-gpu database.
--If the card name you enter isn't recognized, you can enter how many shaders it has manually, no problem.
--Standalone, doesn't require any dependencies (aside from java)
--Adds ".bat" to filename if you don't add it.
--Allows overclocking of your GPU
--Tells you what default clock settings are of your GPU so you can decide
--Allows overvolting

Here are some screenshots:







^^^cgminer running from a generated .bat (custom colors!)

FAQ:
1.) How should I format the name of my GPU when I enter it?
If you have, for example, a 5970, you could either enter: 5970 or ATI5970 (caps don't matter). With a mobile processor, say a Mobility Radeon HD 3650, you would put 3650M or M3650. (basically, just the number, plus an 'm' if it is a mobile card).

2.) Do you have a copy of the source code I can compile myself in case I want to change something or just make sure the code isn't doing anything malicious?
http://www.mediafire.com/?u33zgljcs2d768t

3.) Can I add things to the finished bat?
Yeah, just open the generated .bat file with notepad :).

4.) Can I redistribute your program?
Yup. You can also reverse-engineer it and add whatever you want to it, such as new GPUs, or additional options. Or use the source .zip above.

5.) Does this work on Mac or Linux?
cgEasy will RUN on mac/linux, however it generates .bat files, which are a Windows thing.

6.) Do you plan on making a linux version?
Probably not. Most people using Linux probably wouldn't use a program like this anyhow.

7.) Do you have a step-by-step tutorial?
Video above. :) http://www.youtube.com/watch?v=l4cVKu7j9tg

8.) Does this support overclocking?
The generated .bat file will work fine with an OC'd GPU, or you can do the OC yourself.

9.) Overvolt settings don't show up in cgminer...?
Currently cgminer sometimes doesn't seem to display the overvolt settings in Gpu Settings. However, through my testing, I find that the overvolt still occurs (as I set an engine and memory clock that would need an overvolt to support it, and it runs stable when I set overvolting settings, even if they don't display in cgminer). If it seems the overvolt settings are not applying, please try something like MSi Afterburner for overvolting.

10.) Can your tool be used to underclock/undervolt?
Yes, certainly!

11.) When does the overclock/overvolt apply?
The overclocking and overvolting settings apply and begin affecting the card once the generated .bat file from my application is run.

NOTE: Overclocking can harm your hardware! I am not responsible for ANY damage incurred by you while using this free software I provide!

Have a suggestion? Want to see a feature? Let me know, leave a post below!

Has this software helped you? Want to donate? LMCPDA13LtS1qAT17vH3ApHPnb2BfU4iSv :)

FULL PROGRAM OUTPUT EXAMPLE:


Code: [Select]
Welcome to Vorksholk's cgEasy v1.0.1!
What color do you want the background to be?
0 = Black
1 = Dark Blue
2 = Green
3 = Light Blue
4 = Red
5 = Purple
6 = Yellow
7 = White
8 = Gray
9 = Sky Blue
A = Light Green
B = Light Aqua
C = Light Red
D = Light Purple
E = Light Yellow
F = Bright White

---->0
Background color set.
Please enter preferred font color:
0 = Black
1 = Dark Blue
2 = Green
3 = Light Blue
4 = Red
5 = Purple
6 = Yellow
7 = White
8 = Gray
9 = Sky Blue
A = Light Green
B = Light Aqua
C = Light Red
D = Light Purple
E = Light Yellow
F = Bright White


---->2
Text color set.
What would you like the .bat file name to be?

---->launch
File Name set.

Please enter the server address.
(ex: http://litecoinpool.org:9332)

---->litecoincash
Server address set.
Please enter the worker (ex: Vorksholk.1)

---->vorksholk.1
Worker set.
Please enter the password for the worker vorksholk.1

---->2
Password set.
Please enter the GPU model you want to mine on (ex: ATi5970)

---->5970
Shaders known for that card!
Please enter the aggression you would like (1-20).
Note: higher aggression = higher hash rate, lower aggression = less lag
If you want to use your computer while mining, choose a number under 13!

---->16
Aggression set.
Would you like to do overclocking? (y/n)

---->y
Warning: Overclocking your device can not only shorten it's lifespan, but can
outright damage it. Overclocking makes your GPU work harder than it is
programmed/made to. This features is only recommended If you know what you are doing
and are comfortable with your system GPU running hotter than average. If you do
not know what you are doing with overclocking, do NOT use this feature!
In the making of this software, I programmed in the default core and memory
clocks for the almost 200 supported GPUs. Please double-check the
info provided if you would like. No guarantees I didn't make a typo.
As well, if I found multiple clock speeds, I put the range of
 speeds that I found.VORKSHOLK IS NOT RESPONSIBLE FOR ANY DAMAGE
DONE USING THIS FEATURE!
(AGREE/DISAGREE)

---->agree
Your 5970 has a default core clock of 725MHz.
What would you like to set the engine to in MHz?

---->860
Engine OC set
Your 5970 has a default memory clock of 1000MHz
What would you like to set the memory to in MHz?

---->1150
Memory OC set. Would you like to set a custom voltage? (y/n)

---->y
What would you like to set your voltage to in Volts?

---->1.1
Overvoltage set. Please enter the worksize you would like (64, 128, 256)

---->256
Config file written!
« Last Edit: August 08, 2012, 02:10:30 AM by vorksholk »

Offline DiCE1904

  • Full Member
  • ***
  • Donator
  • ***
  • Posts: 444
  • legit
    • LTCDice
thats so cool vorksholk, way to go. this will be very helpful for ALOT of people

Offline vorksholk

  • Jr. Member
  • **
  • Posts: 70
thats so cool vorksholk, way to go. this will be very helpful for ALOT of people

Thank you :D

Offline Garr255

  • Jr. Member
  • **
  • Posts: 72
    • Cognitive Mining
Every tool to make it easier to increase a hashrate is appreciated. Good job!

« Last Edit: August 03, 2012, 04:36:37 AM by vorksholk »
Get some! http://dispenser.bitbank.me/ | Invest! http://cognitivemining.com/
First they ignore you, then they laugh at you, then they fight you, then you win.

Offline Garr255

  • Jr. Member
  • **
  • Posts: 72
    • Cognitive Mining
You might have meant to click quote in stead of modify, but please be careful not to abuse your mod powers, even if it was a mistake.

Get some! http://dispenser.bitbank.me/ | Invest! http://cognitivemining.com/
First they ignore you, then they laugh at you, then they fight you, then you win.

Offline vorksholk

  • Jr. Member
  • **
  • Posts: 70
You might have meant to click quote in stead of modify, but please be careful not to abuse your mod powers, even if it was a mistake.



Sorry bout that, meant to say that in my post:

Any features you think would be a good addition to this program? :)

Offline Garr255

  • Jr. Member
  • **
  • Posts: 72
    • Cognitive Mining
No problem, and overclocking!
Get some! http://dispenser.bitbank.me/ | Invest! http://cognitivemining.com/
First they ignore you, then they laugh at you, then they fight you, then you win.

Offline Melchom

  • Newbie
  • *
  • Posts: 4
thanks, very helpfull

Offline vorksholk

  • Jr. Member
  • **
  • Posts: 70
No problem, and over clocking!

Clicked the right button this time! And will-do, I'll add it tomorrow. :)

Edit: Only issue I see with including overclocking is if someone who doesn't know what they are doing screws up their GPU or something of the sort... don't want them to blame me. :/ I'll put in an all-caps disclaimer... that would protect me right? lol

thanks, very helpfull
Thank you :)
« Last Edit: August 03, 2012, 02:55:17 PM by vorksholk »

Offline burnside

  • Sr. Member
  • ****
  • Posts: 514
Linux bash version?  ;-)  I know you want to!
kattare.com  - web hosting, dedicated servers
ltc.kattare.com  - ltc mining pool
litecoinglobal.com - ltc virtual stock exchange

Offline vorksholk

  • Jr. Member
  • **
  • Posts: 70
Linux bash version?  ;-)  I know you want to!

That does sound cool--I'll look into it after I get overclocking working :)
« Last Edit: August 03, 2012, 03:15:00 PM by vorksholk »

Offline vorksholk

  • Jr. Member
  • **
  • Posts: 70
Does anyone here know a good list of all the ATi cards and their default voltages? I found one with all the core and memory clocks, but have yet to find voltages...

Offline vorksholk

  • Jr. Member
  • **
  • Posts: 70
Version 1.0.1 out--fixes a few minor bugs and adds:

--overclocking supoprt
--overvolting support
--memory and engine clock default settings for almost 200 GPUs

If overvolting doesn't seem to be working, it seems to be an issue with cgminer, as my program is generating perfect config for vddc as far as I can see. Try using something like MSi Afterburner.

Thanks!!

Anyone know of a good tutorial for how to setup and compile cgminer on linux?

Offline vorksholk

  • Jr. Member
  • **
  • Posts: 70
Likely additions to next version (1.0.2):

--Option to launch the .bat you just created from inside cgEasy (done)
--Optional fan speed setting
--Ability to create bat that starts cgminer in benchmark and debug modes
--Ability to set powertune %

Anything else people would like to see?

I do plan to add in support for linux by making probably .sh scripts. Fighting a bug with current directory at the moment in linux though... :\

Offline Someguy123

  • Administrator
  • Full Member
  • ****
  • Donator
  • ***
  • Posts: 217
  • Owner and operator of explorer.litecoin.net
    • Litecoin Block Explorer
Seems pretty useful, I might try it since I have no idea how to get cgminer to work properly with scrypt on my card  :P
LTC: LYmpJZm1WrP5FSnxwkV2TTo5SkAF4Eha31
Administrator of LTC Forum | I run LTC Block Explorer | Someguy123 Web Development