Ubuntu – Ubuntu Mate 16.04 doesn’t ask for pairing code to connect Apple Keyboard


I have a Linux Ubuntu Mate 16.04 on an Intel NUC i5 NUC5i5RYK.

I had problems with headphones jack, just after 1 month was been purchased, and sent it to warranty, Intel changed it for a new one.

Now, I can' connect my Apple Keyboard via bluetooth: Ubuntu doesn't ask for pairing ping.

I can connect my Apple Magic Mouse, but not my Apple Keyboard.

I have researched hcitool and bluetoothctl without success

Before sending it to warranty, I connected the Apple keyboard, now I can't because I can't type the pairing ping

What can I do? remove the bluetooth manager and reinstall it?

Thanks a lot, I have been investigating it for a week, my last option is to buy another keyboard.

I'm not going to use Magic mouse with ubuntu, it disconnects periodically…each 10 minutes (+-) , but the keyboard worked successfully

Best Answer

Still without a solution I can't get it wroking.

These are the last actions I did:

  1. I changed the name of keyabord connected on a Mac
  2. Remove the file /etc/bluetooth/hcid.conf which contains information about the old name keyboard, something like: auth enable and encrypt enable
  3. Assigned (Or I think so) permisions to my user to bluetooth services: sudo usermod -G bluetooth -a albert

I don't know which one of these actions is the winner, but I hope can help someone, to avoid stay so long for fixing it


After that, I had problems when connecting at startup. I have lost connection to keyboard, and so now, the problem persists



folowing this instruccions, I did:

# bluetoothctl -a 

[bluetooth]# pair 10:9A:DD:9C:3D:DA
Attempting to pair with 10:9A:DD:9C:3D:DA
[CHG] Device 10:9A:DD:9C:3D:DA Connected: yes
[agent] PIN code: 882876

[bluetooth]# trust 10:9A:DD:9C:3D:DA
Changing 10:9A:DD:9C:3D:DA trust succeeded

connect <address>

And with this way, in terminal, asked the pin number to me.

To reconnect the keyboard, each time I startup the PC, first turn on PC, and then press the side power button, and wait for 5 - 10 seconds. Now seems to be more stable

12-12-2016 . another episode in my AppleKeyboard life:

The same as I explained above, but

1- With Networking disabled

2- without asking the pin number to me, I typed the pin number "blind" when I see "Attempting to connect to ..."