THe other question i got about the serial option to make sticks run on different freq, any1 know more about that? possibble or not.
Yeah, I’m the one who asked for the serial number targeting added to the cgminer code.
Sadly, there is no current way of setting multiple frequencies to the same type of asic in once instance of cgminer. So here’s what you do:
Get your serial numbers. You can verify them with
cgminer -T --usb-dump 1 > usbinfo.txt
then open usbinfo.txt and look for the following section(s):
Manufacturer: 'GekkoScience'
Product: '2Pac BM1384 Bitcoin Miner'
Serial 'GS-10019785'
Take your normal cgminer launch command and modify like this to include all 2pacs you want at the same frequency:
cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1HpnRjN2ru4NhYFrZFsXe3JXCyJWW9fDeh.2pac -p x --suggest-diff 1 --gekko-serial "GS-10019785" --gekko-2pac-detect --gekko-2pac-freq 100
--gekko-2pac-detect only finds 2pac's. The --gekko-serial will only find the serials listed in the format shown above. Yes, that hyphen in GS- is critical.
Make another script for units you want at a different frequency:
cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1HpnRjN2ru4NhYFrZFsXe3JXCyJWW9fDeh.2pac -p x --suggest-diff 1 --gekko-2pac-detect --gekko-2pac-freq 200
This will find the rest of your 2pacs (no serial lookup) and run them at 200. You would need to start this script after the first - unless you want to specify all your serials like this:
cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1HpnRjN2ru4NhYFrZFsXe3JXCyJWW9fDeh.2pac -p x --suggest-diff 1 --gekko-serial "GGS-10019358,GS-10021759,GS-10021553,GS-10021581" --gekko-2pac-detect --gekko-2pac-freq 200
For the newpac:
cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1HpnRjN2ru4NhYFrZFsXe3JXCyJWW9fDeh.newpac -p x --suggest-diff 1 --gekko-serial "GS-10030095" --gekko-newpac-detect --gekko-newpac-boost --gekko-newpac-freq 400
You can combine these as needed as well - combining newpacs and 2pacs together, as well as compacs and terminus in the same manners.
Example:
cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1HpnRjN2ru4NhYFrZFsXe3JXCyJWW9fDeh.0 -p x --suggest-diff 1 --gekko-serial "GS-10000058,GS-10019358,GS-10021759,GS-10021553,GS-10021581,GS-10030095" --gekko-compac-detect --gekko-2pac-detect --gekko-newpac-detect --gekko-newpac-boost --gekko-compac-freq 200 --gekko-2pac-freq 250 --gekko-newpac-freq 425
This would run the selected 4 sticks at: 200 if it’s a compac (GSC 10000058), 250 if it’s a 2pac (GSD 10019358, GSD 10021759, GSD 10021553, GSD 10021581) or 425 if it’s a newpac (GSH 10030095) (with newpac-boost for pools that support it). Note that the --gekko-xxxx-detect options aren't needed here, unless you also had a terminus connected and on its own cgminer instance, but they can be useful depending on your setup and how you want to group together devices.
Here are all the flags you can use:
For detecting only one type of gekkoscience asic's:
--gekko-compac-detect, --gekko-2pac-detect, --gekko-terminus-detect and --gekko-newpac-detect
For setting frequency:
--gekko-compac-freq, --gekko-2pac-freq, --gekko-terminus-freq, and --gekko-newpac-freq,
For ramping up frequency over time on 2pac & Terminus (not supported on Newpac. The Compac hardware itself supports it, but the code needed for it isn't enabled in vthoang/cgminer yet. (
I sent a pull request for it though!)):
--gekko-start-freq 25 --gekko-step-freq 6 --gekko-step-delay 30
(Starts all supported units at 25MHz (minimum), and steps up 6.25MHz (6.25MHz is the minimum step) every 30 seconds until it reaches the --gekko-xxxxx-freq.)
Serial lookup:
--gekko-serial "GS-10019785,GS-10021212,GS-10033333,GS-10033334"
But anyways, Here is what I use right now (I have a troublesome 2pac (GSD 10019785) separated out for testing at the moment - I have been able to get it stable for 2 weeks now at default stock speed and stock voltage - though still with a solid white light. It won’t take any overclocking over 125, but at least I don't have to underclock it to 25 anymore!):
First script file:
cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1HpnRjN2ru4NhYFrZFsXe3JXCyJWW9fDeh.2pac -p x --suggest-diff 1 --gekko-serial "GS-10019785" --gekko-2pac-freq 100
2nd script file (a mix of 1 compac, 4 2pac's and 1 newpac.):
cgminer --suggest-diff 1 --gekko-serial "GS-10000058,GS-10019358,GS-10021759,GS-10021553,GS-10021581,GS-10030095" --gekko-start-freq 100 --gekko-step-freq 25 --gekko-step-delay 10 --gekko-newpac-boost --gekko-compac-freq 250 --gekko-2pac-freq 200 --gekko-newpac-freq 425 -c miner_conf.json
miner_conf.json contents:
{
"api-listen": true,
"api-allow": "W:127.0.0.1",
"log-file": "cgminer.log",
"pools": [
{
"url": "stratum+tcp:\/\/pool.ckpool.org:3333",
"user": "1HpnRjN2ru4NhYFrZFsXe3JXCyJWW9fDeh",
"pass": "x"
},
{
"url": "stratum+tcp:\/\/solo.ckpool.org:3333",
"user": "1HpnRjN2ru4NhYFrZFsXe3JXCyJWW9fDeh",
"pass": "x"
}
]
}
Yeah, I’m lazy and haven't set up that single 2pac for a fail-over to solo.ckpool! Not that it’s really needed for a single stock speed 2pac though!
Also, the serial for the compac and the newpac isn't needed - since I only have one of each. But I plan to change that in the future - at least the newpac!
One other note: Yes, I use "--suggest-diff 1" - my mix of 6 stated above has ckpool auto-correct it to ~112, and the single stock 2pac to ~7. (32 (the default suggested for ckpool) on the stock single 2pac will still work - you just wont see as much activity)
TL;DR:
figure out your serial numbers, and what frequency each should run at.
take all the identical ones and group them together.
combine groups of generations (compac, 2pac, newpac, etc) into one command to reduce the amount of cgminer instances (if desired)(example: [3 newpacs @ 400, 3 2pacs @ 200, 5 compacs @ 150], and a separate script with: [1 newpac @ 500, 6 2pacs @ 250, 1 compac @ 250], etc.)
profit!