Skip to content

About

.Net C# Application displaying battery level of all wireless devices connected to the computer (Windows only)

Topics

Resources

Stars

31 stars

Watchers

2 watching

Forks

Repository files navigation

🔋Peripheral Battery Monitor

Banner Gif of Tray

Introduction

Peripheral Battery Monitor adds a battery icon to your system tray, so you can see the remaining life of any wireless devices connected.

Device supported :

  • Bluetooth Low Energy (BLE) devices (earbuds, fitness bands, modern headsets, BLE mice/keyboards)
  • Bluetooth Classic (BR/EDR) devices (older headsets, gaming headsets, AirPods on Windows)
  • Apple magic mice/trackpads/keyboards devices
  • Logitech LIGHTSPEED devices (PRO X Wireless headset, PRO X2 LIGHTSPEED, G915 X TKL ...)
  • Razer wireless mice (Viper Ultimate, DeathAdder V2/V3/V4 Pro, Basilisk V3 Pro, Orochi V2, ...)
  • SteelSeries Arctis Nova wireless headsets (Nova 5/5X, Nova 7/7P/7X and editions)
  • 8BitDo controllers in DInput mode (Ultimate 2 Wireless, Ultimate 3, Pro 2, Pro 3, SN30 Pro, SF30 Pro)
  • PlayStation controllers over USB or Bluetooth (DualSense, DualSense Edge, DualShock 4)
  • ATK / VXE / Pulsar / Kysona wireless mice, on their USB dongle or a cable (ATK Blazing Sky X1 V2, VXE R1 SE+, Pulsar X2 V2, Kysona M600, ...)

Features:

  • Notifications: Whenever a device drops below 20% a balloon notification fires (once per device, per low-battery transition).
  • Auto Startup: When activated, the application starts automatically at Windows logon.
  • Adjustable Refresh Rate: Configure how often the app polls battery levels (1 min – 24 h).
  • One tray icon per device: Optionally show a separate tray icon for every paired device instead of one aggregate icon for the lowest battery.
  • Multiple languages: English, French, German, Italian, Spanish and Simplified Chinese.
  • Hide unknown-battery devices: Optionally hide devices whose battery cannot be read from the tray, balloon tooltip and Info popup.
  • Estimated time left: The Info popup shows roughly how long each device will last (~45 min, ~8 h, ~3 days), worked out from how fast it has been draining since it was last charged. It appears once the device has dropped at least two steps over at least an hour; slow devices like mice can take a few days.

Quick Start Guide

Follow the directions below to get started!

Step 1. Download PeripheralBatteryMonitor.exe from the latest release. Step 2. Double-click PeripheralBatteryMonitor.exe to start it. Step 3. Open the system tray overflow popup and locate the battery icon. Step 4. Double-click the icon to see the per-device list, or right-click for Settings / About / Exit.

Auto-start is off by default — enable it in Settings if you want the app to launch with Windows.

⚙️Settings and Configuration⚙️

Settings Banner Photo

How to Access Settings

When the application is running, right-click the battery icon in the system tray and select Settings. All changes apply immediately — no restart required.

🔧Troubleshooting🔧

  • Battery icon not in system tray

    • Check the system tray overflow / pop-up area
    • Manually start the application again

      On first startup the icon usually appears in the overflow flyout, not the main tray. Drag it to the main tray to keep it visible. If it's nowhere to be found, the application may have failed to start — try launching it again.

  • Battery shows -1% or ?

    • Wait for the next refresh tick and check again
    • Some devices simply don't report battery to Windows

      The app polls every 5 min by default. A newly paired device will show as unknown until the first poll completes. If a device still reports nothing after several refreshes, it likely doesn't expose battery via any API Windows can read — enable Hide devices with unknown battery level in Settings to suppress it from the UI.

  • Apple Magic device works but shows no battery

    • Check whether another driver sits on the device's HID stack: pnputil /enum-devices /instanceid "<device instance id>" /stack
    • Look for an Apple line in log.txt that says no battery

      Magic Mouse, Keyboard and Trackpad report their battery on a separate vendor-defined HID collection. A filter driver can replace the device's report descriptor and remove that collection, while pointing and typing keep working. Apple's Boot Camp applewirelessmouse driver does this. The log line then says 0 vendor-defined. Remove the filter driver to get the battery reading back.

  • Bluetooth Classic device not appearing

    • Make sure the device is paired in Windows Settings → Bluetooth & devices
    • Make sure the device is currently connected (powered on)

      Only paired devices are tracked. Unpaired devices won't be picked up. Battery for Classic devices depends on Windows itself surfacing the value through device properties, which not every driver does. When it does, the value sits either on the Bluetooth endpoint or on the headset's Hands-Free profile node; both are read.

  • Not auto-starting on system startup

    • Confirm Launch application on startup is checked in Settings
    • Verify the entry is enabled in Task Manager → Startup tab

      Auto-start is off by default. Enable it in Settings. If it's still not running on logon, Task Manager may have disabled the startup entry — re-enable it there.

  • Not sending low-battery notifications

    • Confirm Enable notifications is checked in Settings
    • Make sure Windows Focus Assist / Do Not Disturb isn't suppressing balloons
    • Exit and restart the application if the problem persists

      A notification fires once per low-battery transition (when a device drops to ≤ 20% after being above it). It won't repeat every refresh while the device stays low.

  • Your device isn't listed, or reads the wrong level

    • Open the log: tray icon → right-click → Settings → Open log folder
    • Attach log.txt to your issue

Build from source

Requires .NET SDK (8.0 or newer).

dotnet build PeripheralBatteryMonitor.sln -c Release

The built executable is src/PeripheralBatteryMonitor.App/bin/Release/net48/PeripheralBatteryMonitor.exe — still a single file: PeripheralBatteryMonitor.Core.dll is embedded inside it.

Layout

src/PeripheralBatteryMonitor.Core/   device discovery and battery reading. No UI.
src/PeripheralBatteryMonitor.App/    WinForms tray icon, Settings and Info windows.

About

.Net C# Application displaying battery level of all wireless devices connected to the computer (Windows only)

Topics

Resources

Stars

31 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages