Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon not showing when 10%? battery #280

Open
jakjakob opened this issue May 28, 2024 · 1 comment
Open

Icon not showing when 10%? battery #280

jakjakob opened this issue May 28, 2024 · 1 comment

Comments

@jakjakob
Copy link

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
Copy link
Author

jakjakob commented Jun 2, 2024

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…

@jakjakob jakjakob changed the title Icon not showing when <=10% battery Icon not showing when 10%? battery Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant