Bug 496929 - 10% battery notifications are not disappearing when the notebook's battery is currently higher than 10%
Summary: 10% battery notifications are not disappearing when the notebook's battery is...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 6.3.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Fernando M. Muniz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-02 13:20 UTC by Fernando M. Muniz
Modified: 2025-02-28 16:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.0
Sentry Crash Report:


Attachments
Multiple notifications of 5% battery piled up during unstable electricity. (150.42 KB, image/png)
2024-12-02 13:20 UTC, Fernando M. Muniz
Details
Issue on Plasma 6.3.1 (1.16 MB, image/png)
2025-02-27 07:58 UTC, Fernando M. Muniz
Details
Konsole (107.10 KB, image/png)
2025-02-27 17:28 UTC, Fernando M. Muniz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando M. Muniz 2024-12-02 13:20:22 UTC
Created attachment 176287 [details]
Multiple notifications of 5% battery piled up during unstable electricity.

The notifications for low battery don't disappear once the notebook has more battery percentage than the notification is informing.
As a side-effect, they can pile up unnecessarily.
Comment 1 Fernando M. Muniz 2024-12-02 14:15:37 UTC
Correction: It's 10%, not 5%. I didn't realize that the percentage decreases.
Comment 2 TraceyC 2024-12-11 01:06:37 UTC
Thanks for the bug report. I'm not able to reproduce this on git-master. It looks like this has been fixed.
I ran the battery down on my laptop. It notified me at 10%, and the notification changed to 9% when the battery got down to that
When  I plugged it into AC power, the notification was automatically dismissed.

This fix should reach your system when Plasma is updated to 6.3.0. Feel free to re-open this report if you still see the same problem at that point.
Comment 3 Fernando M. Muniz 2025-02-27 07:58:36 UTC
Created attachment 178934 [details]
Issue on Plasma 6.3.1
Comment 4 TraceyC 2025-02-27 17:24:37 UTC
Well darn. Can you get us some information about your battery power when the notification is misbehaving?


Get the laptop battery power with acpi:
$ acpi -b

Get the list of devices upower has with this
$ upower -e

Get information about the device in question, for example the laptop battery:
upower -i /org/freedesktop/UPower/devices/battery_BAT0

Thanks!
Comment 5 Fernando M. Muniz 2025-02-27 17:28:48 UTC
Created attachment 178951 [details]
Konsole

[tuti@archlinux ~]$ acpi -b
bash: acpi: comando não encontrado
[tuti@archlinux ~]$ upower -e
/org/freedesktop/UPower/devices/battery_BAT1
/org/freedesktop/UPower/devices/line_power_ACAD
/org/freedesktop/UPower/devices/DisplayDevice
[tuti@archlinux ~]$ upower -i /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               SMP
  model:                L20M3PC2
  serial:               4516
  power supply:         yes
  updated:              qui 27 fev 2025 14:27:05 (27 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    warning-level:       none
    energy:              43,24 Wh
    energy-empty:        0 Wh
    energy-full:         43,24 Wh
    energy-full-design:  45 Wh
    energy-rate:         0 W
    voltage:             12,976 V
    charge-cycles:       51
    percentage:          100%
    capacity:            96,0889%
    technology:          lithium-ion
    icon-name:          'battery-full-charged-symbolic'
Comment 6 TraceyC 2025-02-27 17:38:07 UTC
For acpi, it looks like you need to install that first.
In the upower output, I see the battery is currently fully charged. So, you're saying the notification is still being popped up when the battery is fully charged?
Comment 7 Fernando M. Muniz 2025-02-27 17:43:33 UTC
(In reply to TraceyC from comment #6)
> For acpi, it looks like you need to install that first.
> In the upower output, I see the battery is currently fully charged. So,
> you're saying the notification is still being popped up when the battery is
> fully charged?

I assume that these are my current status. There's no battery history? That way I can sent the status of the moment that screenshot has in its name.
-
[tuti@archlinux ~]$ acpi -b
Battery 0: Full, 100%
Comment 8 TraceyC 2025-02-27 17:47:08 UTC
What I need to confirm is the battery state while the multiple battery notifications are happening.
Comment 9 Fernando M. Muniz 2025-02-27 18:25:20 UTC
(In reply to TraceyC from comment #8)
> What I need to confirm is the battery state while the multiple battery
> notifications are happening.

Maybe I need to create another issue, since it seems that the 5% and 10% battery notifications are just one now.
Comment 10 TraceyC 2025-02-27 20:02:34 UTC
Are you still able to reproduce the original problem reported in the first comment? e.g.

Multiple notifications of low battery that don't disappear after the battery is above that percentage?
Comment 11 Fernando M. Muniz 2025-02-27 20:03:52 UTC
(In reply to TraceyC from comment #10)
> Are you still able to reproduce the original problem reported in the first
> comment? e.g.
> 
> Multiple notifications of low battery that don't disappear after the battery
> is above that percentage?

Only that one notification.
Comment 12 TraceyC 2025-02-27 20:34:16 UTC
Thanks for clarifying. Let's close this out for now. If the problem re-appears, feel free to reopen it.