I have an Apple Wireless Keyboard and Trackpad (2 AA battery version of both, not the latest models that charge via a lightning cable), running Ubuntu 15.10 64-bit on an Intel NUC6i5SYK, kernel 4.2.0-27 (stock). I've got the Wireless Trackpad working fine with no issues. However, I can't for the life of me get the keyboard working. I've followed several guides and have managed to pair this keyboard via bluetoothctl, entering the PIN and seeing successfully paired. But it simply won't connect... it's paired but won't connect.
I do see the following error using
Authentication attempt without agent
Access denied: org.bluez.Error.Rejected
The same keyboard works flawlessly in Windows 10, so I know it's not the bluetooth controller or keyboard itself. The trackpad also works in Windows 10, and I used this trick to copy the bluetooth keys from the Windows registry to the bluetooth configuration in Linux: How can I avoid having to pair my bluetooth mouse all the time? https://superuser.com/questions/229930/finding-bluetooth-link-key-in-windows-7-to-double-pair-a-device-on-dualboot-com
Again, the trackpad works without issues in both Windows and Linux using this approach of mirroring the Bluetooth key. Even forgetting the goal of pairing the keyboard in both Windows and Linux, and setting up the keyboard with a new pairing, the keyboard won't pair via the GUI interface. I had to use
bluetoothctl and even that wasn't reliable.
Are there known issues with bluetooth drivers in 4.2, or perhaps a bug with the Apple Wireless Keyboard specifically?