excavator icon indicating copy to clipboard operation
excavator copied to clipboard

Preventing Sleep on Windows

Open DanielBaulig opened this issue 4 years ago • 5 comments

The excavator process prevents Windows from sleeping. While this makes a lot of sense while mining, it might not make sense while excavator is just idling.

It might make sense to allow for a toggle of this behavior through commands, that way a user can choose if they want to prevent the computer from sleeping while not mining.

DanielBaulig avatar Mar 18 '21 22:03 DanielBaulig

What would be the reason to keep it idling instead of turning it off?

nicehashdev avatar Mar 21 '21 01:03 nicehashdev

NiceHash Quick Miner will respawn the process even if I killed it. Regardless of that though, I would like to be able to start and stop mining from NiceHash API for as long as the computer isn’t sleeping.

DanielBaulig avatar Mar 21 '21 03:03 DanielBaulig

Any chance we can get this behavior/feature?

I'm controlling my Excavator to only run at off-peak times to increase power cost efficiency, but since Excavator will idle in the background even while not mining it will prevent my computer from sleeping/hibernating, driving up my power consumption again.

DanielBaulig avatar Apr 30 '21 17:04 DanielBaulig

Do you have fixed off-peak times ? I schedule my computer to sleep every 2 hour for 5 minutes using Windows Scheduler+PSTool to go to sleep and WakeupOnStandby to wake the computer. No matter what the excavator doing, my computer will go to sleep and wake up at that scheduled time.

musahi0128 avatar May 17 '21 22:05 musahi0128

I have a similar problem, where I start/stop mining through the NiceHash API and when not mining I would like the computer to be able to go to sleep or I'll have the computer on for no reason. Btw. I use Wake-On-Lan to bring the computer out of sleep when the command to start mining is sent.

cbarbosa2 avatar Jun 26 '21 20:06 cbarbosa2