zackelia / bclm

macOS command-line utility to limit max battery charge
MIT License
1.79k stars 87 forks source link

how to enable bclm directly from macOS? #43

Closed checktext00 closed 5 months ago

checktext00 commented 5 months ago

Hi, I realize this isn't an issue for this app, but I've looked online and couldn't find this answer

How can I write the BCLM value to the SMC without using any 3rd party apps? Are there a set of terminal commands that will achieve the same thing? (And also allow reading the value, and reading/writing BFCL)

Thanks

zackelia commented 5 months ago

If there were native binaries to do the same thing, bclm would have no reason to exist.

bclm (and probably many other tools) utilize SMCKit which interacts with the SMC via private APIs.

checktext00 commented 5 months ago

thanks