From f2de37e4461e4f07562b56e94cb02fe445ba7920 Mon Sep 17 00:00:00 2001 From: godly-devotion Date: Sat, 30 May 2020 14:21:28 -0400 Subject: [PATCH] README.md: add info about BCLM --- README.md | 4 ++-- src/charge-limiter.app/Contents/Info.plist | 2 +- .../Contents/Resources/Scripts/main.scpt | Bin 2156 -> 2218 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 03ec425..fc6abcc 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ Set charge limit for MacBooks. ## Description -This utility is written in Javascript Application Scripting (or JXA) using Apple's Script Editor. +This app modifies a parameter called `BCLM` (presumably "Battery Charging Level Max") in the SMC which limits the charge of the battery to a set value. -The source code can be viewed by opening `src/charge-limiter.app` in Script Editor. +The source code can be viewed by opening `src/charge-limiter.app` in Apple's Script Editor. It is written in Javascript Application Scripting (or JXA). The companion `smcutil` binary (located under `src/charge-limiter.app/Contents/Resources`) was copied from [this repository](https://github.com/sicreative/BatteryStatusShow/blob/master/BatteryStatusShow/smcutil/Products/usr/local/bin/smcutil). The source code for `smcutil` is also available there. diff --git a/src/charge-limiter.app/Contents/Info.plist b/src/charge-limiter.app/Contents/Info.plist index 3b0163b..daf0c58 100644 --- a/src/charge-limiter.app/Contents/Info.plist +++ b/src/charge-limiter.app/Contents/Info.plist @@ -25,7 +25,7 @@ LSMinimumSystemVersionByArchitecture x86_64 - 10.6 + 10.12 LSRequiresCarbon diff --git a/src/charge-limiter.app/Contents/Resources/Scripts/main.scpt b/src/charge-limiter.app/Contents/Resources/Scripts/main.scpt index c0fb0ea61446c2bc445544f9af7a3de0d9c9a2be..fbc6a2994783c4f1ac8691656f9b302c86edf803 100644 GIT binary patch delta 156 zcmaDOuu5=(Dr4YAwF|7qT%4Rqr6nc#dBs)=(dy2LdC93c>ajXN;gr<0#L}D+C$OxQ z0!)sJb22wuj{_O{YBjlPxwuM-Dix}MhHPT<*u);s$d}HLRh(SJz{tS+>)yS!0M&&s AmH+?% delta 95 zcmZ1__(ouYDx=6owF|7G3Q46UCHZ;9RtnMT&WU-+sX6Mg3X?V2dZe++)M|3oa&b-m g%I3jZQdFr>z1fC6fst1$t2nucfsujd*S&jd0nT0@TmS$7