74

Since upgrading to Yosemite (did a wipe of my HD before installing, so no settings was there from Mavericks) I can only connect my Magic Mouse normally once per boot.

Normally you would be able to connect the mouse, sleep the computer, connect the mouse again, however I have to reboot my MacBook Pro after the sleep, if I want the Magic Mouse to work again.

I can see the device in both the Bluetooth preference pane and the Bluetooth menubar icon dropdown, but clicking connect in either of them does nothing. enter image description here enter image description here

Sometimes deleting the pairing and re-pairing with the mouse works, however most of the time it doesn't.

I have tried to reset my nvram and deleting /Library/Preferences/com.apple.Bluetooth.plist, without any success.

When using Mavericks and below, I have never had any issue with my Magic Mouse and the problem still exist when using a different Magic Mouse on Yosemite.

Any suggestion on how to fix this, without downgrading to Mavericks?

Tyilo
  • 5,527

10 Answers10

136

I found a solution from this comment on reddit:

  1. Turn off wifi
  2. Reconnect Magic Mouse
  3. Turn on wifi again

I just noticed that the above doesn't work sometimes and instead you have to reconnect the mouse after turning on wifi again:

  1. Turn off wifi
  2. Turn on wifi again
  3. Reconnect Magic Mouse
Tyilo
  • 5,527
  • I have a coworker who had/has this issue and this fixed it for him (if only temporarily). Thanks! – JoshStrange Nov 20 '14 at 16:56
  • 50
    Seriously Apple?? – n1000 Feb 20 '15 at 07:21
  • 2
    Fixed the issue for me too, with Yosemite, on a Mid-2012 Macbook. I'd like to join the "Seriously Apple??" choir. – sdanzig Feb 26 '15 at 14:58
  • 3
    Can confirm that temporarily disabling Wifi achieves the pairing for me. Looks like a bug in the networking middleware... I expect better from Apple. – Chris Hatton Mar 06 '15 at 08:03
  • 1
    this worked for me... until now i used to log off and login to reconnect back to magic mouse. Apple -> (facepalm) – Sudhaker Mar 31 '15 at 06:20
  • 7
    Holy cow, this worked. I've been searching for this for months. Thanks! – Dries Vints Apr 24 '15 at 19:23
  • @ChrisHatton: ...I don't :) – Phillip Jun 05 '15 at 14:56
  • 1
    You total legend, been suffering with this for months. As soon as I switched of WiFI a pairing request appeared. Thank you. – opearmain Jun 17 '15 at 14:06
  • 1
    Right. you have to turn off wifi. This problem waste my first hour almost every Monday morning. Seem the devices forget everything after a weekend break. – karim Aug 31 '15 at 06:59
  • Apple has gotten worse and worse.... – oky_sabeni Sep 21 '15 at 15:39
  • 1
    Incidentally, I was having the problem when my WiFi was turned off, and the OPPOSITE cycling of WiFi fixes the problem for me. So turn WiFi on, then off... then reconnect Magic Mouse. I find all Apple products to be getting worse and worse throughout the years. Shame there really isn't a better product. – Ryan Oct 08 '15 at 16:52
  • I'd like to join the "seriously Apply?" train. I'm so glad my $2600 laptop that just works is living up to it's name /s – Josh Oct 13 '15 at 15:21
  • Confirmed this has been working everytime on Yosemite! – Pandemonium Oct 21 '15 at 18:17
  • 2
    Experienced this issue for the first time this morning. I tried the usual things and only cycling the WiFi fixed it. I'm running El Cap for what it's worth. – Thomas Paine Oct 29 '15 at 16:00
  • Great! a big thank you! This is the same level as the "connect your keyboard via the extender otherwise it won't get your mac out of sleep"! http://apple.stackexchange.com/a/102170/179540 – julou Apr 13 '16 at 11:06
  • 1
    Are you serious Apple?!! Still an issue on El Cap, still solves it on El Cap – Neo Ighodaro Jun 10 '16 at 05:00
  • 1
    Thank you. I've been fighting this for years through multiple versions of OS X. I'm adding this comment because I don't see anyone else mentioning that this fixes the issue for Sierra--it does. – TechSavvySam Jan 28 '18 at 14:27
18

I've had issues reconnecting my bluetooth keyboard & trackpad since upgrading to Yosimite. I run this script via custom Automator Application:

  1. Search for (Spotlight search) and run Automator
  2. Choose "Application" for new file type
  3. Click on "Utilities" from list
  4. Double-Click "Run AppleScript"
  5. Replace (* Your script goes here *) with:

    do shell script "kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport; 
    kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" with administrator privileges
    
  6. Press play to test (will prompt for password)
  7. File->Save to desktop or wherever

Run the automator app whenever bluetooth devices won't connect

webaholik
  • 1,008
  • 1
    This works. I have made a script to install sleepwatcher and run those to commands every time the computer wakes from sleep, which has completely eliminated the problem from me: https://gist.github.com/Tyilo/c92684d277acb62272b5 – Tyilo Dec 13 '14 at 01:45
  • @Tyilo That's an excellent suggestion! The only time I have problems with bluetooth is precisely after waking the macbook from sleep. Thanks! – Jagtesh Chadha Feb 19 '15 at 15:09
  • I was getting syntax, and totally unfamiliar with apple script to me a minute to realize that the line breaks above are invalid, and the com.apple.... must follow right after -b for both. Otherwise you get missing argument errors. (also it did not solve the problem :( ) And this horrible hack is still the only way i suceed http://apple.stackexchange.com/questions/157357/yosemite-magic-mouse-and-a-bluetooth-disconnection-party/157359#157359 – Eddie Mar 24 '15 at 17:13
  • @Eddie, sorry about that, you are correct, formatting got messed up, causing syntax error, I've updated that, however, yes, this only works for some cases – webaholik Mar 25 '15 at 02:07
  • Finally! This should be the selected answer. – reinaldoluckman Aug 28 '15 at 13:54
  • Works like a charm! I 'converted' it to shell script since I always have a terminal open and typing is faster than searching for the app and clicking. Just needs prepending sudo: sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport; sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport – ccpizza Oct 27 '15 at 14:50
7

For many it is because of a WiFi/Bluetooth conflict.

  1. Go to the  Apple menu and choose System Preferences
  2. Go to the Network control panel
  3. Select “Bluetooth PAN” from the list of network interfaces on the left side menu
  4. Hit the Delete key or the [-] minus button to remove the Bluetooth PAN interface

Note: Bluetooth PAN is for connecting to your iPhone for things like "Instant Hotspot" and can easily be re-added using the [+] on the same screen if you need it later.

Justin
  • 294
  • 1
    This worked! +1 for disabling features I don't use anyway. – shadowtalker Nov 11 '15 at 15:33
  • 1
    The mouse stubbornly refused to connect, even with fresh batteries, until I deleted the Bluetooth PAN. Then it connected immediately after I turned Bluetooth off and on. We'll see how it does. – Bob Wakefield Mar 30 '16 at 23:01
2

This will sound insane, and I admit that, but it worked for me for some reason.

If I used the USB extension cord with my usb keyboard, the pair option magically reappeared in bluetooth. I can only assume it has to do with grounding, but it is worth 2 secs to try and find out if it might work for you.

usb extension cord

  • I can confirm this also worked for me. Nevertheless this is insane and I will send the mouse back. – michid Feb 21 '17 at 07:48
1

I had the same problem and I think I spotted a possible cause of the problem. My mouse was called "My Name's mouse" with the apostrophe, maybe that was causing the errors.

I have changed the name to avoid using spaces and special characters, now is called just "mymouse" and I don't seem to have the problem anymore.

Leenyx
  • 41
0

@Tyilo suggestion works. Get this script: https://gist.github.com/Tyilo/c92684d277acb62272b5

Just remember to first chmod your .sh file to be executable. For example:

$ cd your_scripts_dir
$ chmod u+x yosemite-bluetooth-fix.sh

then you may run it as:

$ ./yosemite-bluetooth-fix.sh

Then simply close your lid or make the Mac go to sleep, upon wake up, the Bluetooth icon will appear weird, and will be set as "not available", but a few seconds later your Magic Mouse will be back.

Pro Backup
  • 3,916
  • Although this works sometimes, it only has a success rate of about 80%, whereas turning wifi off and on seems to work every time. – Tyilo Mar 21 '15 at 15:23
0

I couldn't get my magic mouse to reconnect after I changed the batteries. All I had to do was turn off wifi and it immediately recognized the bluetooth mouse. No idea why this works, but it did.
I am using a 15"retina MB pro with Yosemite.

Tim
  • 1
0

Turning off and then back on Bluetooth worked for me.

Settings -> Bluetooth -> Turn Off/On

Justin
  • 294
0

When attempting to connect a Magic Mouse 2 (The version with the Lightning connector) I had the Lightning-to-USB cable connected to a Thunderbolt display. The mouse would not show up in the Bluetooth pane or the Mouse pane of System Preferences. On a whim, I tried plugging the USB end directly to the MacBook. It paired the mouse immediately. Trying to connect through the Thunderbolt display seemed to prevent the initial pairing. Other hubs might prevent the same thing.

tl/dr: Plug the mouse DIRECTLY into the laptop.

RossO
  • 163
-1

Turning off wifi fixed the problem.

  1. Turn off the wifi.
  2. Mouse will be discovered automatically.
jherran
  • 13,284
Vijay
  • 1