v0.3.1 β WH-1000XM4 fix + dual-battery + Linux Wayland
Fixes & additions
π§ WH-1000XM4 / v1 devices no longer power off on connect
v1 headphones (WH-1000XM4, XM3, MDR-XB950BT) shut down moments after connecting. After v0.1.1 gated every v2 opcode behind a version check, v1 devices got no valid protocol traffic on connect β and the headset powers off if it doesn't receive a recognized v1 handshake promptly.
Now requestAmbientState() is protocol-aware (v1 uses NCASM inquired-type 0x02, read-only) and is sent immediately on connect plus on every poll, giving v1 devices valid handshake traffic. v2 (WH-CH720N etc.) path is byte-identical β no regression.
Fix based on the patch shared by @CrisProCrack; validated on real hardware by @More_Way_6784 and @joelslaby (WH-1000XM4). π
π TWS dual-battery
Earbuds now report left / right / case levels (single-battery first, dual fallback probe).
π§ Linux / Wayland crash fix β PR #2 by @Sebsdnl
Removed GLEW (redundant with ImGui's GL loader), upgraded to OpenGL 3.3 Core so it starts on modern Wayland compositors (COSMIC), fixed an ImGui ID collision on empty device names, and documented Sony ULT WEAR (WH-ULT900N) support.
Install
brew upgrade --cask sonybridge