Skip to content

Releases: shivamvcx/A20-Driver

v0.2.0

Choose a tag to compare

@shivamvcx shivamvcx released this 17 Oct 00:38

Redgear A20 Control Center v0.2.0

Industrial Precision Utility UI, Windows 10/11 Dark Title Bar, Per-Monitor V2 High-DPI Scaling & Fault-Tolerant Safety Hardening.


What's New in v0.2.0

1. Industrial Precision Utility UI Overhaul

  • Native Dark Window Title Bar: Integrated Win32 dwmapi.dll P/Invoke (DWMWA_USE_IMMERSIVE_DARK_MODE) to eliminate glaring white title bars on Windows 10 and 11.
  • Zero-Allocation GDI+ Token Engine: Pre-cached brushes, pens, and system typography (Theme class) ensuring zero heap allocations and zero GC stutter during repainting.
  • Hairline Card Containers: Flat 1px border card panels (CreateSectionPanel) with metadata badges replacing legacy WinForms GroupBoxes.
  • Active Preset Border Highlighting: Immediate visual feedback highlighting the active quick-preset color with an Emerald border.
  • Unified Action Control Row: Reorganized Apply (RAM), Save Profile, and Reset Profile into a cohesive 36px action bar with primary Emerald styling for saving.
  • Modernized TrackBar: Modern brightness slider with TickStyle.None and dynamic percentage readout.
  • Explorer Dark Mode Controls: Applied SetWindowTheme (DarkMode_Explorer) for dark dropdown styling.

2. Native Windows Application Manifest (app.manifest)

  • Per-Monitor V2 High-DPI Scaling: Declared <dpiAwareness>PerMonitorV2, PerMonitor</dpiAwareness> for crisp rendering across 4K multi-monitor setups without bitmap stretching.
  • Modern Windows Common Controls: Linked Microsoft.Windows.Common-Controls v6.0.0.0.
  • Explicit OS Compatibility: Declared support for Windows 7, 8, 8.1, 10, and 11 under standard user privileges (asInvoker).

3. Asynchronous Mutex & Hardware Safety

  • Non-Blocking Experimental DPI Dispatch: Offloaded Command 0x09 testing and hardware mutex synchronization (TaskSchedulerHelper.HARDWARE_MUTEX_NAME) to background worker tasks (Task.Run with async/await), eliminating UI thread freezes.
  • Non-Destructive Device Path Enumeration: Switched device path search query to access mode 0, preventing handle-sharing conflicts during USB device scanning.
  • Dynamic Disconnect Recovery: Automatically traps Win32 disconnect errors (1167, 2, 6), invalidates stale device handles, and displays a red status alert.
  • Hotplug Re-Entrancy Guard: Guarded USB hotplug handling with isHotplugHandling to prevent race conditions during rapid cable replugging.

4. Fault-Tolerant Storage & Crash Diagnostics

  • Atomic JSON Profile Serialization: Writes profile updates to .tmp files first with UTF-8 encoding and replaces targets atomically (File.Replace), eliminating risk of profile corruption during sudden power drops.
  • Hex Input Sanitization: Added format validation enforcing #RRGGBB format and synchronizing active color state before saving.
  • Global Crash Trapping: Traps unhandled thread and domain exceptions to %LocalAppData%\RedgearA20\crash.log with complete diagnostic timestamps and stack traces.

5. Multi-Architecture Build Pipeline (build.bat)

  • Added auto-detection for both 64-bit (Framework64) and 32-bit (Framework) .NET Framework csc.exe compilers.
  • Embedded src/app.manifest directly into compiled binaries.
  • Standardized process exit codes (0 on success, 1 on failure) for CI/CD automation.

Checksums & Verification

File Size SHA-256 Checksum
RedgearA20-win-x64.exe 71,168 bytes cf313519998c957b9d7d5b91043a47b130139cc4b4f0e2ac7a055546d32c3f09

Quick Start

  1. Download RedgearA20-win-x64.exe below.
  2. Plug in your Redgear A20 mouse into any USB port.
  3. Launch the standalone .exe (no installer, no dependencies).
  4. Customize your color and select Stealth Driver Watcher under Persistence Mode.
  5. Click Save Profile and close the window [X] — your profile will persist silently at ~1.8 MB RAM and 0% CPU.

v0.1.1

Choose a tag to compare

@shivamvcx shivamvcx released this 14 Oct 23:30

🖱️ Redgear A20 Control Center v0.1.1

🌟 What's New

  • 🥷 Stealth Driver Watcher (Default & Recommended):

    • Completely Invisible: Sits silently in the background with no taskbar button and no system tray icon cluttering your screen.
    • Near-Zero Footprint: Uses aggressive working set trimming (SetProcessWorkingSetSize) to compress idle memory down to ~1.8 MB RAM and 0.00% CPU.
    • Instant Hotplug Persistence Across All Ports: Intercepts native Win32 WM_DEVICECHANGE events in < 50ms. Reapplies your saved color and DPI in ~300ms when unplugged and replugged into ANY USB 2.0/3.0 port, hub, or dock.
    • Cold-Boot & Sleep Persistence: Survives system reboots and Modern Standby / S3 sleep cycles via HKCU\Software\Microsoft\Windows\CurrentVersion\Run.
    • Single-Instance IPC: Relaunching the app from Desktop or Start Menu seamlessly restores the GUI window.
    • Smart Window Closing: Simply closing via the Windows [X] button keeps persistence running silently in the background. An explicit "Exit App" button is provided with high-visibility warnings if you ever want to completely terminate the driver.
  • 🎯 ⚠️ Experimental DPI Stage Controls (Command 0x09):

    • Direct hardware switching across all 6 DPI stages ($600$, $1000$, $1200$, $1600$, $2400$, $3200\text{ DPI}$).
    • Isolated behind an opt-in safety checkbox with live RAM testing.
  • 🛡️ Safety & Reliability:

    • Built-in Win32 error translation for clear diagnostics (ERROR_ACCESS_DENIED, ERROR_GEN_FAILURE, etc.).
    • Mandatory 50ms inter-packet delays preventing MCU buffer saturation.
    • Automated deployment to %LocalAppData%\RedgearA20\RedgearA20.exe.

⬇️ Downloads & Verification

Asset Details
Executable RedgearA20-win-x64.exe (~63.5 KB)
Architecture Windows 10 / 11 (64-bit) — Standalone .NET 4.8 / Win32
SHA-256 6A3B9B4B6376AB0BF2EB537CE8A2BD1D193961D3DB534D63E95C36572DB97388

v0.1.0

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@shivamvcx shivamvcx released this 14 Oct 16:54

🖱️ Redgear A20 Control Center v0.1.0

Standalone, zero-bloat hardware control software for the Redgear A20 RGB Gaming Mouse (VID: 0x18F8 & PID: 0x0FC0).

✨ What's New

  • 12-bit Precision Color Mixer: 4,096 discrete hardware colors with visual picker & custom #RRGGBB hex code support.
  • Proportional Brightness Dimming: 5% to 100% PWM scaling without color shifting.
  • Solid Static Mode (0x86): Replaces the default unchangeable rainbow breathing cycle with a steady glow.
  • Live Packet Inspector: Real-time diagnostic console displaying raw 8-byte Feature Reports.
  • Zero Bloat & Zero Dependencies: Single ~25 KB standalone 64-bit executable. No installer, no background services, no telemetry.

⬇️ Download & Quick Start

  1. Download RedgearA20-win-x64.exe below under Assets.
  2. Plug in your Redgear A20 mouse and double-click to run.

(Note: SHA-256 verification hash is provided in RedgearA20-win-x64.sha256)