lslqtz / bclm_loop

A background looping utility that maintains the battery level of Apple Silicon based Mac computers.
MIT License
24 stars 0 forks source link

A few questions... #1

Open seamusdemora opened 9 hours ago

seamusdemora commented 9 hours ago

My Mac is Ventura 13.7. bclm worked through 13.6.9, but after todays' upgrade, it is kaput.

I've "installed" via sudo cp ~/Downloads/bclm_loop /usr/local/bin && sudo chmod 755 /usr/local/bin/bclm_loop; "Optimized Battery Charging" is OFF.

There was a note in the README I didn't understand :

Just create a new plist in /Library/LaunchDaemons

Can you explain how to do that, please?

I tried running from the cmd line:

sudo bclm_loop loop
Use software-based battery level limits. (SMCKey "CHWA" not found)
Limit status will be changed. (Current: true, Last: false)
Charging status has changed! (Current: false, Last: nil)
SMC has opened!
Limit status has changed! (Limit)
MagSafe LED status has changed! (Full)
SMC has closed!
SMC has opened!
Limit status has changed! (Limit)
MagSafe LED status has changed! (Full)
SMC has closed!
SMC has opened!
Limit status has changed! (Limit)
MagSafe LED status has changed! (Full)
SMC has closed!
^C

That seemed to be going nowhere. Since then, I've tried this:

% sudo bclm_loop persist 
%

But nothing seems to be happening - I guess maybe b/c of the plist I've not created ?

I wonder: I use a program called LaunchControl - could I create a system daemon to run bclm_loop instead of a plist?

lslqtz commented 8 hours ago

When you run bclm_loop loop, charging should be throttled.

If you want to start it on boot, then this command sudo bclm_loop persist will create the launchdaemon for you.

Try to see if it is there: ls /Library/LaunchDaemons | grep -i com.lslqtz.bclm_loop.

seamusdemora commented 8 hours ago

This command sudo bclm_loop persist will create the launchdaemon for you.

Try to see if it is there: ls /Library/LaunchDaemons | grep -i com.lslqtz.bclm_loop.

Yes - it's there. I wonder why bclm_loop appears to be doing nothing?

lslqtz commented 8 hours ago

This command sudo bclm_loop persist will create the launchdaemon for you. Try to see if it is there: ls /Library/LaunchDaemons | grep -i com.lslqtz.bclm_loop.

Yes - it's there. I wonder why bclmloop appears_ to be doing nothing?

When it does not detect a power adapter change, it will not take action, but will silently detect (in the background). It will be executed three times when it is first started or when the power adapter is changed to ensure that it is as effective as possible. Silent detection is to avoid excessive and useless logging.

When you execute the sudo bclm_loop persist command, it will complete silently without any prompt. This seems to be a behavior of the original version as well. If nothing is displayed, it means it succeeded.

Just try to see if the charge limit works even after a reboot (it may not work briefly during the reboot process because the battery is no longer taken over by the system and bclm_loop).