Bug 457893 - Respect upower's "should be ignored" tag when determining whether or not to notify about low battery
Summary: Respect upower's "should be ignored" tag when determining whether or not to n...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (show other bugs)
Version: 6.2.4
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-14 20:14 UTC by legimet
Modified: 2024-12-18 21:40 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description legimet 2022-08-14 20:14:48 UTC
Every time I move my wireless mouse after leaving it unused for a few minutes, I get a notification that my mouse battery level is 10%. I get these notifications dozens of times a day, which is very annoying. The mouse can run for weeks/months on this low charge, and when it finally does run out, I can just pop in a new battery. So I would just like to disable mouse battery notifications altogether.

It seems that upower recognizes this, as "upower --dump" yields "percentage:          10% (should be ignored)" for the mouse in question.
Comment 1 legimet 2022-08-14 20:27:09 UTC
Actually, I just realized that there is an option to disable peripheral battery notifications. This solves my issue. However, maybe upower's "should be ignored" should be taken into account by default.
Comment 2 Tom Boshoven 2023-05-06 04:36:46 UTC
Confirming this issue with a Logitech Unifying Receiver.
Apparently if this shows up as "(should be ignored)" in upower, the number is invented and should not be used.
I'm not sure if there's a way to get a more reliable number out of upower as it stands. Perhaps the underlying reason this started happening is related to https://gitlab.freedesktop.org/upower/upower/-/issues/166 .

Solaar shows the battery level of the mouse as 90% and upower shows it as "5% (should be ignored)".
Every time the mouse wakes up (when moved after a bit of inactivity), the popup appears.

Disabling the popup helps, but it's not easy to find the setting.
Comment 3 huulong 2024-02-18 20:44:15 UTC
It's now easier to access the battery notification settings, by clicking on the settings icon on the notification itself. Or, at any time, go to:

System Settings > Notifications > Application-specific settings > Configure… > Power Management > Configure Events… which opens the same window

then select Peripheral Battery Low and disable the Play a sound and Show a message in a popup

This has a few limitations though:
- cannot distinguish peripheral types
- cannot change the threshold. I don't have an issue with notifying me when my mouse battery gets under 1% so I can prepare and buy new batteries, but I cannot even do that!

I found a few other tutorials that change the percentage directly in config files... except I found out the values there were 5 or 20, not 10, so it cannot be the right value.
Comment 4 cheekurudy 2024-11-16 08:46:00 UTC
Same here, using a Logi M235 with unifying reciever. Fedora 41