actuallymentor / battery

CLI/GUI for managing the battery charging status for Apple silicon (M1, M32, M3) Macs
MIT License
3.58k stars 148 forks source link

Battery calibration doesn't seem to work #290

Open Zagrthos opened 3 months ago

Zagrthos commented 3 months ago

What is the issue? (required) The battery calibration CLI command doesn't fully charge the battery to 100%. Instead it stops at 83% and then disables the charging mechanism again.

What exactly did you do to produce the issue? (required) Steps to reproduce the behavior:

  1. Restarted the MacBook
  2. Started the Battery App
  3. Opened the Terminal
  4. Entered battery calibrate
  5. Waited.

Expected behavior (required) The battery is getting discharged to 15%, then charges up to 100%. Waits for an hour and then it discharges down until 80% again.

Screenshots (optional) None.

Error logs

Open for logs ``` 07/04/24-12:28:03 - 🚨 Calibration process have been stopped 07/04/24-12:28:03 - Error: recover is not a valid setting for battery maintain. Please use a number between 0 and 100 07/04/24-12:28:37 - 🚨 Calibration process have been stopped 07/04/24-12:28:37 - 🚨 Calibration process have been stopped 07/04/24-12:28:37 - Not triggering discharge as it is not requested 07/04/24-12:28:37 - Not triggering discharge as it is not requested 07/04/24-12:28:37 - Charging to and maintaining at 80% from 22% 07/04/24-12:28:37 - Charging to and maintaining at 80% from 22% 07/04/24-12:29:06 - Starting calibration 07/04/24-12:29:06 - 🚨 Calibration process have been stopped 07/04/24-12:29:06 - Killing running maintain daemons & enabling charging as default state 07/04/24-12:29:06 - Disabling daemon at gui/501/com.battery.app 07/04/24-12:29:06 - Battery at 22% ((no remaining), 11.25V, smc charging enabled 07/04/24-12:29:06 - Discharging to 15% from 22% 07/04/24-12:29:06 - πŸ”½πŸͺ« Enabling battery discharging 07/04/24-12:29:06 - Battery at 22% (target 15%) 07/04/24-12:30:06 - Battery at 22% (target 15%) 07/04/24-12:31:06 - Battery at 22% (target 15%) 07/04/24-12:32:06 - Battery at 22% (target 15%) 07/04/24-12:33:06 - Battery at 22% (target 15%) 07/04/24-12:34:06 - Battery at 22% (target 15%) 07/04/24-12:35:06 - Battery at 21% (target 15%) 07/04/24-12:36:06 - Battery at 21% (target 15%) 07/04/24-12:37:06 - Battery at 21% (target 15%) 07/04/24-12:38:06 - Battery at 21% (target 15%) 07/04/24-12:39:06 - Battery at 21% (target 15%) 07/04/24-12:40:06 - Battery at 21% (target 15%) 07/04/24-12:41:06 - Battery at 21% (target 15%) 07/04/24-12:42:06 - Battery at 21% (target 15%) 07/04/24-12:43:06 - Battery at 21% (target 15%) 07/04/24-12:44:06 - Battery at 21% (target 15%) 07/04/24-12:45:06 - Battery at 21% (target 15%) 07/04/24-12:46:06 - Battery at 20% (target 15%) 07/04/24-12:47:53 - Battery at 20% (target 15%) 07/04/24-12:48:53 - Battery at 20% (target 15%) 07/04/24-12:49:54 - Battery at 20% (target 15%) 07/04/24-12:50:54 - Battery at 20% (target 15%) 07/04/24-12:51:54 - Battery at 20% (target 15%) 07/04/24-12:52:54 - Battery at 20% (target 15%) 07/04/24-12:53:54 - Battery at 20% (target 15%) 07/04/24-12:54:54 - Battery at 20% (target 15%) 07/04/24-12:55:54 - Battery at 20% (target 15%) 07/04/24-12:56:54 - Battery at 19% (target 15%) 07/04/24-12:57:54 - Battery at 19% (target 15%) 07/04/24-12:58:54 - Battery at 19% (target 15%) 07/04/24-12:59:54 - Battery at 19% (target 15%) 07/04/24-13:00:54 - Battery at 19% (target 15%) 07/04/24-13:01:54 - Battery at 19% (target 15%) 07/04/24-13:02:54 - Battery at 19% (target 15%) 07/04/24-13:03:54 - Battery at 19% (target 15%) 07/04/24-13:04:54 - Battery at 19% (target 15%) 07/04/24-13:05:54 - Battery at 18% (target 15%) 07/04/24-13:06:54 - Battery at 18% (target 15%) 07/04/24-13:07:54 - Battery at 18% (target 15%) 07/04/24-13:08:54 - Battery at 18% (target 15%) 07/04/24-13:09:54 - Battery at 18% (target 15%) 07/04/24-13:10:55 - Battery at 18% (target 15%) 07/04/24-13:11:55 - Battery at 18% (target 15%) 07/04/24-13:12:55 - Battery at 17% (target 15%) 07/04/24-13:13:55 - Battery at 17% (target 15%) 07/04/24-13:14:55 - Battery at 17% (target 15%) 07/04/24-13:15:55 - Battery at 17% (target 15%) 07/04/24-13:16:55 - Battery at 17% (target 15%) 07/04/24-13:17:55 - Battery at 17% (target 15%) 07/04/24-13:18:55 - Battery at 17% (target 15%) 07/04/24-13:19:55 - Battery at 17% (target 15%) 07/04/24-13:20:55 - Battery at 16% (target 15%) 07/04/24-13:21:55 - Battery at 16% (target 15%) 07/04/24-13:22:55 - Battery at 16% (target 15%) 07/04/24-13:23:55 - Battery at 16% (target 15%) 07/04/24-13:24:55 - Battery at 16% (target 15%) 07/04/24-13:25:55 - πŸ”ΌπŸͺ« Disabling battery discharging 07/04/24-13:25:55 - Disabling discharging: Charge above 15, disabling charging 07/04/24-13:25:55 - πŸ”ŒπŸͺ« Disabling battery charging 07/04/24-13:25:55 - MagSafe LED function invoked 07/04/24-13:25:55 - πŸ’‘ Setting magsafe color to green 07/04/24-13:25:55 - setting LED to green 07/04/24-13:25:55 - Discharging completed at 15% 07/04/24-13:25:55 - checking if at 100% 07/04/24-13:26:26 - Charge below 80 07/04/24-13:26:26 - πŸ”ŒπŸ”‹ Enabling battery charging 07/04/24-13:26:26 - πŸ”ΌπŸͺ« Disabling battery discharging 07/04/24-13:26:26 - MagSafe LED function invoked 07/04/24-13:26:26 - πŸ’‘ Setting magsafe color to orange 07/04/24-13:26:26 - setting LED to orange 07/04/24-13:30:55 - checking if at 100% 07/04/24-13:35:55 - checking if at 100% 07/04/24-13:40:56 - checking if at 100% 07/04/24-13:45:56 - checking if at 100% 07/04/24-13:50:56 - checking if at 100% 07/04/24-13:55:56 - checking if at 100% 07/04/24-14:00:56 - checking if at 100% 07/04/24-14:05:56 - checking if at 100% 07/04/24-14:10:56 - checking if at 100% 07/04/24-14:15:56 - checking if at 100% 07/04/24-14:20:56 - checking if at 100% 07/04/24-14:53:26 - checking if at 100% 07/04/24-15:29:56 - Charge above 80 07/04/24-15:29:56 - πŸ”ŒπŸͺ« Disabling battery charging 07/04/24-15:29:56 - MagSafe LED function invoked 07/04/24-15:29:56 - πŸ’‘ Setting magsafe color to green 07/04/24-15:29:56 - setting LED to green 07/04/24-15:36:34 - Charge above 80 07/04/24-15:36:34 - MagSafe LED function invoked 07/04/24-15:36:34 - πŸ’‘ Setting magsafe color to green 07/04/24-15:36:34 - setting LED to green 07/04/24-15:37:01 - checking if at 100% 07/04/24-15:37:34 - Charge above 80 07/04/24-15:37:34 - MagSafe LED function invoked 07/04/24-15:37:34 - πŸ’‘ Setting magsafe color to green 07/04/24-15:37:34 - setting LED to green 07/04/24-15:54:49 - Charge above 80 07/04/24-15:54:49 - MagSafe LED function invoked 07/04/24-15:54:49 - πŸ’‘ Setting magsafe color to green 07/04/24-15:54:49 - setting LED to green 07/04/24-15:55:49 - Charge above 80 07/04/24-15:55:49 - MagSafe LED function invoked 07/04/24-15:55:49 - πŸ’‘ Setting magsafe color to green 07/04/24-15:55:49 - setting LED to green 07/04/24-15:56:50 - Charge above 80 07/04/24-15:56:50 - MagSafe LED function invoked 07/04/24-15:56:50 - πŸ’‘ Setting magsafe color to green 07/04/24-15:56:50 - setting LED to green 07/04/24-15:57:50 - Charge above 80 07/04/24-15:57:50 - MagSafe LED function invoked 07/04/24-15:57:50 - πŸ’‘ Setting magsafe color to green 07/04/24-15:57:50 - setting LED to green 07/04/24-15:58:16 - checking if at 100% 07/04/24-15:58:50 - Charge above 80 07/04/24-15:58:50 - MagSafe LED function invoked 07/04/24-15:58:50 - πŸ’‘ Setting magsafe color to green 07/04/24-15:58:50 - setting LED to green 07/04/24-15:59:50 - Charge above 80 07/04/24-15:59:50 - MagSafe LED function invoked 07/04/24-15:59:50 - πŸ’‘ Setting magsafe color to green 07/04/24-15:59:50 - setting LED to green 07/04/24-16:00:50 - Charge above 80 07/04/24-16:00:50 - MagSafe LED function invoked 07/04/24-16:00:50 - πŸ’‘ Setting magsafe color to green 07/04/24-16:00:50 - setting LED to green 07/04/24-16:01:50 - Charge above 80 07/04/24-16:01:50 - MagSafe LED function invoked 07/04/24-16:01:50 - πŸ’‘ Setting magsafe color to green 07/04/24-16:01:50 - setting LED to green 07/04/24-16:02:50 - Charge above 80 07/04/24-16:02:50 - MagSafe LED function invoked 07/04/24-16:02:50 - πŸ’‘ Setting magsafe color to green 07/04/24-16:02:50 - setting LED to green 07/04/24-16:03:16 - checking if at 100% 07/04/24-16:03:50 - Charge above 80 07/04/24-16:03:50 - MagSafe LED function invoked 07/04/24-16:03:50 - πŸ’‘ Setting magsafe color to green 07/04/24-16:03:50 - setting LED to green 07/04/24-16:04:50 - Charge above 80 07/04/24-16:04:50 - MagSafe LED function invoked 07/04/24-16:04:50 - πŸ’‘ Setting magsafe color to green 07/04/24-16:04:50 - setting LED to green 07/04/24-16:05:50 - Charge above 80 07/04/24-16:05:50 - MagSafe LED function invoked 07/04/24-16:05:50 - πŸ’‘ Setting magsafe color to green 07/04/24-16:05:50 - setting LED to green 07/04/24-16:06:50 - Charge above 80 07/04/24-16:06:50 - MagSafe LED function invoked 07/04/24-16:06:50 - πŸ’‘ Setting magsafe color to green 07/04/24-16:06:50 - setting LED to green 07/04/24-16:08:13 - 🚨 Calibration process have been stopped 07/04/24-16:08:13 - 🚨 Calibration process have been stopped 07/04/24-16:08:13 - Not triggering discharge as it is not requested 07/04/24-16:08:13 - Not triggering discharge as it is not requested 07/04/24-16:08:13 - Charging to and maintaining at 80% from 83% 07/04/24-16:08:13 - Charging to and maintaining at 80% from 83% 07/04/24-16:08:16 - checking if at 100% ```

Additional context (optional) None.

djbob2000 commented 3 months ago

For calibration you do not need to discharge, just charge to 100% within an hour.

Zagrthos commented 3 months ago

Well I meant the calibration feature introduced with the new version. This is supposed to discharge your battery down to 15%, then charging up to 100% and let it stay for an hour.

This is also inside the description of it.