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

There was a problem setting the charge limit #33

Open
florin-hcl opened this issue Nov 30, 2021 · 8 comments
Open

There was a problem setting the charge limit #33

florin-hcl opened this issue Nov 30, 2021 · 8 comments

Comments

@florin-hcl
Copy link

So this app worked with no problems until now. Suddenly, it says "There was a problem setting the charge limit. Please make sure you have administrator privileges." and this is my own computer and I'm the admin... I own it... no problems... until now. For some reason I can't change the charge limit in v1.5.

@godly-devotion
Copy link
Owner

Is this a new problem after updating to v1.5 or were you using this version before without issue? What is your MacBook and macOS version?

@florin-hcl
Copy link
Author

This is a new problem after the latest update. I'm using macOS Monterey 12.0.1 on a MacBook Pro 13'' i5 2016

@godly-devotion
Copy link
Owner

If you open Terminal app and paste this command, what's the output? (It should set the charge limit to 80%)

sudo /Applications/Charge\ Limiter.app/Contents/Resources/bclm write 80

@florin-hcl
Copy link
Author

After I started getting that error, the limit was removed and the battery charged to 100%.

I reinstalled the app, I typed that command in Terminal and I got the usual macOS popup about unverified developers, I went to Security and opened Charge Limiter from there. I got the same error as before.

Then, I typed the same thing in Terminal again and I didn't get any kind of message or output (except sudo asking for credentials). I let my battery discharge down to 77%, I plugged the laptop back in and now charging stopped at 83%. When I click on the battery icon in the top bar it says "Battery Is Not Charging".

The command line worked fine! It feels like it's something related to the GUI.

@triumphantomato
Copy link

triumphantomato commented Jul 14, 2022

i had the same error - it looks like the gui prompts for a value between 40-100, but the command line prompts for a value between 50-100.

i entered the gui again and tried 50 and got a "success!" message

@jcherrera
Copy link

sudo /Applications/Charge\ Limiter.app/Contents/Resources/bclm write 80

keyNotFound(code: "BCLM")

on macos 13.2

@charly32
Copy link

charly32 commented Dec 5, 2023

macbook air 11 2013 big sur 11.7.10

with trick "sudo /Applications/Charge\ Limiter.app/Contents/Resources/bclm write 80"

Success!

If your MacBook currently has more than 80% charge, leave the charger unplugged until the battery level is a little less than that. Afterwards, you can leave the MacBook connected to the charger and the battery will not charge over 80%.

thanks

@amlboeton
Copy link

sudo /Applications/Charge\ Limiter.app/Contents/Resources/bclm write 80

keyNotFound(code: "BCLM")

on Ventura 13.6.7

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

6 participants