clawoflight / aursec

Blockchain-based security layer for the AUR
Mozilla Public License 2.0
16 stars 2 forks source link

Handle laptops on battery #4

Closed clawoflight closed 7 years ago

clawoflight commented 7 years ago

This could be checked with acpi -a, for example, or possibly(?) systemd. Some ideas:

Lifree commented 7 years ago

I could say that it's not allowed to mine in batterymod, but it's really difficult to reduce the cpulimit. I could decrease the minerthreads in battery mod... The priority can be easily set to a lower value. but it will still use 100%of the CPU if there is no other process Pls tell me your suggestions

clawoflight commented 7 years ago

Maybe it would be better to not mine after every hash submission, because that takes quite long... Can you estimate how much faster it would be to not mine?

Interesting, I did not know that that's the way it works. Well, the CPU scheduler will clock it down if on battery, so that should help a lot.

Some thoughts:

What do you think? We can discuss it more on slack, or in person.

clawoflight commented 7 years ago

We will need to experiment with nice values before we decide on one :)

Lifree commented 7 years ago

We have to discuss this again

clawoflight commented 7 years ago

what exactly do you want to discuss? :)