Repository navigation
Releases
Maid BT v1.2.9
- Security hardening: quote plasmoid config command arguments; safe allowlisted config parsing (no shell sourcing); rfkill allowlisted/quoted escalation; intent-server query token disabled by default.
Maid BT v1.2.8
Maid BT v1.2.8
- Plasma applet: clear busy state on action completion so mode switches (PC/phone/radio/off) don't get stuck.
- Desktop: recognize SonicDE (
XDG_CURRENT_DESKTOP=SonicDE:KDE) in applet/session diagnostics and installer checks. - Init systems: add OpenRC and other non-systemd init support with automatic setup during install.
BlueV Protocol (Maid Watcher)
BlueV is Maid Watcher’s Bluetooth state persistence and ownership-aware recovery layer, built to keep earbud behavior predictable across sleep/resume, startup, and phone/PC handoff scenarios.
-
MVP: BT state persistence & restore (BlueV):
- Persist adapter power state and connected managed devices to
~/.local/state/maid-watcher/bt-state.json(atomic writes). - Snapshot on meaningful changes (device connect/disconnect, adapter
Poweredchanges) and immediately before suspend via logindPrepareForSleep. - Restore on startup and after resume: wait for BlueZ/adapter readiness, restore saved adapter power intent, and reconnect saved managed devices with staggered, best-effort retries.
- Respect prior intent: if the adapter was intentionally off before sleep, BlueV leaves it off on restore.
- New audit log trail for restore/snapshot actions (
BlueV:entries).
- Persist adapter power state and connected managed devices to
-
BlueV expansion (state, hints, policy, observability):
- State/confidence model (
maid_core.bluev): per-device state tracking withconnected_to_pc,connected_to_phone,out_available,docked, andunknown, driven by PC connection state, local probe evidence, and phone hints. - Phone-reported hints (intent path):
bt-intent-server.pyaccepts/phone_devicehints viaGETandPOST(JSON), with backward-compatiblemac/stateand richer optional fields (reported timestamp, source/confidence, transport/profile, adapter, active/call context, etc.) stored in/run/user/<uid>/maid-bluev-phone.jsonfor Maid Watcher consumption. - Policy integration: reconnect, fallback-grab, dock handling, and case rewatch consult BlueV state — e.g. defer/retry differently when the phone hint indicates
connected_to_phone, avoid claiming docked without sufficient evidence, and keep unconfirmed-silent devices eligible for rechecks. - Probe smoothing / dock confidence: silent “in case” detection requires confirmation over multiple probe observations within a time window before declaring
docked; out/advertising evidence clears docked state quickly. - Multi-adapter-aware persistence/restore: snapshot and restore BlueZ adapter power/connected-device state per adapter (with migration/backward compatibility for legacy single-adapter state).
- Observability: richer BlueV state in
maid-watcher status/report/porcelain (state, reason, phone hint freshness/source/confidence, dock probe context) and improved audit behavior. - Docs: phone intent guide documents
/phone_deviceBlueV hint reporting (MacroDroid/Tasker/BT connect/disconnect triggers over intent path, plus KDE Connect-assisted/manual local hints).
- State/confidence model (
-
Fixes/refinements in this cycle:
- Fixed reconnect defer handling when a phone hint is active to keep retry-source tracking consistent and rate-limit repeated “deferring reconnect” audit noise.
- Improved restore reconnect staggering for saved devices.
- Clarified dock verdict handling for “out/available but not connected” probe results to avoid misleading logs/state transitions.
LE Audio (BAP/LC3) support
- Opt-in LE Audio enablement: added
wireplumber/54-bt-le-audio.conf(enables LE Audio roles/codecs) and installer support to choose LE Audio vs A2DP-only guard (53-bt-a2dp-only.conf), withLE_AUDIO=1config support. - Runtime/profile handling:
bluetooth-toggle.sh,buds-fallback.sh, andwatcher/maid_core/audio.pynow recognize BAP/LE Audio profiles, avoid forcing A2DP codec pinning/battery-based A2DP codec switches on BAP, and can prefer/recover BAP profiles when LE Audio is enabled. - Watcher behavior: profile enforcement is LE Audio-aware (treats active BAP as valid/high-quality) to avoid breaking LE Audio connections during reconnect/profile checks.
- Config/docs:
bluetooth-buds.conf.exampledocumentsLE_AUDIO; docs updated to reflect optional LE Audio support alongside the existing A2DP-only safety guard for problematic setups.
Notes / known scope
-
BlueV remains WIP: automatic “any Android” per-device reporting still depends on an Android-side reporter/automation emitting
/phone_devicehints; further per-device/multipoint tuning, deeper UI surfaces, and vendor-specific enhancements can be layered on. -
LE Audio support depends on BlueZ/PipeWire/WirePlumber, adapter/controller capabilities, and earbuds firmware; keep the A2DP-only guard available for setups where LE Audio transports are unstable.
-
Gentoo support: add Gentoo (
emerge) package-manager detection and dependency installation ininstall.sh, document Gentoo in README, and add a Gentoo ebuild template underpackaging/gentoo/. -
Watcher efficiency: cache KDE Connect reachability and Bluetooth PAN (bnep) probes in the daemon to avoid repeated subprocess calls during periodic fallback checks.
-
Nix: add
shell.nix,devShells, andformatteroutputs; updateflake.lockand package metadata for better native Nix/NixOS development and usage. -
bluetooth-toggle.sh --doctor: expanded diagnostics for session/compositor detection (KineticWE, GPUiShell, Horizon, instantWM, Niri, Hyprland/Sway/i3 variants) and runtime health (XDG session type/runtime dir, PipeWire/Pulse audio server, default sink and sink count, Bluetooth adapter powered/name, configured buds/fallback sink, and state file path) with clearer troubleshooting hints.
v1.2.6
Maid BT v1.2.5
- Nix packaging: add
maid_core(libexec/maid-bt/watcher) toPYTHONPATHin wrappers so Python commands (e.g.maid-soundcore, watcher) can importmaid_core. - Bump version to 1.2.5 (about/settings metadata and package).
- Installers: fetch package/updates from the latest GitHub release (fallback to main if unavailable).
Maid BT v1.2.3
NixOS (flakes + home-manager), easy declarative setup: flake.nix with homeManagerModules.default/nixosModules.default, options for programs.maid-bt.enable and declarative user services (services.maid-bt.watcher, maidWatcher + settings, intentListener). Tracks main; auto-update on every rebuild with nix flake update maid-bt && nixos-rebuild/home-manager switch --refresh.
Also includes accumulated fixes since v1.2.2 (TUI/silent piped install, boot-intro robustness, clearer Soundcore control-channel errors, portal app-id desktop fix, app-agnostic stream moves, license GPL-3.0-or-later). See CHANGELOG.md for details.
Maid BT v1.2.2
the earbuds manager stops hammering the bluetooth stack, and the switchover to the phone finally works every time.
switching to the phone
- release (or the Phone tile) parks PC audio, waits a beat, and lets go of the buds link - their bluetooth walks over to the phone on its own. 'on' / the This PC tile brings them back in a couple of seconds.
- the tray reads 'phone' for the whole hand-off window; the watcher stays hands-off and never powers the radio down mid-hand-off; duplicate 'earbuds disconnected' notices during a release are gone.
less churn
- watcher wakes were a dozen process spawns a second (~1M/day); steady stretches now sweep every 3rd tick and half speed while the buds play. same reactions.
- tray reads state from the watcher's runtime file instead of poking rfkill/bluetoothctl twice a second; stale file = tray answers live instead of lying.
applet fixed
- busy state race: a background poll finishing mid-switch unlocked tiles too early; the stand-down watch re-arms until the switch really reports (20s cap).
- hover now tracks the tile you are on with an unmistakable themed wash (hover tracking was stale/invisible on dark themes).
- tile and state icons resolve inside every theme chain (papirus-dark inherits breeze, which has no bluetooth-disabled icon - the off state now uses the bluetooth-inactive glyph).
- highlight tints animate instead of snapping late.
settings
- settings window and EQ page follow the system theme (plasma widgets), open centered, read EQ/ANC live from the buds (their own memory - the same values the Soundcore app sees, so the phone and PC agree).
install: bash install.sh (or copy bin/bluetooth-toggle.sh, bin/buds-fallback.sh to ~/.local/bin and the plasmoid into ~/.local/share/plasma/plasmoids). full details in CHANGELOG.md.
Maid BT v1.2.1
- the earbuds state page used to sit for the whole 8s window and come
back with bluetooth talk (br-connection-refused) when the buds were
busy. refused control connections now answer in about a second, in
plain words: buds usually docked, asleep, or on the phone. press
refresh to go again once the buds are out. - the applet's four tiles (this pc / phone / radio / off) share one
tile shape: same rounding, hover and highlight painted on the tile,
long names cut off instead of stretching the row.
Maid BT v1.2
fixed:
- sudden audio switch on charging / phone wake: the a2dp switch and
chat stream routing now happen only while something is playing -
silent connects change nothing, sound moves the audio when it comes. - reconnect storm: 3 connect/drop hops in 2 minutes stand the watcher
down for 10 minutes (one quiet notice, no reconnect races, no
profile changes, no popup spam), then it picks itself back up. - reconnect backoff: a connect that drops again no longer resets the
attempt counter - only a link that held clears it.
v1.1.0
Full Changelog: https://github.com/Maidware-Project/Maid-BT/commits/v1.1.0