ProjectsMouse Battery
The Mouse Battery window on its Level tab, with a mouse picture filled to 64%, a battery health box, and a list of the mice

Linux desktop

Mouse Battery

A Logitech mouse's battery in the Linux tray, with a health window

GitHubLatest release
9releases between September 28 and October 17
3package formats per release
About 42charges before it judges battery health

Mouse Battery shows the battery level of a Logitech mouse in the Linux system tray, with a battery window that tracks how the battery holds up over time. It warns at 10% and again at 5%, and with more than one mouse it follows the one in use. It isn't affiliated with Logitech.

How it works

A small service reads the mice and saves each one's history in a SQLite database. The tray app and the battery window ask it over the system bus, and it's the only program the package lets open the receiver or cable. The service limits how often it reads, with five reads at once for each account and then one every 30 seconds.

Hours per charge over time as a line chart, with a health box saying the battery is doing as well as when tracking began
The Hours per Charge tab, with the health box, charge cycles, and charging speed.

Packages come for Debian, Fedora, and Arch, and each file in a release after 1.1.0 carries a signed record of how it was built, which gh attestation verify checks. The README lists the mice it's been tested with, and the known limits sit beside them.

Highlights

  1. Reads mice the kernel leaves aloneLinux doesn't provide battery readings for some mice on its own, such as the PRO X3 SUPERSTRIKE's receiver and cable, so Mouse Battery talks to them directly in Logitech's HID++ protocol. Mice the kernel does drive are read through UPower.
  2. One sandboxed service opens the receiverThe package lets only its own service open the receiver, and that service runs as its own system user in a systemd sandbox. The udev rule hands over an interface only when its report descriptor (the device's own description of itself) passes the app's check.
  3. A health judgment, with honest limitsAfter about 42 charges it compares how the battery drains and charges with when tracking began, and warns at 15% worse. Until then it says it's still learning, and it says so when a mouse reports too little.

Built with

  • Python
  • PyQt6
  • HID++
  • D-Bus
  • systemd
  • SQLite

Details

Started
Status
Released, v1.2.4 on October 17, 2026
License
GPL 3.0 or later
Source
Public