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

Only one battery reported #11

Closed
lucassardois opened this issue Jun 22, 2020 · 4 comments
Closed

Only one battery reported #11

lucassardois opened this issue Jun 22, 2020 · 4 comments

Comments

@lucassardois
Copy link
Contributor

Hello,

Since I updated to master from and older version, dwm-status now only report one of my two batteries.
The result of acpi is the following:

Battery 0: Discharging, 83%, 02:37:07 remaining
Battery 1: Unknown, 78%
@Gerschtli
Copy link
Owner

Recently I have replaced the logic which was responsible for gathering battery information with the following crate: https://github.com/svartalf/rust-battery

Unfortunately I don't have a laptop with two batteries so I can not test it, but maybe you could report your issue there, as they use a much more sophisticated solution than I had in the first place..

Maybe you could debug the return value in src/wrapper/battery.rs to see which crate is causing the problem..

@lucassardois
Copy link
Contributor Author

Thanks for pointing this out, I will investigate.

@Gerschtli
Copy link
Owner

Should be fixed via #12 and will be released in the next days.

@Gerschtli
Copy link
Owner

Fix is published in 1.7.1

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

2 participants