elementary / wingpanel-indicator-power

Wingpanel Power Indicator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Battery Indicator occasionally doesn't show charging status

kmandarin-orange opened this issue · comments

Prerequisites

  • I have searched open and closed issues for duplicates.

Describe the bug

Intermittently, the battery icon will not change to show charging status when the laptop is plugged in. The computer is charging however, as the "online" output in the screenshot below shows that charging is active and working.
Charging Status

To Reproduce

As of now I haven't found the pattern to reproduce this, but usually this occurs after about +16 hours of uptime. It might be related to suspend since I use that frequently.

Expected behavior

When the power cable is plugged in I expect the indicator to show the charging icon until it hits 100%.

Screenshots or screen recordings

Logs

Unfortunately I couldn't find any of the applicable logs for wingpanel, if anyone does know where to go for that I'll add logs (I'm fairly new to this, so thanks for your patience).

Platform Information

Device Info

  • I'm using the latest released stable version

Additional context

I've also discovered that if I log out and log in again the problem does disappear for a while. Like I mentioned earlier this bug might be related to the suspend feature, since my computer suspends at least once or twice a day, but I haven't taken note of that myself so I can't be sure.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Quick update to show that after 6 months of updates the issue persists on my hardware as well, small kernel and Ubuntu updates haven't changed things. I have mostly noticed it after suspending my laptop overnight, but I've noticed this a little less overall.

Here's terminal output and system info:
Terminalshot
Settings

I think the problem is with upower not with io.elementary.wingpanel.power

Example:

First step: percentage 95% (not charge icon)

Second step: plug the charger -> percentage 95% (not charge icon)

Thirth step: percentage increase 95% -> 96% -> icon is updated.

I have the same issue.

Captura de pantalla de 2023-11-09 10 18 27

I have my BIOS setup so that it stops charging when it gets to 80%. In this case I forgot to unplug it so it charged to 100% and then after a few minutes unplugged dropped to 98%. The thing is, my battery is not charging because of the BIOS setting but it is plugged. Apparently elementary does not recognize this state as plugged.

$ upower -i `upower -e | grep 'BAT'`
  native-path:          BAT1
  vendor:               SAMSUNG Electronics
  power supply:         yes
  updated:              jue 09 nov 2023 10:14:33 (11 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               pending-charge
    warning-level:       none
    energy:              69,6192 Wh
    energy-empty:        0 Wh
    energy-full:         71,04 Wh
    energy-full-design:  80,216 Wh
    energy-rate:         26,4032 W
    voltage:             16,286 V
    charge-cycles:       150
    percentage:          98%
    capacity:            88,5609%
    technology:          lithium-ion
    icon-name:          'battery-full-charging-symbolic'