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

Handle "Not Charging" state in battery indicator #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcz
Copy link

@mcz mcz commented Apr 17, 2023

When the battery is has reached the target charge level, some devices use the status "Not Charging". LXpanel should not interpret this to mean "Discharging", but rather the same as "Full".

When the battery is has reached the target charge level, some devices
use the status "Not Charging". LXpanel should not interpret this to mean
"Discharging", but rather the same as "Full".
@mtasaka
Copy link
Contributor

mtasaka commented Aug 18, 2023

At least this is needed on Fedora (kernel). I have already applied this as:

https://src.fedoraproject.org/rpms/lxpanel/c/a8d4974ada8fa1b1300560a70b435819155c2fad

@mtasaka
Copy link
Contributor

mtasaka commented Aug 25, 2024

Still I would appreciate it if this is merged.

@ib
Copy link
Member

ib commented Aug 25, 2024

Checking for "Not Charging" in a function called battery_is_charging() would be extremely confusing to me.

I suggest just checking for not equal to "Discharging" instead.

In your commit message (where there is a stray "is", by the way), you should then add a list of the valid values.

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

Successfully merging this pull request may close these issues.

4 participants