Skip to content

Releases

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:47
0980586

[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.
  • 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.
  • 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.

🌐 i18n, PT-BR & Updater Improvements (PR #38, PR #39)

  • Formatted Release Notes (areyoulowbattery/updater.py):
    • UpdateDialog now 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.

🧪 QA & Test Isolation (#31)

  • Isolated test_game_mode_polling_suppresses_hardware_queries from host Bluetooth/sysfs devices.
  • Added automated theme, customizer, Markdown updater, and cross-language (en_US / pt_BR) × 3-theme UI tests (121/121 tests passing).

v0.6.3

Choose a tag to compare

@github-actions github-actions released this 01 Dec 02:07
db08122

[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) overwrote self._offline_devices[name] with a fresh time.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/116 tests passing).

📦 Linux Packaging & Distribution (PR #36)

  • Native .deb Package (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, udev rules in /usr/lib/udev/rules.d/, systemd --user service, desktop entry, and udevadm post-install hooks).
  • AUR Recipe (packaging/aur/PKGBUILD, areyoulowbattery.install):
    • Added areyoulowbattery-bin PKGBUILD for Arch Linux, CachyOS, EndeavourOS, and Manjaro, plus updated installation instructions in README.md.

v0.6.2

Choose a tag to compare

@github-actions github-actions released this 25 Nov 17:06
27b3816

[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.
  • Reliable Linux Auto-Updater (areyoulowbattery/updater.py, areyoulowbattery/i18n.py):
    • find_matching_asset() now prefers the standalone Linux ELF binary over .tar.gz / .sha256 assets.
    • Added _atomic_replace_executable() using a temporary file + os.replace() to prevent ETXTBSY on running binaries and avoid overwriting --onedir symlinks.
    • Updates writable standalone frozen executables directly, relaunches --tray automatically when systemd --user is not active, and provides exact {path} install / {path} --tray commands in manual fallback prompts (EN & PT-BR).

🧪 Packaging & CI Alignment

  • Aligned requires-python = ">=3.10" in pyproject.toml with README.md.
  • Expanded .github/workflows/pr-check.yml to 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

Choose a tag to compare

@github-actions github-actions released this 22 Nov 18:05
754f05d

[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_MAP entry in discovery.py, and hardened udev rule (ATTRS{idVendor}=="373b") in rules/99-areyoulowbattery.rules.
    • Fixed NordicHandler (nordic_v1) to fall back to write_output_report when a dongle defines Report ID 0x08 as Output-only and silently ignores send_feature_report without raising an OS error.

🐛 Bug Fixes & Linux Hardening

  • Remove → Find Devices → Restore Flow: Fixed restore_device() in areyoulowbattery/engine.py to also un-ignore custom renamed device names stored under profile_name in device_overrides.json (previously only vid:pid / vid keys were checked, leaving renamed devices hidden from the dashboard after restoring).
  • Outdated udev Rules Detection — contributed by @emreocell in PR #32 (#30):
    • are_udev_rules_installed() now compares installed rules against the bundled rules/99-areyoulowbattery.rules so newly added vendor IDs (a8a5, 3537, 373b, etc.) trigger the installer prompt on upgrades.
  • Security & Linux Packaging Hardening (PR #29):
    • Hardened temporary cache paths, systemd ExecStart quoting, sysfs file-handle cleanup, and pinned GitHub Actions release SHAs.

🧪 Automated QA & Frontend Tests

  • Added tests/test_ui_flows.py (PySide6 offscreen UI tests) covering dashboard header & empty-state buttons, DeviceCard menu 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

Choose a tag to compare

@github-actions github-actions released this 18 Nov 21:08
dbcc01b

[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_v1 Protocol 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 udev rules, and reverse-engineering notes (docs/protocol-gamesir-cyclone2.md).
  • 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.py translation layer persisted in settings.json, with live language switcher in the tray context menu across popup cards, discovery dialogs, tray menus, and Linux udev installer prompts.

🕹️ 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.

🐧 Linux Desktop, Waybar & Memory Footprint

  • Waybar capacity_level Fallback — contributed by @EdevandoAlves in PR #23:
    • Supports Linux sysfs power_supply devices that only expose discrete capacity_level (Full / High / Normal / Low / Critical) when numeric capacity is absent.
  • Linux --onedir Bundle & Qt Module Exclusions (#15, PR #25):
    • Added --exclude-module flags in PyInstaller builds for unused Qt6/stdlib modules and shipped areyoulowbattery-linux-x86_64.tar.gz (--onedir), reducing systemd cgroup footprint on Linux from 256.2 MB (--onefile) to 33.4 MB (-87%), plus idle tray UI signature caching (last_ui_sig).

v0.5.5

Choose a tag to compare

@github-actions github-actions released this 17 Nov 19:28
7abcb74

[v0.5.5] — 2026-11-17 — YJX-CHIP Protocol (@EdevandoAlves), Windows UX & PR Security CI

🤝 Community Contributions

  • New yjx_v1 Protocol 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_MAP auto-detection, hardened udev rule, 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, bandit security scan, and udev rules safety validation).
  • Added CONTRIBUTING.md and .github/pull_request_template.md.

📖 Documentation

  • Added UI preview screenshots (assets/preview_dashboard.png, assets/preview_discovery.png), hardware support for yjx_v1, honest resource-usage figures, and a transparent Windows SmartScreen note to README.md.

v0.5.4.2

Choose a tag to compare

@github-actions github-actions released this 17 Nov 13:48
f1c5bcd

[v0.5.4.2] — 2026-11-17 — Windows HID Resilience, Native SetupAPI Bluetooth & Chaos Simulator

🪟 Windows Hardware & Bluetooth Fixes

  • Native Win32 setupapi.dll Bluetooth Battery Reader: Queries DEVPKEY_Device_BatteryPercentage directly in-process via ctypes (<10ms, works without administrator privileges and without PowerShell PnP timeouts).
  • Resilient HID Multi-Collection Handling: HidrawTransport.read_input_report() now catches OSError/ValueError (had_read_error), protecting all 10 protocol handlers against Windows hidapi read error crashes on locked/incompatible collections.
  • Logitech HID++ Collection Isolation: Skips Windows-locked \KBD collections and handles read errors cleanly across Col01..Col05 so vendor 0xFF00 endpoints 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 error and SetupAPI Bluetooth coverage).

v0.5.4.1

Choose a tag to compare

@github-actions github-actions released this 16 Nov 17:41
0790284

[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: --daemon and --poll previously ignored it, so running them next to the tray could still query the hardware during matches. Detection moved to the shared areyoulowbattery/gamemode.py; while a game runs, --poll serves 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 (pkexec exit 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 to captures/visual_audit/ for visual regression review.

🔧 Housekeeping

  • Version strings synchronized across pyproject.toml, __init__.py, installer.iss and windows_version_info.txt.

v0.5.4

Choose a tag to compare

@github-actions github-actions released this 15 Nov 18:58
63b977f

[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=True now strictly suppresses force=True hardware 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_force while 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.

🛡️ 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 from rules/99-areyoulowbattery.rules. Composite 2.4G wireless dongles (such as Royalaxe 0x25a7:0x2420) that declare protocol 01 on all endpoints now properly receive user-space uaccess.

🎨 Native Vector Icons & Dialog Overhaul

  • End of Broken Emojis in Dialogs:
    • Added render_category_icon to vector_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.
  • 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

Choose a tag to compare

@github-actions github-actions released this 15 Nov 02:49

[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 /proc process detection for 15s to avoid repetitive kernel context switches.

🐛 Bug Fixes & Stability

  • Elimination of bluetoothctl Coredumps on Linux (SIGABRT / Exit Code 134):
    • Completely removed external bluetoothctl CLI 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-coredump I/O spikes and crashes on modern BlueZ 5.86 / Fedora / Nobara systems.
  • 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") and setWindowIcon(...) across the tray, dashboard flyout, and discovery dialogs.
    • Automatically provisions ~/.local/share/applications/areyoulowbattery.desktop and 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.

🛡️ 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.