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

battery adapter is not working in Sequoia #307

Open
gk4code1 opened this issue Sep 27, 2024 · 4 comments
Open

battery adapter is not working in Sequoia #307

gk4code1 opened this issue Sep 27, 2024 · 4 comments

Comments

@gk4code1
Copy link

What is the issue? (required)
Battery adapter off is not turning off the charging.

I see in the logs error message as Disabling discharging: No valid maintain percentage set, enabling charging

I tried setting battery maintain 80 but still same error

Battery app version is 1.2.2

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

  1. Go to terminal type battery adapter off
  2. See error

Expected behavior (required)
it should turn off the charging.

Error logs
➜ ~ battery adapter off ⚡️
09/27/24-10:17:34 - Setting adapter to off
09/27/24-10:17:34 - Killing running maintain daemons & enabling charging as default state
09/27/24-10:17:34 - Disabling daemon at gui/501/com.battery.app
09/27/24-10:17:34 - 🔌🔋 Enabling battery charging
09/27/24-10:17:34 - 🔼🪫 Disabling battery discharging
09/27/24-10:17:34 - Disabling discharging: No valid maintain percentage set, enabling charging
09/27/24-10:17:34 - MagSafe LED function invoked
09/27/24-10:17:34 - 💡 Setting magsafe color to orange
09/27/24-10:17:34 - setting LED to orange
09/27/24-10:17:34 - Battery at 100% (0:00 remaining), 12.892V, smc charging enabled
09/27/24-10:17:34 - 🔼🪫 Disabling battery discharging
09/27/24-10:17:34 - Disabling discharging: No valid maintain percentage set, enabling charging
09/27/24-10:17:34 - MagSafe LED function invoked
09/27/24-10:17:34 - 💡 Setting magsafe color to orange
09/27/24-10:17:34 - setting LED to orange

tail -n 1000 ~/.battery/battery.log

09/24/24-20:37:52 - No setting to recover, exiting
09/24/24-20:37:53 - Not triggering discharge as it is not requested
09/24/24-20:37:53 - Charging to and maintaining at 80% from 100%
09/24/24-20:37:53 - Charge above 80
09/24/24-20:37:53 - 🔌🪫 Disabling battery charging
09/24/24-20:37:53 - MagSafe LED function invoked
09/24/24-20:37:53 - 💡 Setting magsafe color to green
09/24/24-20:37:53 - setting LED to green
09/24/24-20:38:02 - Not triggering discharge as it is not requested
09/24/24-20:38:02 - Charging to and maintaining at 80% from 100%
09/24/24-20:38:40 - Not triggering discharge as it is not requested
09/24/24-20:38:40 - Charging to and maintaining at 80% from 100%

@rkrug
Copy link

rkrug commented Oct 1, 2024

This is referring to Sequoia but also battery 1.2.2 and the logs look identical.

It seems to be limiting the charging to 80% and setts the led to green, but the menubar icon is not shown.

09/30/24-17:46:23 - MagSafe LED function invoked
09/30/24-17:46:23 - 💡 Setting magsafe color to orange
09/30/24-17:46:23 - setting LED to orange
10/01/24-10:15:22 - Debug trail. User: rainerkrug, config folder: /Users/rainerkrug/.battery, logfile: /Users/rainerkrug/.battery/battery.log, file called with 1: maintain_synchronous, 2: recover
10/01/24-10:15:22 - Recovering maintenance percentage 80
10/01/24-10:15:22 - Not triggering discharge as it is not requested
10/01/24-10:15:22 - Charging to and maintaining at 80% from 78%
10/01/24-10:15:24 - Not triggering discharge as it is not requested
10/01/24-10:15:24 - Charging to and maintaining at 80% from 78%
10/01/24-10:17:25 - Charge above 80
10/01/24-10:17:25 - 🔌🪫 Disabling battery charging
10/01/24-10:17:25 - MagSafe LED function invoked
10/01/24-10:17:25 - 💡 Setting magsafe color to green
10/01/24-10:17:25 - setting LED to green

@vitiasr
Copy link

vitiasr commented Oct 6, 2024

It works but in reverse. In order to disable charging you need to type battery adapter on. Typing battery adapter off will resume charging. This bug is present in version 1.2.7. Actually, after updating to v1.2.7, battery charge and battery maintain stopped working.

@gk4code1 gk4code1 changed the title battery adapter is not working in Sonoma battery adapter is not working in Sequoia Oct 6, 2024
@rkrug
Copy link

rkrug commented Oct 7, 2024

Just checked again - now the menue bar icon is shown. Must have been a hiccup in my system.

@avdok
Copy link

avdok commented Oct 9, 2024

I had the same problem in Sequoia. The icon in the menu bar was not displayed. I installed via brew and dmg file. After rebooting, I launched the battery app manually. Closed it via ctrl-q and launched it again. The application again prompted to enter the password and the icon in the menu bar appeared.

PS: If you use the Hidden Bar app, it's worth expanding the hidden icons part.

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

4 participants