I have a Early 2011 Macbook Pro 13" running OS X 10.10.1 (Yosemite).

At work, I have a Apple Magic Trackpad and an Apple Wireless Keyboard, both which use Bluetooth. When I get to work, my Mac automatically connects to both of them (if Bluetooth is on).

At home, I have a Belkin F8Z492-P Bluetooth Audio Adapter hooked up to my stereo (sorry, no product page available). If Bluetooth is on, my audio will automatically be routed to the Bluetooth adapter (which is something I rarely want).

How can I make OS X automatically connect to my trackpad and keyboard at work but not automatically connect to the bluetooth audio adapter at home?

Currently, I shut Bluetooth off when I get home, but I'd like to avoid toggling Bluetooth when I get home/when I get to work, since it is quite annoying to start typing on the wireless keyboard and have nothing happen, or not have audio when I get home.

If this is not possible, can I prevent OS X from switching my audio automatically when connecting to the Bluetooth audio adapter?

  • 1
    I'd rather not have to un-pair and re-pair it when I want to use it, since the actual adapter is in an inconvenient place. – Batman Dec 5 '14 at 16:27
  • Not only does it do this when the Macbook is asleep, it also opens iTunes (which I don't use), and there could be ~3 different devices connecting to the speaker when I switch it on, leading to the hilarious "who is hijacking my speaker?" game. – contrebis Dec 4 '16 at 20:46

I had the same problem and FINALLY found a workable solution. Run this in your terminal. After this you just need to manually connect to your bluetooth audio system.

sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist DontPageAudioDevices 1
  • 1
    For clarity, your Mac will not auto-connect to audio devices but will continue auto-connecting to other devices, right? – Merchako Jul 15 '17 at 5:36
  • 1
    Exactly, so for example my mac will still automatically connect to my keyboard and mouse but if I want to connect to my stereo I need to manually select it from the bluetooth list of devices. – Matt Jul 16 '17 at 19:25
  • 2
    I would be so delighted if this worked for me. Unfortunately, it does not! While this might have worked for earlier OSX versions, I am finding that on Sierra 10.12.16, it has no noticeable effect after setting the plist value as described above. I even confirmed the value after a reboot and it reported back as 1 via defaults read /Library/Preferences/com.apple.Bluetooth.plist DontPageAudioDevices – John Mark Mitchell Jan 8 '18 at 15:18
  • Doesn't work for me either, and now I can't downvote the answer anymore. Gaah. – ssssaaaa Mar 15 '18 at 13:48
  • 2
    Correction: It started working after I restarted my computer today. – ssssaaaa Mar 25 '18 at 10:02

Adding MAC address of a device to IngoredDevices disables auto connect of Bluetooth. To do so follow these steps:

  1. disable Bluetooth.

  2. find MAC address in DeviceCache with following command

    sudo defaults read /Library/Preferences/com.apple.Bluetooth.plist DeviceCache
  3. add MAC address to IgnoredDevices

    sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist IgnoredDevices -array-add '<MAC ADDRESS>'
  4. print contents of the file, you should see there MAC address which has been added in step 3

    sudo defaults read /Library/Preferences/com.apple.Bluetooth.plist IgnoredDevices
  5. restart your Mac

  6. enable Bluetooth

This should work on Mojave and Catalina.

  • Will this prevent the device from being manually connected to? – rattray Feb 28 '20 at 18:00
  • Sadly, this gets reset if you have Apple BT devices connected via USB and turn on Bluetooth. – niieani Apr 10 '20 at 22:45
  • 1
    Can't get this to work. On Mojave 10.14.6. – ssssaaaa May 15 '20 at 18:33
  • This actually works in Big Sur! Thank you! You solved the most annoying problem I had on Mac! – George Herolyants Nov 15 '20 at 11:09
  • 1
    Doesn't work for me on Big Sur after 5 restarts. I can confirm that the device's MAC address is returned with sudo defaults read /Library/Preferences/com.apple.Bluetooth.plist IgnoredDevices – ninja star Apr 6 at 4:19

This is a bit of a long shot, but at home go into System Preferences > Sound > Output and manually select the Default option (Usually Speakers).

This means that OS X will re-prioritise so that when the Belkin F8Z492-P Bluetooth Audio Adapter becomes available, you'd rather use the default option.

Then, when you want to use it, select it via the AirPlay menu (if possible) because that doesn't affect OS X's priorities. If it is not available via the AirPlay menu then you will just have to manually switch forward and back with the System Preferences app, unless you feel like diving into some AppleScripting.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .