Bitcoin Forum

Bitcoin => Mining support => Topic started by: kasner on October 08, 2019, 11:06:12 AM



Title: CGMiner: sched-start problem
Post by: kasner on October 08, 2019, 11:06:12 AM
Hi!
sched-stop option for cgminer (Antminer S9) works fine, but sched-start is not working.
When i check MinerConfiguration - all data is null (URL=null, worker=null, pass=null)
What is wrong ?
TNX


Title: Re: CGMiner: sched-start problem
Post by: BitMaxz on October 17, 2019, 11:40:57 PM
Can you try to check this post below someone asking the same thing and maybe it will work?

Would these cgminer commands work on an S9 running Braiins OS?
How would I set them? edit a file with terminal?

--sched-start       Set a time of day in HH:MM to start mining (a once off without a stop time)
--sched-stop        Set a time of day in HH:MM to stop mining (will quit without a start time)

Probably /etc/cgminer.conf

{(the_rest_of_the_options),"sched-start":"07:00","sched-stop":"18:00"}

Don't forget to restart cgminer with /etc/init.d/cgminer reload

The only problem he is using Braiins OS but maybe it will also work on default s9 firmware. Just try


Title: Re: CGMiner: sched-start problem
Post by: mikeywith on October 18, 2019, 01:26:55 AM
The only problem he is using Braiins OS but maybe it will also work on default s9 firmware. Just try

Both firmware are based on CGminer , so all CGminer commands should "technically" work just fine on any version , unless bitmain disabled that for a reason, which is unlikely.

OP can you please post the exact command you are trying you use?

When i check MinerConfiguration - all data is null (URL=null, worker=null, pass=null)

does this happen after

Code:
sched-stop <xxx>

or after

Code:
sched-start <xxx>


Title: Re: CGMiner: sched-start problem
Post by: Freemine-001010 on November 19, 2019, 07:15:07 AM
you need to use cron tab format  and i use different cgminer configs,

here is an example of what i use

Code:
#copy underclock cgminer config, restart cgminer    @ 6:55am mon-sat
55 6 * * 1-6 cp /etc/cgminer-uc /etc/cgminer.conf && /etc/init.d/cgminer restart

but you need to download win scp and use it to login , download the cgminer file

copy it / rename it so you have the original ,

change the settings in it and save it, MAKE SURE WHEN YOU SAVE IT DONT SAVE IT AS .TXT

you can rename it in win scp program

here is a sample cgminer file

Code:
{
"bitmain-use-vil":true,
"overclock":"0.80",
"api-port":"4028",
"pools":[{"user":"xxxxxxx","url":"stratum+tcp://btc.s.novablock.com:443","pass":"","_id":"1"},
{"_id":"2","url":"stratum+tcp://btc.s.novablock.com:1883","pass":"","user":"xxxxxxx"},
{"user":"xxxxxx","url":"us.ss.btc.com:1800","pass":"","_id":"3"}],
"bitmain-freq":",,,,,",
"no-pre-heat":true,
"fan-temp":"75",
"api-allow":"W:0\/0",
"bitmain-voltage":",,,,,",
"config-format-revision":"1",
"api-listen":true,
"multi-version":"4",
"fan-ctrl":"temp"
}