Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I set this utility up to always charge up to 90% and then force discharge to 80% and repeat that cycle as long as it is plugged in? #306

Open
Evertt opened this issue Sep 27, 2024 · 0 comments

Comments

@Evertt
Copy link

Evertt commented Sep 27, 2024

What is the issue? (required)
So at the moment, as far as I'm aware, I can do this thing one time and I have to manually make it work by running the right commands at the right time.

What exactly did you do to produce the issue? (required)
Steps to reproduce the behavior:

  1. So I have it set up to maintain charge at 80%.
  2. And then in the CLI I can use the command battery charge 90.
  3. And once it hits 90 I can either use the menubar icon to enable force discharging, or I can use battery discharge 80 in the CLI.

However, after all this, much of which I had to do manually, it doesn't automatically repeat this.
Expected behavior (required)

Like I said before, I'd like to be able to run a single command that instructs the program to keep doing this charge-discharge cycle automatically.

Additional context (optional)

Here's my reason for wanting to do this. I have this Anker 67 Watt Nano charger with 2 usb-c ports and 1 usb-A port. When I plug in my MacBook in the most powerful port, and another fast charger that charges my iPhone, Airpods, and Apple Watch at their max respective speeds, then the charging brick splits its power to give 45 Watts to my MacBook and 20 Watts to the other other charger. Which means neither my MacBook nor the wireless triple device charger are getting enough power to charge at their fastest possible rate. Which on the one hand is fine, because I usually only do this for over-night charging and slower charging also usually is better for your battery's longevity.

However, once my MacBook reaches its 80% mark and stops charging, it will still continue to draw the 45 Watts from the charging brick, because it's now using the charging brick as its primary power-source instead of the battery. But if instead the MacBook would charge until 90% and then force discharge until 80%, then for some time it won't draw any power at all from Anker's nano charger, which means that charger can now switch to giving the other wireless charger the absolute maximum power it could use.

Which I would really like as an option.

Screenshots (optional)

You see, the MacBook is not charging, because it has reached the 80% mark after which charging gets disabled, but it is still drawing 45 Watts:
image

Charging with 2 ports being used at the same time:
image

Charging when only 1 port is drawing power:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant