A lightweight Windows tray application that shows the battery state of XInput-compatible Xbox controllers and warns when a battery is nearly empty.
This repository is a maintained fork of NiyaShy/XB1ControllerBatteryIndicator, focused on keeping the original small tray utility reliable on current Windows versions without turning it into a large background application.
The portable ZIP is the recommended download. Extract it anywhere and run XB1ControllerBatteryIndicator.exe.
- Windows 10 or Windows 11
- .NET Framework 4.8
- An XInput-compatible controller
- For reliable Xbox controller battery reporting, an Xbox Wireless Adapter or another dongle using Microsoft's proprietary Xbox wireless protocol
No .NET 10 runtime is required.
- Lightweight system-tray battery indicator
- Supports up to four XInput controllers
- Polls all controller slots every five seconds
- Rotates the visible controller every five seconds when multiple controllers are connected
- Approximate battery ranges: 0–10%, 10–40%, 40–70% and 70–100%
- Wired and waiting-for-data states
- Low-battery Windows toast notifications with a configurable Low (10–40%) or Empty (0–10%) threshold
- Optional built-in Windows low-battery warning sound and looping warning sound
- Auto / Light / Dark tray theme modes, with live Windows theme tracking in Auto mode
- Optional auto-hide when no controller is connected
- Optional startup with Windows
- Non-blocking update checking with a 5-second network timeout, manual Check now option, and dismissed-version memory
- Lightweight rotating diagnostics log under
%LOCALAPPDATA%\\XB1ControllerBatteryIndicator
XInput exposes four coarse battery states rather than an exact percentage, so this application shows their approximate charge ranges: 0–10%, 10–40%, 40–70% and 70–100%.
Version 1.3.3.0 consolidates the useful maintenance work from newer forks while preserving the original behaviour:
- Removed the abandoned SharpDX and SharpDX.XInput dependencies
- Calls Windows
xinput1_4.dlldirectly through P/Invoke - Polls controller state every five seconds, matching the five-second multi-controller display rotation
- Prevents persistent polling errors from creating a high-CPU retry loop
- Preserves the connected-but-waiting-for-battery-data state
- Prevents false low-battery alerts for wired or still-initializing controllers
- Shows documented approximate percentage ranges instead of vague Empty / Low / Medium / Full labels
- Tracks low-battery sound state independently for each controller
- Uses the Windows Exclamation system sound for battery warnings instead of requiring a custom WAV file
- Lets you choose whether warnings begin at Low (10–40%) or only at Empty (0–10%)
- Can hide the tray icon while no controller is connected
- Adds Auto / Light / Dark theme override without losing live theme detection in Auto mode
- Adds a 1 MB rotating diagnostics log that records state changes and errors only
- Moves update checks off the startup path and remembers a dismissed release so it does not nag every launch
- Caches the Windows theme value instead of reading the registry on every icon refresh
- Keeps the theme watcher alive for reliable theme changes
- Removes redundant translation-resource rescans
- Removes the old Microsoft Windows API Code Pack dependency by inlining the tiny shell interop pieces actually used
- Retargeted from obsolete .NET Framework 4.5.2 to .NET Framework 4.8
- Uses HTTPS/TLS 1.2 for update checks and points them to this fork
- Adds reproducible Windows CI builds and automated GitHub releases
See CHANGELOG.md for the release history.
The original project is known to work with XInput controllers including:
- Xbox 360
- Xbox One model 1537 / 1697
- Xbox One Elite model 1698
- Xbox One S model 1708
- Xbox Elite Wireless Controller Series 2 model 1797
- Xbox Series X|S controller model 1914
Other XInput-compatible controllers may work as well.
Xbox controllers connected through Bluetooth may report no battery information or an incorrect battery level through XInput. This is a Windows/XInput limitation inherited from the original project, not something the tray application can reliably correct.
For the most reliable battery reporting, use the official Xbox Wireless Adapter or another compatible Xbox wireless dongle.
The upstream discussion is available in NiyaShy issue #49.
A newly connected controller can briefly appear as waiting for battery level data. XInput may need several seconds and controller activity before battery information becomes available.
The project targets .NET Framework 4.8.
From a Visual Studio Developer PowerShell or another environment with MSBuild and NuGet available:
nuget restore .\XB1ControllerBatteryIndicator\XB1ControllerBatteryIndicator.sln
msbuild .\XB1ControllerBatteryIndicator\XB1ControllerBatteryIndicator.sln /m /p:Configuration=Release /p:Platform="Any CPU"The Release output is written to:
XB1ControllerBatteryIndicator\XB1ControllerBatteryIndicator\bin\Release\
Every pull request and master build is also compiled on a Windows GitHub Actions runner.
Please open an issue and include:
- Windows version
- Application version
- Controller model
- Connection method
- What happened and what you expected
- Whether the problem is repeatable
For Bluetooth battery-reporting problems, read the Bluetooth limitation above first.
Original application by NiyaShy.
This fork also incorporates selected maintenance ideas from bergi9's fork, while deliberately retaining the original lightweight application model and multi-controller behaviour. Translation contributions from the upstream project remain credited through the repository history.
Licensed under the GNU General Public License v2.