Open mdcarreira opened 4 years ago
Thanks, good suggestion -- will look into this. Workaround I've found on my (mac) laptop is I configure it to sleep when idle if it's not connected to power, which suspends any activity (including mining) effectively preventing the miner from running unless plugged in. Not sure if windows/linux offers similar power controls.
Yes, I also have that option checked on my macbook. The problem is that I use my macbook for playing music and, in this case, the screen will turn off but the computer won't go to sleep. I was playing music the other day and the battery went down pretty fast, and then I noticed that csminer was the culprit :)
By the way, thanks for the fast improvement! Will you issue a new release? Will you use the releases feature of GitHub?
Yes, this feature will go out in v0.0.8. The OSX version looks ready to go so I hope to have it up some time today. I'll adopt the releases feature in GitHub at some point, but for now the releases will continue to appear at https://cryptonote.social/tools
feature now released (for osx) in v0.1.0. Leaving issue open until it's added to the win & linux versions as well.
Perfect! I just tried it out on my mac and it seems to be working fine.
this is now implemented in Windows (v 0.2.0)
Pretty shure this can be implemented across platforms, since this is a configuration option form xmrig as per config.json:
"pause-on-battery": true,
"pause-on-active": false
power management tends to be architecture if not OS or window-manager specific. one could look at how xmrig supports it for linux and port that over.
I really want to run this app every time I start my laptop, but since it has no option to mine only when connected to power, it can drain the battery really fast if you forget to turn it off while on battery. Please add an option (flag) to allow to mine only when connected to power adapter.