Is there a way to monitor the mouse's battery status in Kubuntu? I have a Logitech Wireless Mouse M510 and in Windows I can use the default software (from official site) to monitor battery status and do other things like editing some mouse buttons etc.

Is there any software to do same thing or just monitoring battery status (applets, widgets, software etc.)?

  • 4
    It appears that only half a year ago some first work was done to get this information through the HID USB interface in the Linux kernel. See this wonderful article if you're interested in technical background. (not an answer, so posting a comment) – gertvdijk Jan 26 '13 at 21:31
  • 1
    More specifically, only since June 2012 it's known how the HID++ protocol Logitech uses actually works. This protocol has been released into the public, so it's just a matter of time for this to be included in Ubuntu. Logitech HID++ specification document - it includes "0x1000 Battery Unified Level Status" – gertvdijk Jan 26 '13 at 21:46
  • Would love this for the Logitech G703 as well. libratbag/piper considered this but they appear to be deferring to GNOME for now. – qid Jan 13 '19 at 4:27

From the CLI, UPower can do this:

$ upower --dump
Device: /org/freedesktop/UPower/devices/mouse_0000o0000o0000x0000
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9.4/3-9.4:1.2/0000:0000:0000.0000/0000:0000:0000.0000
  vendor:               Logitech, Inc.
  model:                Anywhere MX
  serial:               00000000
  power supply:         no
  updated:              Sun 10 Jul 2016 04:47:36 AM EDT (84 seconds ago)
  has history:          yes
  has statistics:       no
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          95%
    icon-name:          'battery-full-symbolic'

From the GUI, mate-power-statistics (from the MATE Power Manager project) or gnome-power-statistics (from the GNOME Power Manager project) can do this.

gnome power statistics

  • 3
    Does not work with my Logitech G900 :-( – Philippe Gachoud Mar 12 '17 at 7:53
  • How do you get so many data points? At the largest 'data length' it shows only 2 data points for my mouse (one at a time my PC was in stand-by!?) and none at all for my battery. It seems it doesn't record in the background like it should be. – Mark Jeronimus Nov 27 '18 at 13:29
  • 2
    Does not work for Logitech G Pro Wireless. – Michal Przybylowicz Jan 12 '19 at 13:39

Using the Solaar program as described in this answer, you can obtain the battery status.

Screenshot of Solaar

warning: technical gibberish below, feel free to skip if you are not interested in hacking this mouse

The M510 is a HID++ 1.0 device judging from the register dump at the Solaar repository. The HID++ 2.0 document that include Battery Unified Level Status as linked by gertvdijk are irrelevant here.

As noted on https://git.lekensteyn.nl/ltunify/tree/registers.txt, the "07" register shows the battery status. If you want to learn more about the technical side, you can read my article about reverse engineering the protocol.

  • hi, I have one logitech recevier and both my M150 and my logitech keyboard are connected to it, but the solaar program only recognizes the keyboard and it doesn't find the M150 – Frank Sep 10 '13 at 9:31
  • it's not paired that's the problem. btw it can't find the command solaar show: gist.github.com/anonymous/72f58a989bdf4d3f92e3 – Frank Sep 10 '13 at 13:01
  • the problem is that it does not recognize the mouse, I tried to pair it with no success. – Frank Sep 10 '13 at 17:19
  • With either program? To pair, you must start the pairing proces and have your mouse (M510, not the wired M150 right?) powered off. Then turn it back on and the pairing proces should be complete. Are you sure there is sufficient battery in the mouse? Isn't there a second receiver plugged into another machine? What keyboard do you have and what receiver is it? Unifying, Nano or something else? (please answer all questions, that saves me from repeating them) – Lekensteyn Sep 10 '13 at 17:30
  • the pairing process doesn't work with solaar, I did not try ltunify. I have M510. I have tried to turn if off and then turn it on (many times). The is sufficient battery. There is only one receiver but it is used for both mouse and keyboard, solaar program only recognizes my keyboard logitech K360. it's a logitech receiver. – Frank Sep 11 '13 at 17:36

You can go to your power settings. There you will hopefully have the battery left of any device that runs on batteries.

In my distro (Mint) I can see the battery remaining of my laptop and my mouse by clicking in the power icon at the status bar (bottom-right).

I can also go to power management, and there is a "Batteries" tab, and there it is too.

I don't know if this is available in all distros, but it is so easy to check that there's no harm in giving it a try.

  • I can see my mouse (Logitech M705) battery level by default from a similar place in elementary OS (0.4, Loki). The thing is that I am not sure the battery level shown is correct. It has been 100% for several weeks now. – Magnus Teekivi Feb 7 '18 at 8:37
  • 1
    @MagnusTeekivi Late reply, and by now you probably already know how little battery that mouse uses. I have the same and still haven't changed the battery after 3+ years. So, yeah, I think 100% for the first few weeks sounds reasonable – Daniel Reina Feb 3 '20 at 21:32

Search "power" in the GUI and pull up power statistics. Click mouse on the left, the default will be the laptop battery. Note this will not work if the battery is already dead (as I just learned).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.