Skip to content
GravityLinuxPublic

About

Speaker tuning and safety daemon for Apple Silicon Macs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beatdropd: Speaker Tuning and Safety for Gravity Linux

beatdropd is primarily responsible for both speaker safety and tuning in the Gravity Linux audio stack. It sits between PipeWire and the raw ALSA speaker PCM device, applying per-model acoustic tuning and real-time thermal, mechanical, and power-rail protection so Apple Silicon laptop and desktop speakers sound right without being damaged.

Both open- and closed-loop systems are supported. Closed-loop Macs feed amplifier I/V sense telemetry into per-driver thermal and mechanical models; open-loop Macs approximate electrical current and average power directly from the drive waveform and feed those estimates into the same protection models.

Features

  • Per-Mac DSP pipeline: At install time, we extract macOS tuning data for the system. At runtime, applies this per board tuning and a number of DSP steps including: full signal chain—loudness-compensated master volume (MVSC), crosstalk cancellation (XTC), pre-EQ, multiband dynamics (MBDRC), per-driver crossover/EQ, protection limiting, and output trim.
  • Fail-closed kernel watchdog: The kernel driver boots with internal speakers muted and exposes an exclusive ALSA "Speaker Volume Unlock" control backed by a 50 ms hard-IRQ watchdog. beatdropd locks and renews this lease on every audio period; if the daemon crashes, stalls, or trips a safety fault, the kernel immediately hard-mutes the amplifiers.

All Macs are supported, though only MacBook Neo, MacBook Pro 16in M4 Max, and M5 MacBook Air have been tested at the time of writing. No warranty is provided; no guarantee is provided as to the safety of your speakers if you use this code.

Development and Reverse Engineering

beatdropd was created by clean-room reverse engineering of the macOS audio stack. Specifically, audio samples were run through the macOS audio stack and, at each step in the DSP stack, the changes to the audio were analyzed to understand what transformations macOS was performing.

For full reverse engineering details, you can visit:

https://github.com/ADevWithAnIdea/mac-speaker-re

The whole codebase is written from scratch and does not use any code from other audio safety or tuning daemons.

Legal

Copyright (c) 2026 The Gravity Linux Contributors

beatdropd is licensed under the GNU General Public License, version 2 or (at your option) any later version (GPL-2.0-or-later). See LICENSE for the full text.

About

Speaker tuning and safety daemon for Apple Silicon Macs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages