GitHub (v1.0.0, GPLv3): https://github.com/Eddie02345/seuil
Demo clip: Watch Phone ↔ Linux Auto Switch in action
Samsung restricts Galaxy Buds Auto Switch to One UI devices and Windows Galaxy Books. I reverse-engineered Samsung's Continuity Service (`mcfds`) protocol and built `seuil`, a lightweight Rust daemon for Linux that integrates with BlueZ, PipeWire, MPRIS (`playerctl`), and `systemd --user` so your Buds seamlessly hand off between your Samsung phone and Arch desktop.
How it works
- Phone → Linux: When PipeWire detects an active playback stream (or MPRIS transitions to `Playing`), `seuil` dials Samsung's authenticated L2CAP CoC channel (PSM 128, P-256 ECDH + AES-256-GCM/CBC) and sends a `BUDS_SWITCH` command. Your phone automatically pauses media and releases the Buds, and `seuil` pulls the A2DP link via BlueZ.
- Linux → Phone: When your phone starts media playback or receives a call, `seuil` yields ownership via dynamic BLE `0x0075` Type-3 AD records, pauses Linux playback via MPRIS, disconnects A2DP/HFP cleanly, and arms a 5-second anti-ping-pong cooldown.
- Zero manual MAC hunting: `seuil setup` handles Samsung Account OAuth/PKCE certificate enrollment, lists your paired BlueZ devices in an interactive picker, writes `~/.config/seuil/config.toml`, and enables `seuil.service`.
Development & AI Transparency
​Full transparency: parts of the protocol documentation, Rust daemon scaffolding, and unit test suite were built using an AI-assisted workflow with OpenCode. I personally drove the protocol reverse engineering, captured and analyzed the live btmon HCI and adb logcat traces, and verified every cryptographic handshake and audio transition on physical hardware (Arch Linux + Hyprland, Galaxy A57, Galaxy Buds Core).
​Looking for testers
​Because seuil relies on Samsung's phone-orchestrated Continuity handoff rather than model-specific earbuds opcodes, it should work with any Auto-Switch-capable Galaxy Buds (Buds+, Live, Pro, Buds2, Buds2 Pro, Buds FE, Buds Core, Buds3/Pro) as long as Auto Switch is enabled. Feedback and issue reports on other Buds models or Wayland/X11 setups are welcome!