actuallymentor / battery

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

Icon not showing when 10%? battery #280

Open jakjakob opened 5 months ago

jakjakob commented 5 months ago

Pretty self explanatory.

image

Logs

πŸ‘Ύ Battery CLI logs: 05/07/24-10:53:54 - πŸ”ŒπŸͺ« Disabling battery charging 05/07/24-10:53:54 - πŸ’‘ Setting magsafe color to green 05/07/24-13:31:20 - Charge below 80 05/07/24-13:31:20 - πŸ”ŒπŸ”‹ Enabling battery charging 05/07/24-13:31:20 - πŸ”ΌπŸͺ« Disabling battery discharging 05/07/24-13:31:21 - πŸ’‘ Setting magsafe color to orange 05/09/24-20:19:35 - Not triggering discharge as it is not requested 05/09/24-20:19:35 - Charging to and maintaining at 80% from 14% 05/09/24-20:19:35 - Charge below 80 05/09/24-20:19:35 - πŸ”ŒπŸ”‹ Enabling battery charging 05/09/24-20:19:35 - πŸ”ΌπŸͺ« Disabling battery discharging 05/09/24-20:19:35 - πŸ’‘ Setting magsafe color to orange 05/09/24-22:46:58 - Not triggering discharge as it is not requested 05/09/24-22:46:58 - Charging to and maintaining at 80% from 26% 05/09/24-22:46:58 - Charge below 80 05/09/24-22:46:58 - πŸ”ŒπŸ”‹ Enabling battery charging 05/09/24-22:46:58 - πŸ”ΌπŸͺ« Disabling battery discharging 05/09/24-22:46:58 - πŸ’‘ Setting magsafe color to orange 05/10/24-20:55:54 - Not triggering discharge as it is not requested 05/10/24-20:55:54 - Charging to and maintaining at 80% from 15% 05/10/24-20:55:54 - Charge below 80 05/10/24-20:55:54 - πŸ”ŒπŸ”‹ Enabling battery charging 05/10/24-20:55:54 - πŸ”ΌπŸͺ« Disabling battery discharging 05/10/24-20:55:54 - πŸ’‘ Setting magsafe color to orange 05/10/24-21:39:56 - Charge above 80 05/10/24-21:39:56 - πŸ”ŒπŸͺ« Disabling battery charging 05/10/24-21:39:56 - πŸ’‘ Setting magsafe color to green 05/12/24-18:46:03 - Not triggering discharge as it is not requested 05/12/24-18:46:03 - Charging to and maintaining at 80% from 14% 05/12/24-18:46:03 - Charge below 80 05/12/24-18:46:03 - πŸ”ŒπŸ”‹ Enabling battery charging 05/12/24-18:46:03 - πŸ”ΌπŸͺ« Disabling battery discharging 05/12/24-18:46:03 - πŸ’‘ Setting magsafe color to orange 05/12/24-19:31:05 - Charge above 80 05/12/24-19:31:05 - πŸ”ŒπŸͺ« Disabling battery charging 05/12/24-19:31:05 - πŸ’‘ Setting magsafe color to green 05/15/24-15:00:33 - Not triggering discharge as it is not requested 05/15/24-15:00:33 - Charging to and maintaining at 80% from 16% 05/15/24-15:00:33 - Charge below 80 05/15/24-15:00:33 - πŸ”ŒπŸ”‹ Enabling battery charging 05/15/24-15:00:33 - πŸ”ΌπŸͺ« Disabling battery discharging 05/15/24-15:00:33 - πŸ’‘ Setting magsafe color to orange 05/15/24-15:46:35 - Charge above 80 05/15/24-15:46:35 - πŸ”ŒπŸͺ« Disabling battery charging 05/15/24-15:46:35 - πŸ’‘ Setting magsafe color to green 05/17/24-12:09:28 - Not triggering discharge as it is not requested 05/17/24-12:09:28 - Charging to and maintaining at 80% from 19% 05/17/24-12:09:28 - Charge below 80 05/17/24-12:09:28 - πŸ”ŒπŸ”‹ Enabling battery charging 05/17/24-12:09:28 - πŸ”ΌπŸͺ« Disabling battery discharging 05/17/24-12:09:28 - πŸ’‘ Setting magsafe color to orange 05/17/24-12:54:30 - Charge above 80 05/17/24-12:54:30 - πŸ”ŒπŸͺ« Disabling battery charging 05/17/24-12:54:30 - πŸ’‘ Setting magsafe color to green 05/17/24-14:39:43 - Charge below 80 05/17/24-14:39:43 - πŸ”ŒπŸ”‹ Enabling battery charging 05/17/24-14:39:43 - πŸ”ΌπŸͺ« Disabling battery discharging 05/17/24-14:39:43 - πŸ’‘ Setting magsafe color to orange 05/22/24-12:28:08 - Not triggering discharge as it is not requested 05/22/24-12:28:08 - Charging to and maintaining at 80% from 20% 05/22/24-12:28:08 - Charge below 80 05/22/24-12:28:08 - πŸ”ŒπŸ”‹ Enabling battery charging 05/22/24-12:28:08 - πŸ”ΌπŸͺ« Disabling battery discharging 05/22/24-12:28:08 - πŸ’‘ Setting magsafe color to orange 05/23/24-18:07:31 - Not triggering discharge as it is not requested 05/23/24-18:07:31 - Charging to and maintaining at 80% from 15% 05/23/24-18:07:31 - Charge below 80 05/23/24-18:07:31 - πŸ”ŒπŸ”‹ Enabling battery charging 05/23/24-18:07:32 - πŸ”ΌπŸͺ« Disabling battery discharging 05/23/24-18:07:32 - πŸ’‘ Setting magsafe color to orange 05/23/24-18:55:34 - Charge above 80 05/23/24-18:55:34 - πŸ”ŒπŸͺ« Disabling battery charging 05/23/24-18:55:34 - πŸ’‘ Setting magsafe color to green 05/26/24-00:45:30 - Not triggering discharge as it is not requested 05/26/24-00:45:30 - Charging to and maintaining at 80% from 13% 05/26/24-00:45:30 - Charge below 80 05/26/24-00:45:30 - πŸ”ŒπŸ”‹ Enabling battery charging 05/26/24-00:45:30 - πŸ”ΌπŸͺ« Disabling battery discharging 05/26/24-00:45:30 - πŸ’‘ Setting magsafe color to orange 05/26/24-00:58:58 - Not triggering discharge as it is not requested 05/26/24-00:58:58 - Charging to and maintaining at 80% from 34% 05/26/24-19:35:28 - Not triggering discharge as it is not requested 05/26/24-19:35:28 - Charging to and maintaining at 80% from 15% 05/26/24-19:35:28 - Charge below 80 05/26/24-19:35:28 - πŸ”ŒπŸ”‹ Enabling battery charging 05/26/24-19:35:28 - πŸ”ΌπŸͺ« Disabling battery discharging 05/26/24-19:35:28 - πŸ’‘ Setting magsafe color to orange 05/26/24-20:20:30 - Charge above 80 05/26/24-20:20:30 - πŸ”ŒπŸͺ« Disabling battery charging 05/26/24-20:20:30 - πŸ’‘ Setting magsafe color to green 05/27/24-05:32:53 - Charge below 80 05/27/24-05:32:53 - πŸ”ŒπŸ”‹ Enabling battery charging 05/27/24-05:32:53 - πŸ”ΌπŸͺ« Disabling battery discharging 05/27/24-05:32:53 - πŸ’‘ Setting magsafe color to orange 05/28/24-21:47:57 - Not triggering discharge as it is not requested 05/28/24-21:47:57 - Charging to and maintaining at 80% from Early% 05/28/24-21:47:57 - Charge below 80 05/28/24-21:47:57 - πŸ”ŒπŸ”‹ Enabling battery charging 05/28/24-21:47:57 - πŸ”ΌπŸͺ« Disabling battery discharging 05/28/24-21:47:57 - πŸ’‘ Setting magsafe color to orange πŸ–₯️ Battery GUI logs: Refreshing tray icon... Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Battery status: {"percentage":"12","remaining":"unknown","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"12% (unknown remaining)","daemon_state":"smc charging enabled"} Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status Limiter status message: 05/28/24-21:50:04 - Battery at 12% ((no remaining), smc charging enabled 05/28/24-21:50:04 - Your battery is currently being maintained at 80% Display percentage 10 based on 12 Found image: /Applications/battery.app/Contents/Resources/battery-active-10-Template.png Resetting interface timer speed Refreshing interface update timer Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Get active logo for 12 Force discharge setting: undefined undefined Generate app menu percentage: 12 (discharge disallowed, limited on) Battery status: {"percentage":"12","remaining":"unknown","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"12% (unknown remaining)","daemon_state":"smc charging enabled"} Setting interface refresh speed to 0.5 minutes Refreshing tray icon... Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Battery status: {"percentage":"12","remaining":"unknown","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"12% (unknown remaining)","daemon_state":"smc charging enabled"} Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status Limiter status message: 05/28/24-21:50:34 - Battery at 12% ((no remaining), smc charging enabled 05/28/24-21:50:34 - Your battery is currently being maintained at 80% Get active logo for 12 Generate app menu percentage: 12 (discharge disallowed, limited on) Refreshing interface update timer Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Found image: /Applications/battery.app/Contents/Resources/battery-active-10-Template.png Force discharge setting: undefined undefined Resetting interface timer speed Display percentage 10 based on 12 Battery status: {"percentage":"12","remaining":"unknown","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"12% (unknown remaining)","daemon_state":"smc charging enabled"} Setting interface refresh speed to 0.5 minutes Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Refreshing tray icon... Battery status: {"percentage":"14","remaining":"1:43","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"14% (1:43 remaining)","daemon_state":"smc charging enabled"} Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status Limiter status message: 05/28/24-21:51:04 - Battery at 14% (1:43 remaining), smc charging enabled 05/28/24-21:51:04 - Your battery is currently being maintained at 80% Display percentage 10 based on 14 Found image: /Applications/battery.app/Contents/Resources/battery-active-10-Template.png Resetting interface timer speed Refreshing interface update timer Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Get active logo for 14 Force discharge setting: undefined undefined Generate app menu percentage: 14 (discharge disallowed, limited on) Battery status: {"percentage":"14","remaining":"1:43","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"14% (1:43 remaining)","daemon_state":"smc charging enabled"} Setting interface refresh speed to 0.5 minutes Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Refreshing tray icon... Battery status: {"percentage":"14","remaining":"1:43","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"14% (1:43 remaining)","daemon_state":"smc charging enabled"} Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status Limiter status message: 05/28/24-21:51:34 - Battery at 14% (1:43 remaining), smc charging enabled 05/28/24-21:51:34 - Your battery is currently being maintained at 80% Get active logo for 14 Found image: /Applications/battery.app/Contents/Resources/battery-active-10-Template.png Resetting interface timer speed Refreshing interface update timer Force discharge setting: undefined undefined Display percentage 10 based on 14 Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Generate app menu percentage: 14 (discharge disallowed, limited on) Battery status: {"percentage":"14","remaining":"1:43","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"14% (1:43 remaining)","daemon_state":"smc charging enabled"} Setting interface refresh speed to 0.5 minutes Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Refreshing tray icon... Battery status: {"percentage":"16","remaining":"1:41","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"16% (1:41 remaining)","daemon_state":"smc charging enabled"} Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status Limiter status message: 05/28/24-21:52:05 - Battery at 16% (1:41 remaining), smc charging enabled 05/28/24-21:52:05 - Your battery is currently being maintained at 80% Found image: /Applications/battery.app/Contents/Resources/battery-active-15-Template.png Resetting interface timer speed Generate app menu percentage: 16 (discharge disallowed, limited on) Force discharge setting: undefined undefined Get active logo for 16 Refreshing interface update timer Display percentage 15 based on 16 Executing PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew battery status_csv Battery status: {"percentage":"16","remaining":"1:41","charging":true,"discharging":false,"maintain_percentage":"80","battery_state":"16% (1:41 remaining)","daemon_state":"smc charging enabled"} Setting interface refresh speed to 0.5 minutes πŸ“ Config folder details: total 392896 drwxr-xr-x@ 6 jakjakob staff 192B May 28 21:47 . drwxr-x---+ 50 jakjakob staff 1.6K May 28 21:52 .. -rwxr-xr-x@ 1 jakjakob staff 227K May 28 21:52 battery.log -rw-r--r-- 1 jakjakob staff 6B May 28 21:47 battery.pid -rw-r--r--@ 1 jakjakob staff 177M May 28 21:52 gui.log -rw-r--r--@ 1 jakjakob staff 3B May 28 21:47 maintain.percentage βš™οΈ Battery data: 05/28/24-21:52:05 - Battery at 16% (1:41 remaining), smc charging enabled 05/28/24-21:52:05 - Your battery is currently being maintained at 80% Battery CLI utility v1.1.6

jakjakob commented 5 months ago

Update: the cause seems not to be valid, as rn at under 10% it shows up. Maybe only at 10% (it happened also)? But when charging, it shows it…