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

Charging not recognized #8

Open
Dolland opened this issue Sep 6, 2023 · 1 comment
Open

Charging not recognized #8

Dolland opened this issue Sep 6, 2023 · 1 comment
Labels

Comments

@Dolland
Copy link

Dolland commented Sep 6, 2023

I don't understand how your script can know when battery is charging.
When script is running and battery is charging, no charging icon appears.

Looking at the script i found that only the "battery history" section can be the estimation for battery charging, but still for me it doesn't work.

Am i missing something?

@d-rez
Copy link
Owner

d-rez commented Sep 6, 2023

The solution I used is imperfect and requires at least some basic calibration for your ADC module / device build.

The TLDR is that in my testing the highest unplugged voltage was still lower than the lowest plugged-in voltage, so I made it work around that fact.

Without monitoring at least one charge cycle and calibration and editing the source code values, there's a good chance it won't detect it properly. There's no automatic calibration and the readings get glitchy at different CPU loads due to voltage spikes during load.

You'll need to look at logs and find values that work/make sense. You can also check forks that are being more actively maintained, they may have a more streamlined calibration process, like https://github.com/bverc/retropie-status-overlay

@d-rez d-rez added the wontfix label Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants