Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: adaseb on February 26, 2015, 03:43:28 AM



Title: KNCMINER Jupiter - Anyway to Pause mining?
Post by: adaseb on February 26, 2015, 03:43:28 AM
I got a KNC Juptier and from time to time I want to stop or pause mining, is there anyway to do this from SSH?

I tried

/etc/init.d/cgminer.sh stop

but it start mining after 1 minute


Title: Re: KNCMINER Jupiter - Anyway to Pause mining?
Post by: michelem on February 26, 2015, 09:05:36 AM
I got a KNC Juptier and from time to time I want to stop or pause mining, is there anyway to do this from SSH?

I tried

/etc/init.d/cgminer.sh stop

but it start mining after 1 minute

There is a cron job running every minute, it checks if cgminer is running and it starts it if it isn't, so you should comment that line in the cron job file (it could be in different locations I don't know where is in a KNC).


Title: Re: KNCMINER Jupiter - Anyway to Pause mining?
Post by: adaseb on February 27, 2015, 07:41:22 PM
Any method out there

Basically the only way I can find is using a command like this which stops mining ever 15 seconds

Quote
/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;/etc/init.d/cgminer.sh stop; sleep 15;


Title: Re: KNCMINER Jupiter - Anyway to Pause mining?
Post by: Anonymailer on March 10, 2015, 09:35:15 PM
Looking at the cgminer API perhaps you could send the pgadisable command to keep cgminer running without mining - I haven't tried it though!

https://github.com/ckolivas/cgminer/blob/master/API-README


Title: Re: KNCMINER Jupiter - Anyway to Pause mining?
Post by: nwoolls on March 11, 2015, 09:16:41 PM
Looking at the cgminer API perhaps you could send the pgadisable command to keep cgminer running without mining - I haven't tried it though!

https://github.com/ckolivas/cgminer/blob/master/API-README

IME I've found disabling the pools to be simpler than disabling the PGAs. On some of the KNC devices AFAIK there are thousands of "processors" so you may end up needing to call that command 10s or 100s or 1000s of times to "disable" the device.


Title: Re: KNCMINER Jupiter - Anyway to Pause mining?
Post by: adaseb on March 13, 2015, 04:22:35 AM
Looking at the cgminer API perhaps you could send the pgadisable command to keep cgminer running without mining - I haven't tried it though!

https://github.com/ckolivas/cgminer/blob/master/API-README

IME I've found disabling the pools to be simpler than disabling the PGAs. On some of the KNC devices AFAIK there are thousands of "processors" so you may end up needing to call that command 10s or 100s or 1000s of times to "disable" the device.

You can't disable all the pools, one needs to always be active.


Title: Re: KNCMINER Jupiter - Anyway to Pause mining?
Post by: nwoolls on March 13, 2015, 11:48:19 AM
Looking at the cgminer API perhaps you could send the pgadisable command to keep cgminer running without mining - I haven't tried it though!

https://github.com/ckolivas/cgminer/blob/master/API-README

IME I've found disabling the pools to be simpler than disabling the PGAs. On some of the KNC devices AFAIK there are thousands of "processors" so you may end up needing to call that command 10s or 100s or 1000s of times to "disable" the device.

You can't disable all the pools, one needs to always be active.

Is it CGMiner or BFGMiner? You can disable all pools on the CGMiner-powered network devices I have.

Edit: Just tried an S3 with CGMiner 3.12 and a Raspberry Pi with CGMiner 4.9 and had no problem disabling all pools on both via the RPC API. I do see the code in Github that should prevent this (with an error saying the last pool cannot be disabled) but again not having any problems actually doing it. Maybe it's a bug and not by-design.


Title: Re: KNCMINER Jupiter - Anyway to Pause mining?
Post by: adaseb on March 14, 2015, 03:50:42 AM
Looking at the cgminer API perhaps you could send the pgadisable command to keep cgminer running without mining - I haven't tried it though!

https://github.com/ckolivas/cgminer/blob/master/API-README

IME I've found disabling the pools to be simpler than disabling the PGAs. On some of the KNC devices AFAIK there are thousands of "processors" so you may end up needing to call that command 10s or 100s or 1000s of times to "disable" the device.

You can't disable all the pools, one needs to always be active.

Is it CGMiner or BFGMiner? You can disable all pools on the CGMiner-powered network devices I have.

Edit: Just tried an S3 with CGMiner 3.12 and a Raspberry Pi with CGMiner 4.9 and had no problem disabling all pools on both via the RPC API. I do see the code in Github that should prevent this (with an error saying the last pool cannot be disabled) but again not having any problems actually doing it. Maybe it's a bug and not by-design.

I tried both and you can't. I use CGminer 4.2.3 and BFGMiner 5

When you hit (D) to disable it says "CANNOT DISABLE LAST POOL"


Title: Re: KNCMINER Jupiter - Anyway to Pause mining?
Post by: Anonymailer on April 06, 2015, 09:40:55 AM
Looking at the cgminer API perhaps you could send the pgadisable command to keep cgminer running without mining - I haven't tried it though!

https://github.com/ckolivas/cgminer/blob/master/API-README

IME I've found disabling the pools to be simpler than disabling the PGAs. On some of the KNC devices AFAIK there are thousands of "processors" so you may end up needing to call that command 10s or 100s or 1000s of times to "disable" the device.

As far as the API output is telling me, it only shows one PGA for each chip/module i.e. one for each Neptune cube. So if it's a single Jupiter you should have to disable 6 PGAs. If disabling all the pools works out that would be easier, but I've not tried it.


Title: Re: KNCMINER Jupiter - Anyway to Pause mining?
Post by: bitwhizz on August 31, 2016, 10:33:20 AM
As far as the API output is telling me, it only shows one PGA for each chip/module i.e. one for each Neptune cube. So if it's a single Jupiter you should have to disable 6 PGAs. If disabling all the pools works out that would be easier, but I've not tried it.