battery icon indicating copy to clipboard operation
battery copied to clipboard

Charging beyond the set threshold

Open stano-vittorio opened this issue 5 months ago • 3 comments

Hi! I installed this app for my MacBook Air M4 to keep the battery at 80% but unfortunately I installed it a few days ago but the charge always exceeds 80% and I don't understand the reason. Yesterday at 81% and today at 93%. I kept the Mac under charge in standby mode (with the screen closed). Can you give me some more precise information? Optimized loading is active. I had another MacBook Air M1 and with that model the charge was stopped at 80%.

👾 Battery CLI logs:

07/23/25-17:37:50 - Charge above 80 07/23/25-17:37:50 - MagSafe LED function invoked 07/23/25-17:37:50 - 💡 Setting magsafe color to green 07/23/25-17:37:50 - setting LED to green 07/23/25-17:38:50 - Charge above 80 07/23/25-17:38:50 - MagSafe LED function invoked 07/23/25-17:38:50 - 💡 Setting magsafe color to green 07/23/25-17:38:50 - setting LED to green 07/23/25-17:39:51 - Charge above 80 07/23/25-17:39:51 - MagSafe LED function invoked 07/23/25-17:39:51 - 💡 Setting magsafe color to green 07/23/25-17:39:51 - setting LED to green 07/23/25-17:40:51 - Charge above 80 07/23/25-17:40:51 - MagSafe LED function invoked 07/23/25-17:40:51 - 💡 Setting magsafe color to green 07/23/25-17:40:51 - setting LED to green 07/23/25-17:41:51 - Charge above 80 07/23/25-17:41:51 - MagSafe LED function invoked 07/23/25-17:41:51 - 💡 Setting magsafe color to green 07/23/25-17:41:51 - setting LED to green 07/23/25-17:42:51 - Charge above 80 07/23/25-17:42:51 - MagSafe LED function invoked 07/23/25-17:42:51 - 💡 Setting magsafe color to green 07/23/25-17:42:51 - setting LED to green 07/23/25-17:43:51 - Charge above 80 07/23/25-17:43:51 - MagSafe LED function invoked 07/23/25-17:43:51 - 💡 Setting magsafe color to green 07/23/25-17:43:51 - setting LED to green 07/23/25-17:44:51 - Charge above 80 07/23/25-17:44:51 - MagSafe LED function invoked 07/23/25-17:44:51 - 💡 Setting magsafe color to green 07/23/25-17:44:51 - setting LED to green 07/23/25-17:45:51 - Charge above 80 07/23/25-17:45:51 - MagSafe LED function invoked 07/23/25-17:45:51 - 💡 Setting magsafe color to green 07/23/25-17:45:51 - setting LED to green 07/23/25-17:46:51 - Charge above 80 07/23/25-17:46:51 - MagSafe LED function invoked 07/23/25-17:46:51 - 💡 Setting magsafe color to green 07/23/25-17:46:51 - setting LED to green 07/23/25-17:47:51 - Charge above 80 07/23/25-17:47:51 - MagSafe LED function invoked 07/23/25-17:47:51 - 💡 Setting magsafe color to green 07/23/25-17:47:51 - setting LED to green 07/23/25-17:48:51 - Charge above 80 07/23/25-17:48:51 - MagSafe LED function invoked 07/23/25-17:48:51 - 💡 Setting magsafe color to green 07/23/25-17:48:51 - setting LED to green 07/23/25-17:49:51 - Charge above 80 07/23/25-17:49:51 - MagSafe LED function invoked 07/23/25-17:49:51 - 💡 Setting magsafe color to green 07/23/25-17:49:51 - setting LED to green 07/23/25-17:50:51 - Charge above 80 07/23/25-17:50:51 - MagSafe LED function invoked 07/23/25-17:50:51 - 💡 Setting magsafe color to green 07/23/25-17:50:51 - setting LED to green 07/23/25-17:51:51 - Charge above 80 07/23/25-17:51:51 - MagSafe LED function invoked 07/23/25-17:51:51 - 💡 Setting magsafe color to green 07/23/25-17:51:51 - setting LED to green 07/23/25-17:52:52 - Charge above 80 07/23/25-17:52:52 - MagSafe LED function invoked 07/23/25-17:52:52 - 💡 Setting magsafe color to green 07/23/25-17:52:52 - setting LED to green 07/23/25-17:53:52 - Charge above 80 07/23/25-17:53:52 - MagSafe LED function invoked 07/23/25-17:53:52 - 💡 Setting magsafe color to green 07/23/25-17:53:52 - setting LED to green 07/23/25-17:54:52 - Charge above 80 07/23/25-17:54:52 - MagSafe LED function invoked 07/23/25-17:54:52 - 💡 Setting magsafe color to green 07/23/25-17:54:52 - setting LED to green 07/23/25-17:55:52 - Charge above 80 07/23/25-17:55:52 - MagSafe LED function invoked 07/23/25-17:55:52 - 💡 Setting magsafe color to green 07/23/25-17:55:52 - setting LED to green 07/23/25-17:56:52 - Charge above 80 07/23/25-17:56:52 - MagSafe LED function invoked 07/23/25-17:56:52 - 💡 Setting magsafe color to green 07/23/25-17:56:52 - setting LED to green 07/23/25-17:57:52 - Charge above 80 07/23/25-17:57:52 - MagSafe LED function invoked 07/23/25-17:57:52 - 💡 Setting magsafe color to green 07/23/25-17:57:52 - setting LED to green 07/23/25-17:58:52 - Charge above 80 07/23/25-17:58:52 - MagSafe LED function invoked 07/23/25-17:58:52 - 💡 Setting magsafe color to green 07/23/25-17:58:52 - setting LED to green 07/23/25-17:59:52 - Charge above 80 07/23/25-17:59:52 - MagSafe LED function invoked 07/23/25-17:59:52 - 💡 Setting magsafe color to green 07/23/25-17:59:52 - setting LED to green 07/23/25-18:00:52 - Charge above 80 07/23/25-18:00:52 - MagSafe LED function invoked 07/23/25-18:00:52 - 💡 Setting magsafe color to green 07/23/25-18:00:52 - setting LED to green 07/23/25-18:02:00 - Not triggering discharge as it is not requested 07/23/25-18:02:00 - Charging to and maintaining at 80% from 93% 07/23/25-18:12:39 - Not triggering discharge as it is not requested 07/23/25-18:12:39 - Charging to and maintaining at 80% from 93%

🖥️ Battery GUI logs:

Get active logo for 93 Setting interface refresh speed to 10 minutes Battery status: {"percentage":"93","remaining":"unknown","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (unknown remaining)","daemon_state":"smc charging disabled"} Disabling interface update timer due to disable_only set to true Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv Battery status: {"percentage":"93","remaining":"unknown","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (unknown remaining)","daemon_state":"smc charging disabled"} Setting interface refresh speed to 10 minutes Disabling interface update timer due to disable_only set to true Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv Battery status: {"percentage":"93","remaining":"unknown","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (unknown remaining)","daemon_state":"smc charging disabled"} Setting interface refresh speed to 10 minutes Refreshing interface update timer Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv [ update-electron-app ] checking-for-update [ update-electron-app ] Error: La connessione a internet sembra essere disattivata. [ update-electron-app ] updater error Battery status: {"percentage":"93","remaining":"14:33","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (14:33 remaining)","daemon_state":"smc charging disabled"} Setting interface refresh speed to 10 minutes Refreshing interface update timer Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv Battery status: {"percentage":"93","remaining":"unknown","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (unknown remaining)","daemon_state":"smc charging disabled"} Setting interface refresh speed to 10 minutes Refreshing tray icon... Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv Refreshing tray icon... Battery status: {"percentage":"93","remaining":"10:32","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (10:32 remaining)","daemon_state":"smc charging disabled"} Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status Battery status: {"percentage":"93","remaining":"10:32","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (10:32 remaining)","daemon_state":"smc charging disabled"} Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status Limiter status message: 07/23/25-18:12:02 - Battery at 93% (10:32 remaining), 12.946V, smc charging disabled 07/23/25-18:12:02 - Your battery is currently being maintained at 80%

Limiter status message: 07/23/25-18:12:02 - Battery at 93% (10:32 remaining), 12.946V, smc charging disabled 07/23/25-18:12:02 - Your battery is currently being maintained at 80%

Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv Force discharge setting: undefined undefined Found image: /Applications/battery.app/Contents/Resources/battery-active-90-Template.png Get active logo for 93 Display percentage 90 based on 93 Generate app menu percentage: 93 (discharge disallowed, limited on) Get active logo for 93 Display percentage 90 based on 93 Found image: /Applications/battery.app/Contents/Resources/battery-active-90-Template.png Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv Force discharge setting: undefined undefined Refreshing interface update timer Refreshing interface update timer Resetting interface timer speed Generate app menu percentage: 93 (discharge disallowed, limited on) Resetting interface timer speed Setting interface refresh speed to 10 minutes Battery status: {"percentage":"93","remaining":"10:32","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (10:32 remaining)","daemon_state":"smc charging disabled"} Battery status: {"percentage":"93","remaining":"10:32","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (10:32 remaining)","daemon_state":"smc charging disabled"} Setting interface refresh speed to 10 minutes [ update-electron-app ] checking-for-update [ update-electron-app ] update-not-available Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv Refreshing tray icon... Battery status: {"percentage":"93","remaining":"9:28","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (9:28 remaining)","daemon_state":"smc charging disabled"} Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status Limiter status message: 07/23/25-18:22:02 - Battery at 93% (9:28 remaining), 12.878V, smc charging disabled 07/23/25-18:22:02 - Your battery is currently being maintained at 80%

Generate app menu percentage: 93 (discharge disallowed, limited on) Force discharge setting: undefined undefined Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv Get active logo for 93 Display percentage 90 based on 93 Found image: /Applications/battery.app/Contents/Resources/battery-active-90-Template.png Refreshing interface update timer Resetting interface timer speed Battery status: {"percentage":"93","remaining":"9:28","charging":false,"discharging":false,"maintain_percentage":"80","battery_state":"93% (9:28 remaining)","daemon_state":"smc charging disabled"} Setting interface refresh speed to 10 minutes [ update-electron-app ] checking-for-update [ update-electron-app ] update-not-available

📁 Config folder details:

total 536 drwxr-xr-x@ 7 vittoriomariastano staff 224B 23 Lug 18:12 . drwxr-x---+ 23 vittoriomariastano staff 736B 23 Lug 18:28 .. -rwxr-xr-x@ 1 vittoriomariastano staff 57K 23 Lug 18:28 battery.log -rw-r--r--@ 1 vittoriomariastano staff 6B 23 Lug 18:12 battery.pid -rw-r--r--@ 1 vittoriomariastano staff 154K 23 Lug 18:27 gui.log -rw-r--r-- 1 vittoriomariastano staff 3B 23 Lug 18:12 maintain.percentage -rw-r--r-- 1 root staff 965B 18 Lug 06:58 visudo.tmp

⚙️ Battery data:

07/23/25-18:28:31 - Battery at 93% (8:51 remaining), 12.841V, smc charging disabled 07/23/25-18:28:31 - Your battery is currently being maintained at 80% Battery CLI utility v1.2.7

stano-vittorio avatar Jul 23 '25 16:07 stano-vittorio

Can confirm it happens to me to.

silviugeorgian77 avatar Jul 31 '25 18:07 silviugeorgian77

Battery app does not support charge limit during sleep or shutdown. This fork does support it, but only when your macOS is not later than Sonoma. Apple decided to remove this function starting from Sequioa.

iammicloud avatar Jul 31 '25 22:07 iammicloud

Battery app does not support charge limit during sleep or shutdown. This fork does support it, but only when your macOS is not later than Sonoma. Apple decided to remove this function starting from Sequioa.

Thanks for sharing! I tried it (MB Pro 14/M4 Pro + Sequoa 15.1) and it seems that the limit is applied during sleep. Not tested while being shutdown yet.

tedynaidenov avatar Aug 24 '25 06:08 tedynaidenov