-
Notifications
You must be signed in to change notification settings - Fork 54
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
Wrong battery value on MacOS #301
Comments
It would help if you provided your macOS, macchina and libmacchina versions. |
MacOS Sonoma 14.2.1 |
Can anyone with Apple hardware confirm this? If so, please let us know by contributing to the conversation. |
I see this issue with the battery too. Let me know if I can help debug the issue.
|
Third-party battery replacements have caused issues, though way more sinister than this, in the past 1. Are these miscalculations occuring on machines with an authentic battery? Footnotes |
Yes! My machine is brand new, from the Apple store. |
My MacBook also has the factory installed battery. Utils like |
I'll defer this to @123marvin123 as he knows more about the macOS side of things than I do. |
I'm not sure what could be the reason for these larger differences between the "pmset -g batt" command and macchinas readout. For macchina, the values are coming directly from IOKit. Only minor floating point -> int conversion are expected. This is what I get on my MacBook Air M1 with original battery:
|
Not sure what is the difference between the properties of At least that seems to be the case when I checked I/O Kit registry, in terminal, on my machine (mbp13 M1): ioreg -w 0 -irc IOPMPowerSource I'm including values that seems relevant to me. While on 100% battery:
And for example on 71%, (But they can show same value sometimes) |
The macchina battery percentage value doesn't match the MacOS system's (about 3 less)
The text was updated successfully, but these errors were encountered: