Commit graph

11 commits

Author SHA1 Message Date
FBukovina
d139742660 fix: stabilize Bluetooth polling and dedupe lid-cycle lock chimes
BluetoothAudioManager
- Replace Timer.scheduledTimer polling with DispatchSourceTimer on a
  utility queue so main-thread back-pressure no longer stalls the 3s
  connect-detection cadence.
- Distinguish "host controller unavailable" from "powered off" via a
  new bluetoothIsPoweredOn() helper, so transient IOBluetooth registry
  blips at launch no longer clear connectedDevices.
- Re-read device metadata (name, type, battery) at +500ms and +2s after
  IOBluetoothDeviceConnectedNotification to catch IORegistry's
  late-population window; the existing HUD wait-task then updates the
  shown battery in place.
- Declare BluetoothAudioDeviceType: Equatable to support the
  change-detection diff in the re-read pass.

LockSoundPlayer
- Add a 1.2s cross-type cooldown so a rapid lid close->open no longer
  plays lock-then-unlock chimes as a doubled sound (the per-type
  throttle never covered this case).
- Bump per-type throttle 0.25s -> 0.6s.
- Reset throttle state when enableLockSounds is toggled back on, so the
  first chime after re-enable is never suppressed by a stale timestamp.

StatsManager
- Shorten notchCloseStopDelay 3.0s -> 1.0s so the monitoring timer is
  invalidated sooner after the user closes the notch, freeing the
  main-thread tick budget for animation work.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 21:33:41 +02:00
Hariharan Mudaliar
2453ca89ff
Bluetooth HUD Animations 2026-02-04 23:48:48 +05:30
Hariharan Mudaliar
5910bd0362
Update copyright headers 2026-01-29 12:26:04 +05:30
Hariharan Mudaliar
97b30858ca
Update Settings and Decoupled Bluetooth 2025-12-20 13:39:13 +05:30
Hariharan Mudaliar
5a8c592157
Working stuff with revamped UI 2025-12-09 17:03:17 +05:30
Hariharan Mudaliar
42fe88f17d Partial BugFix: Bluetooth HUD 2025-12-03 13:27:09 +05:30
Hariharan Mudaliar
c555aa40a6 BugFix: Bluetooth Battery Percentage Report 2025-11-26 13:12:32 +05:30
Hariharan Mudaliar
2b6faff96d BugFix: Out of bounds of headphone hud 2025-11-06 23:23:25 +05:30
Hariharan Mudaliar
4bb67c2cd3 Working Headphone HUDs and other stuff 2025-10-26 23:48:40 +05:30
Hariharan Mudaliar
a75497bbbf Working battery percentage 2025-10-26 22:56:57 +05:30
Hariharan Mudaliar
c00b6db984 Working Color, Bluetooth and not working DND 2025-10-07 19:45:55 +05:30