“Mouse battery low” notification can't be disabled

Bug #1798166 reported by Ohto
268
This bug affects 55 people
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
Confirmed
High
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/108

---

I have a wireless mouse powered by non-rechargeable battery. The mouse works absolutely fine even with low battery level. Problem is, Ubuntu gives notifications about the battery level all the time.

I have had this issue for almost two months now, and mouse is working perfectly. I had to click away the notification almost every time I moved the mouse. I was then able to make the notifications appear less frequently, but the notification still always appear after some interval, and always after I log in.

Here are some specific things I have tried, they have not helped.

https://askubuntu.com/questions/1071406/how-to-disable-mouse-battery-low-notification-in-ubuntu-18-04

1)
Description: Ubuntu 18.04.1 LTS
Release: 18.04

2)
I assume the packet in question is notify-osd, not sure.
notify-osd:
  Installed: (none)
  Candidate: 0.9.35+16.04.20160415-0ubuntu2
  Version table:
     0.9.35+16.04.20160415-0ubuntu2 500
        500 http://fi.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

3) I expected that no notifications would appear when notifications are set to off

4) Mouse battery low - notification always appears
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC0D0p: ohto 2927 F...m pulseaudio
 /dev/snd/controlC0: ohto 2927 F.... pulseaudio
 /dev/snd/controlC1: ohto 2927 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2018-07-28 (79 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M.
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
Package: linux (not installed)
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-36-generic root=UUID=a59cc41b-0147-4609-b6c5-75fa912d2396 ro quiet splash vt.handoff=1
ProcVersionSignature: hostname 4.15.0-36.39-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-36-generic N/A
 linux-backports-modules-4.15.0-36-generic N/A
 linux-firmware 1.173.1
Tags: bionic
Uname: Linux 4.15.0-36-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 05/15/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F12
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: Z77X-UP5 TH-CF
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: To be filled by O.E.M.
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF12:bd05/15/2014:svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnZ77X-UP5TH-CF:rvrTobefilledbyO.E.M.:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: To be filled by O.E.M.
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect -p linux 1798166

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Ohto (ohto) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected bionic
description: updated
Revision history for this message
Ohto (ohto) wrote : CRDA.txt

apport information

Revision history for this message
Ohto (ohto) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Ohto (ohto) wrote : IwConfig.txt

apport information

Revision history for this message
Ohto (ohto) wrote : Lspci.txt

apport information

Revision history for this message
Ohto (ohto) wrote : Lsusb.txt

apport information

Revision history for this message
Ohto (ohto) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Ohto (ohto) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Ohto (ohto) wrote : ProcEnviron.txt

apport information

Revision history for this message
Ohto (ohto) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Ohto (ohto) wrote : ProcModules.txt

apport information

Revision history for this message
Ohto (ohto) wrote : PulseList.txt

apport information

Revision history for this message
Ohto (ohto) wrote : RfKill.txt

apport information

Revision history for this message
Ohto (ohto) wrote : UdevDb.txt

apport information

Revision history for this message
Ohto (ohto) wrote : WifiSyslog.txt

apport information

Changed in gnome-settings-daemon (Ubuntu):
status: New → Confirmed
Revision history for this message
Cristian Aravena Romero (caravena) wrote : Re: “Mouse battery low” notification appears even when all notifications disabled

Did this issue start happening after an update/upgrade? Was there a
prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.19 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc8

Revision history for this message
Ohto (ohto) wrote :

Earlier I used rechargeable batteries, I just recharged them when this notification appeared.

Kernel upgraded, problem still persists.
4.19.0-041900rc8-generic

tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Cristian Aravena Romero (caravena) wrote :

https://bugzilla.kernel.org/show_bug.cgi?id=201445
--
Cristian Aravena Romero (caravena)

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

https://marc.info/?l=linux-usb&m=153971734920554&w=2
--
Cristian Aravena Romero (caravena)

no longer affects: gnome-settings-daemon
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is rather on the GNOME side that on the kernel, there was a request to add those to the notifications panel in https://gitlab.gnome.org/GNOME/gnome-shell/issues/308

ideally it would be reported to GNOME upstream on https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues

description: updated
Revision history for this message
Cristian Aravena Romero (caravena) wrote :
Brad Figg (brad-figg)
tags: added: cscc
Revision history for this message
JP Meijers (jpm) wrote :

I'm using Ubuntu 20.04 and every time I start typing on my keyboard, the "Keyboard battery low" alert pops up, obscuring a large part of the screen. This is becoming really annoying. I do not want to completely disable all power notifications as I'm using a laptop and need to know when the laptop will die.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Retitling, it's now possible to disable the power notification but that's still not a great solution

summary: - “Mouse battery low” notification appears even when all notifications
- disabled
+ “Mouse battery low” notification can't be disabled
Changed in gnome-settings-daemon (Ubuntu):
importance: Undecided → High
Revision history for this message
Bhabba (bhabba) wrote :

> I'm using Ubuntu 20.04 and every time I start typing on my keyboard, the "Keyboard battery low" alert pops up, obscuring a large part of the screen. This is becoming really annoying. I do not want to completely disable all power notifications as I'm using a laptop and need to know when the laptop will die.

Exactly the same problem here!

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you take a screenshot of the notification?

Revision history for this message
Florian 'rephlex' Panzer (rephlex) wrote :

Device: /org/freedesktop/UPower/devices/mouse_hidpp_battery_0
  native-path: hidpp_battery_0
  model: MX Keys Wireless Keyboard
  serial: 408a-9b-b6-52-57
  power supply: no
  updated: Fr 12 Jun 2020 22:39:07 CEST (8 seconds ago)
  has history: yes
  has statistics: yes
  mouse
    present: yes
    rechargeable: yes
    state: discharging
    warning-level: low
    battery-level: low
    percentage: 10% (should be ignored)
    icon-name: 'battery-caution-symbolic'

Revision history for this message
Florian 'rephlex' Panzer (rephlex) wrote :

Some background: rechargeable batteries have 1.2V nominal (compared to 1.5V nominal for regular battteries). Any mouse will report levels around 10%, although the batteries will run for *many* months.

So users of rechargeable batteries will experience notifications about low levels basically after a few days of using a rechargeable battery.

Although you might very wel argue that "it's a hardware problem", notifications about low mouse / keyboard battery should be optional, not forced upon the user.

I have no way to disable the mouse / battery level alarm. (that is BUG #1)

Furthermore, if i use DND (which i don't really want to use, but just assumed), the mouse/keyboard alarms are the ONLY alarms that OVERRIDE DND, to "using DND" is not a solution, and DND does in fact disturb in some cases, which is BUG #2.

Revision history for this message
Gaurav Nelson (gauravnelson) wrote :

Hope this one gets fixed soon. The notification is quite annoying.

Device: /org/freedesktop/UPower/devices/mouse_hidpp_battery_1
  native-path: hidpp_battery_1
  model: Wireless Mouse
  serial: 4022-00-00-00-00
  power supply: no
  updated: Tue 07 Jul 2020 11:04:07 (30 seconds ago)
  has history: yes
  has statistics: yes
  mouse
    present: yes
    rechargeable: yes
    state: discharging
    warning-level: critical
    battery-level: critical
    percentage: 5% (should be ignored)
    icon-name: 'battery-caution-symbolic'

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Dan (dfeeny) wrote :

Noooooooo, please don't mark this as invalid. This is the most annoying notification on my wonderful Gnome desktop. It is so premature. First off, it thinks my MX Logitech keyboard is a mouse and secondly, it displays over and over long before the keyboard needs to be charged.

I use this keyboard with 2 other operating systems and none of them have this issue.

Revision history for this message
Ben Landin (blastyr) wrote :

This bug is NOT invalid. This issue has remained unaddressed for years. Worse still, workarounds that used to mitigate the problem (dconf tweaks, etc) no longer seem effective.

PLEASE, do not close this bug.

Revision history for this message
Cristiano (cristiano-moraes) wrote :

If I understood correctly this bug was invalidated as a Linux bug only, not as a GNOME issue. As a GNOME (or more specifically as "gnome-settings-daemon package") it is not only valid, but its priority is set to high. It makes sense to me.

Revision history for this message
Florian 'rephlex' Panzer (rephlex) wrote :

Clarification: this bug ist not about wrong battery Level measurements (Nobody reported that), it's about users being unable to disable notifications. The notification is shown even when in DND mode.

Revision history for this message
Renne (renne) wrote :

The battery warning stays on top window layer all the time and covers real important warnings and information, e.g. the task bar of a window.

It is worse if you use virtual machines as you e.g. cannot read notifications like to disable the capture of mouse and keyboard on the host machine!

Revision history for this message
Vidarr Kerr (vidarr) wrote :

This needs a solution. Not being able to turn of the notifications is not acceptable. Thanks.

Revision history for this message
Florian 'rephlex' Panzer (rephlex) wrote :
Revision history for this message
Florian 'rephlex' Panzer (rephlex) wrote :

Follow-up to Comment #36: Although patching upower fixes the issue, gnome-settings-daemon is still broken, since disabling notifications won't disable all notifications.

Revision history for this message
Shock (mmiron) wrote :

This has been fixed on the GNOME side. Can we have this backported?
I'm willing to do the backport, if it will get merged.

Revision history for this message
Jon Grah (forevermaat) wrote (last edit ):

I'm using Ubuntu 20.04.4 LTS and GNOME 3.36.8

Still having this problem. Very surprised it has lasted this long. In any case, if it is fixed, will this change make it to the next LTS update?

edit:

the patch....noted above ( https://wrgms.com/disable-mouse-battery-low-spam-notification/ ) does work. Use the script where it says "For convenience, here's the script. You can run with:" and then use a terminal and run the wget request there. Took like 5 min to complete the patch. And I got 1 more alert when removing mouse usb. Then after that, no more alerts.

Thank you.

Revision history for this message
lsutiger (judelandry2002) wrote :

echo $XDG_CURRENT_DESKTOP
GNOME-Flashback:GNOME
OS is Ubuntu 20.04.6 LTS
I am still having this problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.