

You'll have to tweak it for gnome, if that is what you use.įor xfce next command closes the last notification window: wmctrl -i -c $(wmctrl -lx | awk '/xfce4-notifyd\.Xfce4-notifyd//upower-silent
#Windows bluetooth battery status blank install
Therefore there is a small chance to close the wrong notification if it appears at almost the same time as the one with the message summary "Mouse battery low".ĭependancies: sudo apt install python-dbus wmctrl -y This is not perfect, because it closes the last notification window in the window stack. You could use a script that closes the message as soon as it opens (with the delay of 0.5 seconds, it takes time for the message window to open). It is not a perfect answer if you have a laptop, but it is fine for a desktop computer and better than filling landfill with batteries or being nagged. Alter the "percentage-low" setting to what you want. Setting is generically for batteries though, so if you're on a laptop or a UPS then you will be altering the warning levels for those, which may be non ideal.įor Ubuntu 17.10 (Artful Aardvark) go to org → gnome → settings-daemon → plugins → power. You need dconf for command line or dconf-editor for the GUI version (for GUI you'll need to do sudo apt-get install dconf-tools, although that package may not be available for newer versions, so just get dconf-editor and its dependencies). The best answer I've found was to lower the Power Plugins critical level warning. So I use batteries in other things and keep the dead ones for my M570. Reasons are similar my Logitech M570 is fed on "dead" batteries as it lasts MONTHS on a very low voltage alkaline. See the report for updates revolving this issue.

It appears to be a bug in the gnome-settings-daemon. The marked correct answer might not apply anymore.

People should care about that and have an option to turn the notifications off. Wasting fine batteries is not a very good design. With the OS constantly reminding me that it will soon stop working. UPDATE: It turns out the mouse ran for another ten days or so after the initial notification. Pointers and suggestions will be greatly appreciated! I am running Ubuntu 17.10 with GNOME Shell. Realizing I might sound like a grumpy old man I am not going to replace my batteries that are good for another month as a workaround. The notification has no timer and will stay visible until I close it. Yes, battery is low, but at 0% (as reported) it will go on for another week at least. I do not want them and I do not need them. Every time it wakes up from sleeping mode and reconnects over Bluetooth I get a notification. Countless times over the past few weeks I have been notified about the low battery in my wireless mouse.
