Bug 500838

Summary: Low battery notification is not disappearing when the notebook's battery is reconnected to AC even when 100% charged
Product: [Plasma] plasmashell Reporter: Fernando M. Muniz <fernandommuniz>
Component: Power management & brightnessAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: minor CC: kde, kdedev, nate
Priority: NOR    
Version First Reported In: 6.3.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Happened at 2025-02-27 04:56:53 (BRT)
Low battery notification while charging + Konsole battery info.
Low battery notification at 100% battery + Terminal's battery info.

Description Fernando M. Muniz 2025-02-27 20:44:04 UTC
Created attachment 178958 [details]
Happened at 2025-02-27 04:56:53 (BRT)

After a long blackout, I woke up and saw this notification, I made sure to include the system info in it.
Comment 1 Fernando M. Muniz 2025-02-27 20:50:48 UTC
This is similar to Bug 496929 , with the difference being that there's only one low battery notification now, instead of 10% and another for 5%.
Comment 2 TraceyC 2025-02-27 22:42:38 UTC
I'm not able to reproduce this on git-master.
I ran the battery down on my laptop. It notified me at 10%. At 9% the notice changed to 9%.
When  I plugged it into AC power, the notification was automatically dismissed.

Can you please send a screenshot that has both
- The low battery notification showing
- A Konsole window with the output of
upower -i /org/freedesktop/UPower/devices/battery_BAT1

Thanks!
Comment 3 Fernando M. Muniz 2025-02-27 22:50:28 UTC
(In reply to TraceyC from comment #2)
> When  I plugged it into AC power, the notification was automatically
> dismissed.

My cable was never unplugged, it had insufficient charging which later came back, just like Bug 496042
I guess I'll have to shut down my house's power to emulate it when I'm alone.
Comment 4 Fernando M. Muniz 2025-02-28 19:45:31 UTC
Created attachment 178982 [details]
Low battery notification while charging + Konsole battery info.

1- Unplug the AC cable and wait for the low battery notification.
2- Have the 10% notification transform into the 5% notification with the suspend button.
3- Wait for the system to suspend itself.
4- Close the notebook lid.
5- Plug the AC cable and wait enough time to charge 11% or more.
6- Open the notebook's lid, wake it up with the power button, and log back in.


[tuti@archlinux ~]$ upower -i /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               SMP
  model:                L20M3PC2
  serial:               4516
  power supply:         yes
  updated:              sex 28 fev 2025 16:36:37 (27 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              6,98 Wh
    energy-empty:        0 Wh
    energy-full:         43,26 Wh
    energy-full-design:  45 Wh
    energy-rate:         29,388 W
    voltage:             11,561 V
    charge-cycles:       51
    time to full:        1,2 hours
    percentage:          16%
    capacity:            96,1333%
    technology:          lithium-ion
    icon-name:          'battery-caution-charging-symbolic'
  History (charge):
    1740771397  16,000  charging
    1740771337  15,000  charging
  History (rate):
    1740771397  29,388  charging
    1740771367  29,355  charging
    1740771337  29,321  charging
Comment 5 Fernando M. Muniz 2025-02-28 21:35:34 UTC
Created attachment 178986 [details]
Low battery notification at 100% battery + Terminal's battery info.
Comment 6 TraceyC 2025-03-01 01:46:31 UTC
(In reply to Fernando M. Muniz from comment #4)
> Created attachment 178982 [details]

Thanks for the screenshot and the detailed steps to reproduce. Even following those, I'm not able to reproduce the bug on git-master or on 6.3.2. As soon as I plug either laptop in, the 5% battery notification is dismissed. I'll leave this open in case someone else can reproduce or has further insight.
Comment 7 Fernando M. Muniz 2025-03-01 21:17:31 UTC
But what was the Konsole command for?
Comment 8 TraceyC 2025-03-03 20:18:01 UTC
(In reply to Fernando M. Muniz from comment #7)
> But what was the Konsole command for?

The `upower` command was so we could see that the battery charge was reported as, from the OS.
Comment 9 Nate Graham 2025-05-19 19:51:20 UTC
After a bunch of system updates, can you still reproduce the issue with Plasma 6.3.5 or later?
Comment 10 Fernando M. Muniz 2025-05-20 00:11:15 UTC
The issue is not happening in Plasma 6.3.5.