Bug 491676

Summary: Feature Request: Smarter low power notification?
Product: [Plasma] plasmashell Reporter: FishBoneEK
Component: Bluetooth in generalAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: wishlist CC: nate
Priority: NOR    
Version: 6.2.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description FishBoneEK 2024-08-13 15:44:23 UTC
SUMMARY
My bluetooth mouse is kinda low on battery (< 10%) and KDE keeps warning me about it, everytime the percentage reading changes. This time it's 8%, minutes later it's 9%, later 5%, secs later 4%, then 5% e.t.c. I know it's low but it can keep going for at least hours. Moreover, KDE sends notification everytime the reading changes (at least that's what I guess), and it's annoying, there's literally pages of past notification in the list.

I see ppl try to solve it by lowering the "low battery" threshold, but I think there must be a better approach, plus you need to change the setting according to every device that has a battery inside.
Like, if the battery is low (e.g. < 10%), then warn the user only when the battery reading reaches historically minimum value? 
E.g. :
10% (warns) -> 9% (warns) -> 10% (doesn't warn) -> 8% (warns) -> 5% (warns) -> 6% (doesn't warn) -> 7% (doesn't warn) -> 80% (reset historical minimum value, because the user likely changed the battery)

STEPS TO REPRODUCE
1. Have a bluetooth mouse
2. Use it till the battery nearly dies

OBSERVED RESULT
KDE spams notification

EXPECTED RESULT
Smarter notification

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION