Bug 471636 - Notification about low battery fails to disappear when power cord is plugged in during suspend
Summary: Notification about low battery fails to disappear when power cord is plugged ...
Status: RESOLVED DUPLICATE of bug 507203
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.2.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-29 15:44 UTC by Raphaël Jakse
Modified: 2025-08-06 23:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Jakse 2023-06-29 15:44:18 UTC
It's the "low battery: 98%" bug. I'm quite entertained by this bug, because it's mostly harmless and quite comical. Bear with me.

SUMMARY

The low battery notification is duly updated when the reported charge  percentage changes. Which is a nice touch. Very KDE-like. So much polish. We are taken by the hand. Unfortunately, it does not seem to check whether the percentage still matches the need for displaying the notification. Therefore, you can trick it into telling a joke. See the steps.

(well, you guessed the steps; unfortunately, I had to spoil the story in the title for a good bug report).

STEPS TO REPRODUCE
1. Use your laptop until a low battery notification shows up.
2. Suspend
3. Plug the computer while it's asleep
4. Wait a while
5. Wake it up and unlock

OBSERVED RESULT

Notice how the low battery notification is still there, complete with the updated percentage.

EXPECTED RESULT

The battery notification should be gone.

Now, a static notification that would not update the percentage would have the same issue, but with the updated charge, it's extra fun.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: updated openSUSE Tumbleweed
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

Related to #463034. But I believe they should be distinguished because #463034 seems to describe something that implies that some code detecting AC plug is not working correctly. We still want the notification to be hidden as soon as the AC is plugged, not only when the percentage is higher than the limit.
Comment 1 Nate Graham 2023-09-01 16:49:24 UTC
Makes sense. We get rid of the "Low Battery" notification when the cord is plugged in, but if that happens during suspend, we don't get the signal for it so we don't notice that it's happened. So I guess we need to explicitly check again after resuming from suspend, too.
Comment 2 Nate Graham 2025-08-06 23:26:25 UTC

*** This bug has been marked as a duplicate of bug 507203 ***