Repository navigation
Releases
Releases · ryan-mant/AreYouLowBattery
v0.7.0
[v0.7.0] — 2026-12-01 — Theme Selector, Custom Color Customizer, Vice Neon & Markdown Updater
🎨 Theme Engine & Color Customizer (PR #38, #16)
- Built-in Theme Presets & Custom Palette (
areyoulowbattery/themes.py):- Added Midnight Dark, Clean Light, and Vice Neon presets, plus per-token Custom color overrides persisted in
settings.json.
- Added Midnight Dark, Clean Light, and Vice Neon presets, plus per-token Custom color overrides persisted in
- Appearance & Theme Customizer (
areyoulowbattery/theme_dialog.py):- Interactive dialog with preset cards, 8 color pickers (
QColorDialog) for window, cards, buttons/accent, borders, and each battery bar state, plus a live tray icon preview.
- Interactive dialog with preset cards, 8 color pickers (
- Full UI & Tray Coverage:
- Applied active themes live across
BatteryPopup,DeviceCard,RoundedBatteryBar, single & multi-device tray icons (including filled inner disc for Light Mode legibility), context menus,DeviceDiscoveryDialog,UpdateDialog, and rename/type/protocol dialogs.
- Applied active themes live across
🌐 i18n, PT-BR & Updater Improvements (PR #38, PR #39)
- Formatted Release Notes (
areyoulowbattery/updater.py):UpdateDialognow renders release notes as formatted Markdown (setMarkdown()) with clickable links (setOpenExternalLinks(True)).
- PT-BR & UI Polish:
- Localized charging ETA strings (
format_eta()), fixed mnemonic&escaping in menus/buttons, and enabled word-wrapping on PT-BR discovery banners and empty-state labels.
- Localized charging ETA strings (
🧪 QA & Test Isolation (#31)
- Isolated
test_game_mode_polling_suppresses_hardware_queriesfrom host Bluetooth/sysfsdevices. - Added automated theme, customizer, Markdown updater, and cross-language (
en_US/pt_BR) × 3-theme UI tests (121/121 tests passing).
v0.6.3
[v0.6.3] — 2026-11-30 — Sleep-Guard Timer Fix, Debian .deb Package & AUR Recipe
🐛 Bug Fixes (PR #35)
- Sleep-Guard Offline Timer Reset (
areyoulowbattery/engine.py):- Fixed a bug where returning cached offline results (
force=False) overwroteself._offline_devices[name]with a freshtime.time()every 10s, preventing the 300s Sleep Guard from ever expiring until the user manually clicked the tray icon (force=True). - Preserves the full 300s battery-saving RF cooldown while ensuring devices wake automatically in the tray once the cooldown expires (
116/116tests passing).
- Fixed a bug where returning cached offline results (
📦 Linux Packaging & Distribution (PR #36)
- Native
.debPackage (packaging/linux/build_deb.sh,.github/workflows/release.yml):- Releases now automatically build and attach
areyoulowbattery_<version>_amd64.deb(installing/opt/areyoulowbattery,/usr/bin/areyoulowbattery,udevrules in/usr/lib/udev/rules.d/,systemd --userservice, desktop entry, andudevadmpost-install hooks).
- Releases now automatically build and attach
- AUR Recipe (
packaging/aur/PKGBUILD,areyoulowbattery.install):- Added
areyoulowbattery-binPKGBUILD for Arch Linux, CachyOS, EndeavourOS, and Manjaro, plus updated installation instructions inREADME.md.
- Added
v0.6.2
[v0.6.2] — 2026-11-25 — Vector Charging Tray Icon, Atomic Linux Updater & Python 3.10+ CI
🐛 Bug Fixes & Linux UX (PR #33)
- Vector Charging Tray Icon (
areyoulowbattery/tray.py):- Replaced Unicode emoji
⚡text rendering (which failed to display inside the 64×64 tray icon on Linux/Nobara) with a crisp vector lightning polygon (_draw_vector_lightning) in both single-device and multi-device tray icons.
- Replaced Unicode emoji
- Reliable Linux Auto-Updater (
areyoulowbattery/updater.py,areyoulowbattery/i18n.py):find_matching_asset()now prefers the standalone Linux ELF binary over.tar.gz/.sha256assets.- Added
_atomic_replace_executable()using a temporary file +os.replace()to preventETXTBSYon running binaries and avoid overwriting--onedirsymlinks. - Updates writable standalone frozen executables directly, relaunches
--trayautomatically whensystemd --useris not active, and provides exact{path} install/{path} --traycommands in manual fallback prompts (EN & PT-BR).
🧪 Packaging & CI Alignment
- Aligned
requires-python = ">=3.10"inpyproject.tomlwithREADME.md. - Expanded
.github/workflows/pr-check.ymlto run automated tests across Python 3.10 and 3.12 on Linux (plus Python 3.12 on Windows), bringing total automated tests to 115/115 passing.
v0.6.1
[v0.6.1] — 2026-11-22 — ATK A9 Air (Compx 8K), Restore Flow Fix, Linux Hardening & Udev Sync
🖱️ New Hardware & Protocol Fixes
- ATK A9 Air / Compx 8K Wireless Mouse (
0x373b,373b:11d9/373b:120a):- Added official profile (
profiles/mice/atk_compx_8k.yaml),VENDOR_PROTOCOL_MAPentry indiscovery.py, and hardenedudevrule (ATTRS{idVendor}=="373b") inrules/99-areyoulowbattery.rules. - Fixed
NordicHandler(nordic_v1) to fall back towrite_output_reportwhen a dongle defines Report ID0x08as Output-only and silently ignoressend_feature_reportwithout raising an OS error.
- Added official profile (
🐛 Bug Fixes & Linux Hardening
- Remove → Find Devices → Restore Flow: Fixed
restore_device()inareyoulowbattery/engine.pyto also un-ignore custom renamed device names stored underprofile_nameindevice_overrides.json(previously onlyvid:pid/vidkeys were checked, leaving renamed devices hidden from the dashboard after restoring). - Outdated
udevRules Detection — contributed by @emreocell in PR #32 (#30):are_udev_rules_installed()now compares installed rules against the bundledrules/99-areyoulowbattery.rulesso newly added vendor IDs (a8a5,3537,373b, etc.) trigger the installer prompt on upgrades.
- Security & Linux Packaging Hardening (PR #29):
- Hardened temporary cache paths,
systemdExecStartquoting,sysfsfile-handle cleanup, and pinned GitHub Actions release SHAs.
- Hardened temporary cache paths,
🧪 Automated QA & Frontend Tests
- Added
tests/test_ui_flows.py(PySide6 offscreen UI tests) covering dashboard header & empty-state buttons,DeviceCardmenu actions (Change Protocol,Rename,Change Type,Remove), Find Devices (Test Protocol,Save,Rescan,Done), and the end-to-end Remove → Find Devices → Test Protocol → Restore regression with custom renames.
v0.6.0
[v0.6.0] — 2026-11-18 — GameSir Cyclone 2, Bilingual UI (EN/PT-BR), Game Mode Controls, Waybar & Linux Footprint
🎮 New Hardware & Protocol Improvements
- New
gamesir_v1Protocol Handler (3537:100b) — contributed by @EdevandoAlves in PR #22!- Adds battery % and charging telemetry for the GameSir Cyclone 2 XInput 2.4G dongle, with YAML profile, hardened
udevrules, and reverse-engineering notes (docs/protocol-gamesir-cyclone2.md).
- Adds battery % and charging telemetry for the GameSir Cyclone 2 XInput 2.4G dongle, with YAML profile, hardened
- YJX Wired Charging Telemetry (
a8a4:2255) — by @EdevandoAlves: reads live USB cable charging state and accepts post-charge battery levels.
🌐 Multi-Language UI (i18n)
- English (
en_US) & Brazilian Portuguese (pt_BR) — contributed by @EdevandoAlves in PR #24 (#17):- Added lightweight
areyoulowbattery/i18n.pytranslation layer persisted insettings.json, with live language switcher in the tray context menu across popup cards, discovery dialogs, tray menus, and Linuxudevinstaller prompts.
- Added lightweight
🕹️ Game Mode Tray Indicator & Manual Pause
- Contributed by @Golden007-prog in PR #21 (#18):
- Displays active Game Mode status in the tray menu and adds a Pause Polling (Game Mode) toggle, backed by shared detection in
areyoulowbattery/gamemode.py.
- Displays active Game Mode status in the tray menu and adds a Pause Polling (Game Mode) toggle, backed by shared detection in
🐧 Linux Desktop, Waybar & Memory Footprint
- Waybar
capacity_levelFallback — contributed by @EdevandoAlves in PR #23:- Supports Linux
sysfspower_supplydevices that only expose discretecapacity_level(Full/High/Normal/Low/Critical) when numericcapacityis absent.
- Supports Linux
- Linux
--onedirBundle & Qt Module Exclusions (#15, PR #25):- Added
--exclude-moduleflags in PyInstaller builds for unused Qt6/stdlib modules and shippedareyoulowbattery-linux-x86_64.tar.gz(--onedir), reducing systemd cgroup footprint on Linux from256.2 MB(--onefile) to33.4 MB(-87%), plus idle tray UI signature caching (last_ui_sig).
- Added
v0.5.5
[v0.5.5] — 2026-11-17 — YJX-CHIP Protocol (@EdevandoAlves), Windows UX & PR Security CI
🤝 Community Contributions
- New
yjx_v1Protocol Handler (a8a5:2255) — contributed by @EdevandoAlves in PR #12!- Adds full battery % and charging telemetry support for Smailwolf RS7, EWEADN G5, and MCHOSE G7 wireless gaming mice on YJX-CHIP 2.4G receivers.
- Includes YAML profile (
profiles/mice/yjx_smailwolf_rs7.yaml),VENDOR_PROTOCOL_MAPauto-detection, hardenedudevrule, reverse-engineering documentation (docs/protocol-yjx-a8a5.md), and 6 unit tests using captured hardware frames.
🎨 Windows & Desktop UX Fixes
- Modals Always Appear Above Dashboard: The dashboard flyout (
WindowStaysOnTopHint) now hides cleanly before opening Find Devices, Rename, Change Type, Change Protocol, or Export Diagnostics and restores automatically when closed, while key dialogs enforce top-most focus so modals never open hidden behind the popup on Windows. - Cleaner Find Devices List: Active Bluetooth peripherals already monitored natively in the dashboard (e.g.,
R68 BT5.0,Ba-FON240) no longer clutter Find Devices unless previously hidden/removed by the user.
🛡️ Repository Security & Governance
- Added
.github/workflows/pr-check.yml(read-only PR CI running Linux + Windows unit tests,tools/sim_lab.py --chaos,banditsecurity scan, andudevrules safety validation). - Added
CONTRIBUTING.mdand.github/pull_request_template.md.
📖 Documentation
- Added UI preview screenshots (
assets/preview_dashboard.png,assets/preview_discovery.png), hardware support foryjx_v1, honest resource-usage figures, and a transparent Windows SmartScreen note toREADME.md.
v0.5.4.2
[v0.5.4.2] — 2026-11-17 — Windows HID Resilience, Native SetupAPI Bluetooth & Chaos Simulator
🪟 Windows Hardware & Bluetooth Fixes
- Native Win32
setupapi.dllBluetooth Battery Reader: QueriesDEVPKEY_Device_BatteryPercentagedirectly in-process viactypes(<10ms, works without administrator privileges and without PowerShell PnP timeouts). - Resilient HID Multi-Collection Handling:
HidrawTransport.read_input_report()now catchesOSError/ValueError(had_read_error), protecting all 10 protocol handlers against Windowshidapiread errorcrashes on locked/incompatible collections. - Logitech HID++ Collection Isolation: Skips Windows-locked
\KBDcollections and handles read errors cleanly acrossCol01..Col05so vendor0xFF00endpoints and HID++ 1.0 fallbacks are always reached.
🧰 QA & Diagnostics Tooling
- New
tools/sim_lab.py: Chaos fault-injection simulator across all 10 protocol handlers + diagnostic report (--diag) replay harness. - 59/59 unit tests passing (including Windows
read errorandSetupAPIBluetooth coverage).
v0.5.4.1
[v0.5.4.1] — 2026-11-16 — UI Polish, Visual Audit Tooling & udev Installer Feedback
🎨 Interface Fixes
- Find Devices: vector lightning icon on Test Protocol (no more empty emoji box), removed the square Breeze frame behind device cards, themed slim dark scrollbar.
- Dashboard: redesigned settings gear icon, long device names are elided with a full-name tooltip, fixed clipped text in the empty state.
🎮 Game Mode Coverage
- Daemon and CLI now respect Game Mode:
--daemonand--pollpreviously ignored it, so running them next to the tray could still query the hardware during matches. Detection moved to the sharedareyoulowbattery/gamemode.py; while a game runs,--pollserves cached data only without touching hardware, and--daemon/ tray block forced refreshes while extending the telemetry refresh interval to 180s (planned low-frequency refresh rather than zero-read forever). - No more false positives on Windows: fullscreen browsers and media/communication apps (Chrome, Firefox, Edge, VLC, mpv, Discord, Teams, OBS...) no longer trigger Game Mode.
🛡️ udev Installer
- Authorization failures (
pkexecexit 127) now show an explanatory dialog with manual commands instead of looking like a silent cancel. Dismissing the prompt (exit 126) stays silent.
🧰 Developer Tooling
- New
tools/visual_audit.py: renders every UI state offscreen and saves PNG captures tocaptures/visual_audit/for visual regression review.
🔧 Housekeeping
- Version strings synchronized across
pyproject.toml,__init__.py,installer.issandwindows_version_info.txt.
v0.5.4
[v0.5.4] — 2026-11-15 — Smart Game Mode Hardening, Native Windows Game Detection, Automated udev Installer & Vector Dialogs
🚀 Smart Game Mode Hardening (Anti-Stutter & Zero USB Contention)
- Strict Hardware Write Suppression in Competitive Matches:
in_game=Truenow strictly suppressesforce=Truehardware cache bypasses.- If a user opens the dashboard, clicks the tray icon, or a hotplug event fires during a match (CS2, Valorant, Apex Legends, Deadlock, Dota 2), the 180s battery telemetry cache is strictly enforced, preventing any USB write commands (
write_output_report) from being injected into mouse endpoints and guaranteeing zero packet collision with high-polling sensors (1000Hz/4000Hz/8000Hz). - Background polling thread automatically drops
is_forcewhile in-game.
🪟 Native Windows Game & Fullscreen Detection
- Win32 API Native Integration via
ctypes:- Replaced the platform placeholder on Windows with real-time foreground process inspection and screen boundary verification using standard library
ctypes(zero third-party dependencies). - Automatically identifies competitive games (
cs2.exe,valorant.exe,r5apex.exe,overwatch.exe,pubg.exe,fortnite.exe,deadlock.exe, etc.) and exclusive/borderless fullscreen windows. - Windows players now benefit from the exact same latency-protective Game Mode as Linux users.
- Replaced the platform placeholder on Windows with real-time foreground process inspection and screen boundary verification using standard library
🛡️ Automated udev Rules Installer & Composite Dongle Access (Linux)
- Graphical Administrator Authorization via
pkexec:- Integrated one-click udev rules installation into the Find Devices assistant and settings menu.
- Elevates privileges cleanly via system Polkit (
pkexec) using a dedicated atomic script (rules/install_udev.sh), eliminating manual terminal commands (sudo cp,sudo udevadm) and shell string interpolation risks. - 100% Platform Isolated: The udev installer and permissions banners are strictly guarded on Linux and completely omitted on Windows.
- Restored Multi-Interface Composite Dongle Compatibility:
- Removed restrictive
bInterfaceProtocol!='01'filter fromrules/99-areyoulowbattery.rules. Composite 2.4G wireless dongles (such as Royalaxe0x25a7:0x2420) that declare protocol 01 on all endpoints now properly receive user-spaceuaccess.
- Removed restrictive
🎨 Native Vector Icons & Dialog Overhaul
- End of Broken Emojis in Dialogs:
- Added
render_category_icontovector_icons.py. - Replaced system
QInputDialog(which caused blank square glyphs/tofu on Linux) with a modern dark-themed Change Device Type / Icon dialog featuring crisp sky-blue (#38bdf8) vector icons for Mouse, Keyboard, Headset, Gamepad, and Other. - Updated Find Devices category dropdown to render native vector icons alongside text labels.
- Added
- Strict Hardware Blacklist in Device Discovery:
- Enforced unconditional filtering of internal host hardware (Root Hubs, USB 2.0/3.0 Hubs, webcams, USB microphones, and motherboard RGB controllers like MSI Mystic Light) in the Find Devices scanner.
- Prevented USB Host Controllers from erroneously matching as Gamepads (
🎮).
v0.5.3.2
[v0.5.3.2] — 2026-11-14 — Anti-Stutter Gaming Mode, Native Bluetooth D-Bus & Wayland Integration
🚀 Performance & Gaming Optimization (Anti-Stutter)
- Competitive Game Mode (CS2, Deadlock, Dota 2, Apex Legends):
- Automatically identifies active competitive fullscreen games and enters low-latency Game Mode.
- Zero USB Contention on Mice: Suspends USB write commands (
write_output_report) on 2.4G wireless mouse dongles (CompX, Nordic, Areson) and extends telemetry cache to 180s, preventing any packet collision with 1000Hz/4000Hz/8000Hz mouse sensor reporting. - Relaxed Background Threading: Extends routine background polling cadence from 10s to 120s while games are active.
- Auto-Detection & Hotplug Pausing: Suppresses device probing and debounces udev events during gaming sessions.
- Cached Game Check: Caches
/procprocess detection for 15s to avoid repetitive kernel context switches.
🐛 Bug Fixes & Stability
- Elimination of
bluetoothctlCoredumps on Linux (SIGABRT/ Exit Code 134):- Completely removed external
bluetoothctlCLI subprocess execution. - Bluetooth battery querying on Linux now operates exclusively in-memory via D-Bus (
org.bluez/org.freedesktop.UPower) and/sys/class/power_supply. - Eliminates all recurring
systemd-coredumpI/O spikes and crashes on modern BlueZ 5.86 / Fedora / Nobara systems.
- Completely removed external
- Wayland Window Identity & Desktop Integration (Resolved Wayland "W" Icon):
- Implemented
get_app_icon()with automatic fallback to high-DPI vector graphics. - Sets
app.setDesktopFileName("areyoulowbattery")andsetWindowIcon(...)across the tray, dashboard flyout, and discovery dialogs. - Automatically provisions
~/.local/share/applications/areyoulowbattery.desktopand installs high-res icons in~/.local/share/icons/hicolor/256x256/apps/on startup so KDE Plasma and GNOME Wayland compositors display the official application icon instead of the generic Wayland "W" logo.
- Implemented
🛡️ Security Hardening
- Anti-Keylogger udev Rule Hardening (
ATTRS{bInterfaceProtocol}!="01"):- Excluded standard Boot Keyboard text-typing interfaces from receiving user ACL permissions.
- Keystroke endpoints remain strictly locked to
root:root(0600), ensuring malicious user-space processes cannot intercept typed passwords via/dev/hidraw, while vendor battery telemetry endpoints remain accessible to the app.