batt

Control and limit battery charging on Apple Silicon MacBooks.

GPL-2.0 License

Downloads
27
Stars
397
Committers
2

Bot releases are hidden (Show)

batt - v0.2.1 Latest Release

Published by charlie0129 11 months ago

What's Changed

  • chore: add message about adapter is disabled by @charlie0129 in 90df4aa
  • fix: resolve an rare issue when charge may be above the predefined value @charlie0129 in eda96be
  • fix: prevent idle sleep if system has just waked up by @charlie0129 in 31b7cf4
  • chore: optimize install command by @charlie0129 in e37df99

Full Changelog: https://github.com/charlie0129/batt/compare/v0.2.0...v0.2.1

How to install/upgrade

One line version (to install or upgrade):

bash <(curl -fsSL https://github.com/charlie0129/batt/raw/master/hack/install.sh)

Just be sure to read the on-screen instructions.

See:

Compatibility

Upgrading to v0.2.0 should be fine for users using macOS Monterey or later. If you are on macOS Big Sur, you can stay at v0.1.0 or build v0.2.0 by yourself (v0.2.0 itself should run on macOS Big Sur if you build it yourself).

batt - v0.2.0

Published by charlie0129 about 1 year ago

What's Changed

Full Changelog: https://github.com/charlie0129/batt/compare/v0.1.0...v0.2.0

How to upgrade

One line version: curl -fsSL https://github.com/charlie0129/batt/raw/master/hack/install.sh | bash

See: https://github.com/charlie0129/batt#how-to-upgrade

Compability

Upgrading to v0.2.0 should be fine for most users. However, the prebuilt version of v0.2.0 requires macOS Monterey or later to run. v0.2.0 itself should run on macOS Big Sur if you build it yourself. So if you are on macOS Big Sur, you can stay at v0.1.0 or build v0.2.0 by yourself.

batt - v0.1.0

Published by charlie0129 over 1 year ago

Changelog

  • chore: enhance message when set limit to 100% by @charlie0129 in 404e6ee
  • fix: resolve an issue where setting limit may be delayed after waking up by @charlie0129 in a9801c1
  • feat: support specifying upper and lower charge limit by @charlie0129 in 7833398
  • chore: make pre-sleep delay longer by @charlie0129 in 574ef95

Full Changelog: https://github.com/charlie0129/batt/compare/v0.1.0-beta.4...v0.1.0

Notes

Currently, batt is known to be fairly stable now. So here we are, the first non-beta release. This release focuses on stability so several new features will not be included in this release because they are not considered to be well-tested. If you want the latest features, you can try the upcoming beta releases.

If you encounter any problem, please post it on GitHub Issues so I can help. You can find logs from /tmp/batt.log. I appreciate your input.

batt daemon have its log levels set to debug for easy debugging so you may find a lot of logs. You can truncate it and only keep the useful parts before reporting.

batt - v0.1.0-beta.4

Published by charlie0129 over 1 year ago

Changelog

  • chore: more accurate description about the battery voltage by @charlie0129 in a070c0a
  • chore: make before-sleep delay longer by @charlie0129 in 4f2b2f0
  • chore: show git commit info on daemon start by @charlie0129 in 8e7679c
  • fix: make sure sleep lasts across system sleeps by @charlie0129 in 581999a
  • chore: improve logs by @charlie0129 in 235c7e4
  • feat: make status more human-readable by @charlie0129 in ff2a4e5
  • fix: delay maintain loop after waking up to fix some rare cases where the charge limit may stop by @charlie0129 in 3474ac0
  • fix: always use --allow-non-root-access flag value instead of config value when installing by @charlie0129 in a9d7557

Notes

This is a beta release. Although I have tested and verified most features on my own Mac, this doesn't mean they will work on other computers. Since we will typically only charge MacBooks less than once per day, it becomes particularly hard to test edge cases. Therefore, rather extensive testing is required before batt can be marked as production-ready.

If you encounter any problem, please post it on GitHub Issues so I can help. You can find logs from /tmp/batt.log. I appreciate your input.

Beta versions have their log levels set to debug for easy debugging so you may find a lot of logs. You can truncate it and only keep the useful parts before reporting.

Full Changelog: https://github.com/charlie0129/batt/compare/v0.1.0-beta.3...v0.1.0-beta.4

batt - v0.1.0-beta.3

Published by charlie0129 over 1 year ago

Changelog

  • feat: reset any charge limits on uninstall by @charlie0129 in dba2a97
  • fix: avoid overwriting old config when re-installing by @charlie0129 in b92a5a1
  • chore: update github.com/charlie0129/gosmc to the latest version by @charlie0129 in e35a6f8
  • feat: add an option to allow non-root users to access the daemon by @charlie0129 in 73eaa8c

Notes

This is a beta release. Although I have tested and verified most features on my own Mac, this doesn't mean they will work on other computers. Since we will typically only charge MacBooks less than once per day, it becomes particularly hard to test edge cases. Therefore, rather extensive testing is required before batt can be marked as production-ready.

Please use this pre-release with caution. If you encounter any problem, posting them on GitHub issues is helpful for everyone. You can get the logs of batt daemon from /tmp/batt.log.

Full Changelog: https://github.com/charlie0129/batt/compare/v0.1.0-beta.2...v0.1.0-beta.3

batt - v0.1.0-beta.2

Published by charlie0129 over 1 year ago

This is a beta version. Although I have tested and verified most features on my own Mac, this doesn't mean they will work on other computers. Since we will typically only charge MacBooks less than once per day, it becomes particularly hard to test edge cases. Therefore, rather extensive testing is required before batt can be marked as production-ready.

Please use this pre-release with caution. If you encounter any problem, posting them on GitHub issues is helpful for everyone. You can get the logs of batt daemon from /tmp/batt.log.

Changelog

  • feat: fail if launch daemon already exists when installing by @charlie0129 in b8d11be
  • fix: delay loop once charging is disabled before sleep to prevent the main loop from re-enabling it by @charlie0129 in d76d3b3

Full Changelog: https://github.com/charlie0129/batt/compare/v0.1.0-beta.1...v0.1.0-beta.2

batt - v0.1.0-beta.1

Published by charlie0129 over 1 year ago

v0.1.0-beta.1

This is a beta version. Although I have tested and verified most features on my own Mac, this doesn't mean they will work on other computers. Since we will typically only charge MacBooks less than once per day, it becomes particularly hard to test edge cases. Therefore, rather extensive testing is required before batt can be marked as production-ready.

Please use this pre-release with caution. If you encounter any problem, posting them on GitHub issues is helpful for everyone. You can get the logs of batt daemon from /tmp/batt.log.

Changelog

  • docs: refine (un)install messages by @charlie0129 in da9c905
  • feat: show battery info in status by @charlie0129 in 79690fa
  • fix: run main loop just before sleep to fix some rare cases where it may not stop charging before sleep by @charlie0129 in 05a5066
  • feat: show adapter and charging status in status command by @charlie0129 in ddfba31
  • feat: add command to enable or disable power adapter by @charlie0129 in 35b7110
  • chore: update gosmc dep, update readme by @charlie0129 in 6032fbf

Full Changelog: https://github.com/charlie0129/batt/compare/v0.1.0-alpha.1...v0.1.0-beta.1

batt - v0.1.0-alpha.1

Published by charlie0129 over 1 year ago

Pre-release for public testing

This is the first release. Although I have tested and verified most features on my own Mac, this doesn't mean they will work on other computers. Since we will typically only charge MacBooks less than once per day, it becomes particularly hard to test edge cases. Therefore, rather extensive testing is required before batt can be marked as production-ready.

Please use this pre-release with caution. If you encounter any problem, posting them on GitHub issues is helpful for everyone. You can get the logs of batt daemon from /tmp/batt.log.