-
Notifications
You must be signed in to change notification settings - Fork 91
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
keyNotFound(code: "CHWA") #49
Comments
I experience the same issue - just for the record. |
I'm also experiencing this issue |
same |
I have the same issue |
Ouch, not sure what we can do without it. Unless this was accidental, we'll just have to wait and see what replacement key (if there will be one) can do the same trick. Before, we learned about CHWA from the Asahi SMC driver so we'll see what findings they have soon I assume: https://github.com/AsahiLinux/linux/blob/asahi/drivers/power/supply/macsmc_power.c |
I updated my system to 15.1 beta 2 and encounter the same issue. |
same error message. using |
same with me. |
Asahi now seems to have changes for the latest firmware: AsahiLinux/linux@c6ccbdd |
@TimNN Good eye! I'll install Sequoia on another volume and test that out. |
Got this too on 15.1 I am using AlDente until it gets fixed, but will definitely switch back once it is fixed, because I prefer a more "native" solution. |
When trying to manually write to (or read from)
Disabling SIP didn't seem to help either... |
Getting the same error even just reading
Not really sure what entitlement I need to sign with to get access to this key. |
Ugh, this is very sad. I guess the only options are:
|
|
https://github.com/lslqtz/bclm_loop/tree/main Fork of BCLM called BCLM_Loop which I can confirm does work on Sequoia 15.0 release. It installs and can be enabled pretty much in the same fashion as the original BCLM. Under the hood it may not be as clean or elegant as the original BCLM as it runs in a loop as a background service (as opposed to writing to the SMC), but it still does the job 100% as far as I can tell so far with no impact on battery life when unplugged. Still hoping the original BCLM can be fixed though. |
@sibilus: Which value did you try to write? Based on the Asahi code, setting (The |
I'm getting the same error, after updating to macOS 15.0 |
This is great news if people are able to read/write |
@zackelia: The success report was for "macOS Sonoma 14.7", so I have very little hope that this is going to work on 15.0. I assume that 14.7 got the firmware update with On the 15.0 release ( |
@TimNN: I've tried |
I tried I'm turning on builtin "Optmized battery charging" and I'll see if they maybe improved it. |
This is so backwards! |
i hope it will renew for this system during zackelia |
I could swear the charge limit set by |
upgraded from 14.6.1 -> 14.7 got the same issue. |
macOS 15.0 |
Same issue on macOS 15.0. Using Al Dente for now, but would like to go back to bclm, which has been perfect since I started using it, and has definitely extended my battery life. |
hi i have one question how to install this fork ? because its not so easy like using brew. please help me because I have spend few hours to install this fork and I have no idea how to do this .. my Mac is with m1 procesor |
brew support has been added, but versions obtained through it may occasionally be out of date. BTW: It only supports Apple Silicon based Mac computers. (I don't have an Intel Mac to test)
And, macOS 15.1 beta 5 still does not provide the required permissions to write to CHLS.
|
@lslqtz I was deciding on bclm_loop and Battery-Toolkit, could you advise on the benefits of bclm_loop over Battery-Toolkit? for reference: I've asked the Battery-toolkit author mhaeuser/Battery-Toolkit#38 ideally the micro charging is as infrequent as possible when the laptop runs on power adapter. |
@ssh352 |
bclm_loop is an improvement on bclm [1]. It has no GUI and runs silently in the background. This means it does not occupy the menu bar, but is less flexible. In terms of energy consumption, although the two projects use different methods, there is almost no difference in actual use. In addition, since the code of bclm_loop is simpler, it is easier to make user-defined code modifications. In addition, bclm_loop, like bclm, (used to) support firmware-based charging control, and the current version of bclm_loop will still try to use firmware-based charging control on supported firmware. [1] The original purpose of bclm_loop was to provide MagSafe LED control capabilities based on bclm. (PR #39) If you need a GUI and the greater user flexibility it provides, there are other options, including this one or something like AIDente. |
thanks very helpful info. "Battery Toolkit uses the OS APIs to be notified of changes to the charging level and is idling most of the time. " Battery-toolkit appears not firmware based though. |
thx |
Thx very much for help |
I'm also hoping the original BCLM can be fixed, very helpful! |
Why should I prefer BCLM over batt? It seems batt gets the job done, isn't it? |
Main difference is that |
Which further means that I'm actually thinking of having both |
Forgive me, but this does not seem like a suitable place to discuss other battery tools. |
Is there any update plan for this project ? |
Hello, Unless Apple has since reverted the changes in a beta version of macOS 15.1, there's little the author can do. The bclm feature is solely dependent on a specific flag in the Mac's battery management hardware, which Apple has removed. The 80% limit is a hardware-handled feature. There are alternative ways to recreate the 80% limit using software (see the tools listed earlier). Since they're software-based, they may not be as optimal during sleep, but some implementations are still effective. I've switched to Battery-Toolkit, which appears to be the most advanced and stable option, utilizing events instead of loops, handling wake and sleep events, offering an optional GUI, and actively maintained. |
OK, thank you. I will try to use Battery-Toolkit as well. But I really hope Apple will restore this specific flag. |
same issue on macos 12.7.6 |
I took a look at this again now that macOS 15.1 is out, but still the same issue. With some more experimentation, I am highly confident that Like others in this issue mentioned for older versions of macOS, writing values such as |
hi there is new release from bclm_loop how can I update this version ? |
Just to double-check: are you saying that writing Reason I ask is because I'm willing to jump through the same hoops as you (disable SIP, dyld interposing) if it works. Want to confirm before going down the rabbit-hole though, since I'm currently unfamiliar with dyld interposing. Thanks for your experimentation and reporting the results! |
@zship This was me running on 15.1. I have the code that does the dyld interposing so really it's just turning off SIP to test it out. If people wanted to look more at the SMC values, I could put a branch up that's capable of that at least. |
I'd definitely be interested. Have some time to experiment, too. I have some (small) context here FWIW: implemented a basic "calibration" script which writes CH0I/CH0C values and I have some idea of how those (used to) interact with CHWA. If you manage to get some time to push your dyld interposing code, I'm sure that would be a great help! Even a gist or a separate work-in-progress/not-fully-working repo would likely be useful IMO, but whatever makes sense for you if/when you get time. Would be happy to take measurements and report findings, if useful. |
@zship and others - I pushed an experimental repo for SMC testing on Seqouia: https://github.com/zackelia/smc-interpose |
After updating the macOS 15.0 beta 5, bclm is not working well. Running
read
orwrite
will get an error (maybe) following.I know that using the beta version of macOS is my own risk. Creating this issue is just for a notice about this change.
The text was updated successfully, but these errors were encountered: