Releases: charlie0129/batt
v0.3.3
What's Changed
- fix: magsafe led may keep in the off-state @charlie0129 in 18ce7df
This update mainly resolves an issue where the MagSafe LED may not turn green after waking up (if you have batt magsafe-led
enabled).
How to Install
Option 1: Installation Script
bash <(curl -fsSL https://github.com/charlie0129/batt/raw/master/hack/install.sh)
Option 2: Homebrew
brew install batt
sudo brew services start batt
How to Upgrade
Please use the same method (Installation Script / Homebrew) as you installed to upgrade batt. Using both methods will cause conflicts.
Option 1: Installation Script
bash <(curl -fsSL https://github.com/charlie0129/batt/raw/master/hack/install.sh)
# Yes, the command is the same as installing.
Option 2: Homebrew
brew update
sudo brew services stop batt
brew upgrade batt
sudo brew services start batt
Compatibility
Upgrading to this version should be file for users using macOS Monterey or later. If you are on macOS Big Sur, you can stay at v0.1.0
or build it by yourself.
v0.3.2
What's Changed
- fix: do not turn off led when waking and controlling magsafe led is disabled @charlie0129 in 27e3b11
How to Install
Option 1: Installation Script
bash <(curl -fsSL https://github.com/charlie0129/batt/raw/master/hack/install.sh)
Option 2: Homebrew
brew install batt
sudo brew services start batt
How to Upgrade
Please use the same method (Installation Script / Homebrew) as you installed to upgrade batt. Using both methods will cause conflicts.
Option 1: Installation Script
bash <(curl -fsSL https://github.com/charlie0129/batt/raw/master/hack/install.sh)
# Yes, the command is the same as installing.
Option 2: Homebrew
brew update
sudo brew services stop batt
brew upgrade batt
sudo brew services start batt
Compatibility
Upgrading to v0.3.2
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 it by yourself.
v0.3.1
What's Changed
v0.3.1 is intended to improve the integration with Homebrew and no new features are added. If you are using v0.3.0 already, you can skip this version.
- docs: update install script @charlie0129 in 0dc59eb
- chore: add various convenience options for brew formulae #9 @charlie0129 in 0d9b44c
- chore: hide install commands when building for homebrew #9 @charlie0129 in a7fedaf
How to Install
Option 1: Installation Script
bash <(curl -fsSL https://github.com/charlie0129/batt/raw/master/hack/install.sh)
Option 2: Homebrew
brew install batt
sudo brew services start batt
How to Upgrade
Please use the same method (Installation Script / Homebrew) as you installed to upgrade batt. Using both methods will cause conflicts.
Option 1: Installation Script
bash <(curl -fsSL https://github.com/charlie0129/batt/raw/master/hack/install.sh)
# Yes, the command is the same as installing.
Option 2: Homebrew
brew update
sudo brew services stop batt
brew upgrade batt
sudo brew services start batt
Compatibility
Upgrading to v0.3.1
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 it by yourself.
v0.3.0
What's Changed
- feat: allow config reloading using SIGHUP @charlie0129 in 0fbc86f
- feat: add
batt disable
command to quickly set charge limit to 100 @charlie0129 in 5eea0b1 - fix: fix potential memory leak on restarting batt @charlie0129 in 2d52d68
- feat: turn off MagSafe LED after closing lid @charlie0129 in 1b3c260
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.3.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 it by yourself.
v0.2.1
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: 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).
v0.2.0
What's Changed
- feat: magsafe led control by @exidler in #3
- feat: more user-friendly charging message in
batt status
@charlie0129 in de5eabc - chore: hide daemon command by @charlie0129 in 499cdf3
- feat: group cli commands for better readability by @charlie0129 in 5691814
Full Changelog: v0.1.0...v0.2.0
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).
v0.1.0
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: 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.
v0.1.0-beta.4
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: v0.1.0-beta.3...v0.1.0-beta.4
v0.1.0-beta.3
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: v0.1.0-beta.2...v0.1.0-beta.3
v0.1.0-beta.2
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: v0.1.0-beta.1...v0.1.0-beta.2