-
Notifications
You must be signed in to change notification settings - Fork 186
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
Make MagSafe charging LED green when 80% #71
Comments
I'm not sure this is possible... |
It is! Al Dente did it. |
not sure how they did it but here is more information about it. Is part of the paid version, so the code is not open source. |
This would be amazing! I wonder if anyone has open-sourced any code to do this. I personally would prefer to just disable the Magsafe LED altogether, at least while charged. |
If you can find the |
I looked more into it and I couldn't find the SMC key but it seems like the AlDente team may have taken the code from an open-source project, so it shouldn't be too hard to find. I asked about it on stackoverflow and the answer I got seems to point in the right direction: https://stackoverflow.com/questions/75738532/control-magsafe-leds-on-apple-silicon-macbook/75738890#75738890 |
Nice find! |
@omniwired It seems that app is Intel only, but I don't see any indication that the SMC key for MagSafe LEDs is different on Apple Silicon macs, are you seeing that somewhere? |
I have an M1 mac and use the key used in https://github.com/zackelia/bclm/blob/master/Sources/bclm/main.swift#L56 I've got this:
That makes me think it might be different. @actuallymentor this is the key to use |
@omniwired ah thank you for finding it! Are you open to creating a PR for this? |
From the batt project,
Tried the above; they work! 😄 |
obv. with sudo sec -k ACLC -w 01 off 25 blinks off (blinks a few times and LED gets off) It would be nice to have an option to turn it completely off, or keep it blinking while in battery maintain? (and maybe add a no-blink option bc it is prob. a bit distracting) |
I tried it until 25, may try other later on; for the people wondering the other codes just are repetitions from before (plain green, plain orange, off). The blinking are all different speed, that's why I mentioned them all |
@jakjakob I might play with this today. Is there a code for "resume automatic behaviour"? |
I don't know, since I haven't tested it yet with battery full loaded. Maybe try the first few codes and see if they change behavior with battery at 100% and not. It could be 02 or 00, since both gave orange output while having battery under 100%. I'll try also if maybe replugging the charger resets it. Do you know any way to find out which code it is currently running? Maybe so we can find out what the dafault(s) are |
Allright, new release published! Could you test it @jakjakob? I'm coding in a car without power. |
I think you meant 71 on the release notes |
@omniwired, yes, yes I did. Edited, thanks for pointing that out. And added you as thanks, I overlooked you, sorry :) |
This worked for me; after updating and restarting my MagSafe LED changed from orange to green. It seems like such a small thing but it feel great to have a green LED. Thanks for your work on this everyone! |
Thanks for confirming @tchajed! I will close this issue. If anyone encounters an issue I will reopen it. |
it works really well! |
Needs a little improvement... if you connect the MagSafe charger when the battery is already at 80%+ , it will show an orange LED that doesn't eventually turn green. Menu correctly says "Power: smc charging disabled" |
@ibrado @actuallymentor if you disable and then re-enable the limit, it changes to green |
Submitted PR #184 |
hey guys! thanks for the great work. so this definitely does work, but one issues is if the battery is already at 80% or above, and you plug the charger, it will remain orange forever, would be great if you can poll the charge status and set the LED to green whenever it is 80% or greater, rather than crossing. thanks! |
Is your feature request related to a problem? Please describe.
I want to have my battery at 80%, but since there is the possibility to check even if the computer is closed (the MagSafe LED), I don't want to miss it out using battery
Describe the solution you'd like
Whenever the battery reaches 80% (the charging limit) the MagSafe LED should turn green
Describe alternatives you've considered
Opening the MacBook (but impractical)
The text was updated successfully, but these errors were encountered: