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 percentage parsing breaks with early battery warning #250

Open
ItsEcholot opened this issue Apr 2, 2024 · 0 comments
Open

Battery percentage parsing breaks with early battery warning #250

ItsEcholot opened this issue Apr 2, 2024 · 0 comments

Comments

@ItsEcholot
Copy link

What is the issue? (required)
If the battery percentage drops below the warning threshold (10% I think?) the pmset battery percentage parsing breaks.
This also breaks the Tray Application.

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

  1. Run battery status on 10% or below
    -or-
  2. Run the tray app on 10% or below

Expected behavior (required)
It should return the current battery status
-or-
It should display a tray icon

Error logs

❱ battery status
04/02/24-09:45:36 - Battery at Early% ( remaining), smc charging enabled

Additional context (optional)
pmset -g batt returns the following:

❱ pmset -g batt
Now drawing from 'Battery Power'
 -InternalBattery-0 (id=21758051)	7%; discharging; 0:22 remaining present: true
	Battery Warning: Early
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