Bluetooth off while your Mac sleeps.
Tannlaus is a small menu bar app that turns Bluetooth off when your Mac goes to sleep and back on when it wakes. Your AirPods and other headphones stop connecting to a sleeping MacBook in your bag and stay with your phone.
brew install --cask mmalvik/tap/tannlaus
What it does
- Sleep: Tannlaus notes whether Bluetooth is on, then turns it off, unless the Mac is docked.
- Docked: On a MacBook with an external display, Bluetooth stays on during sleep, so a Bluetooth keyboard can wake it.
- Wake: Tannlaus turns Bluetooth back on, but only if it was on before.
- Launch: Starting Tannlaus never changes your Bluetooth setting.
- Privacy: No network access, no analytics, no data collection.
Why the name?
Bluetooth is named after the Danish king Harald Blåtann (“Bluetooth”). In Norwegian dialect, tannlaus means without teeth, or “toothless”.
Good to know
- The first time it starts, macOS asks whether Tannlaus may use Bluetooth. Click Allow.
- Apple Watch unlock needs Bluetooth, so it won’t work right after wake until Bluetooth is back on.
- Some Macs take 20–30 seconds to bring Bluetooth back after wake. Tannlaus waits and retries.
- Don’t want Bluetooth on while docked? Turn off Keep Bluetooth on when docked in the menu. On a desktop Mac, Tannlaus always turns Bluetooth off at sleep.
- Docked works with the lid open or closed. Unplugging the display while the Mac sleeps turns Bluetooth off, and plugging it back in isn’t noticed until you open the lid.
- Some Bluetooth LE mice can’t wake a Mac, even with Bluetooth on. A Bluetooth keyboard can.
- Only sleep is handled. Shutdown and restart leave Bluetooth as it was.