I am trying to pair the Microsoft 3RA-00022 Surface Ergonomic Keyboard in Ubuntu 18.04. By GUI Ubuntu interface it simply says: "Failed to add device"
By cmdl, I do this: *# bluetoothctl
pair EE:EE:EE:EE:EE:EE (mac real replaced)
Attempting to pair with ED:24:4C:21:D0:4F
Failed to pair: org.bluez.Error.AuthenticationFailed*
Can you give me a hand? I have almost 2 weeks searching online with no luck. Greetings,
I just went through this rigmarole, and I'm happy to say that I'm typing this answer on my Surface Ergonomic Keyboard (albeit on Ubuntu 19.04).
The cause of the problem in my case was that the Bluetooth firmware on my machine was not up to date. Once I updated the firmware,
bluetoothctl
prompted me with a pin code, when entered on my keyboard paired successfully.A few things you could try:
Determine if the firmware is loading correctly. From a terminal type
dmesg | grep -i blue
. If you see any errors indicating that firmware was not loading, then you should determine the manufacturer of your bluetooth chip, and from there figure out how update it to the latest version.If that doesn't help you, then you may want to start the bluetooth daemon in debug mode and look at the logs, to see if it helps you out. To do this, modify the following file:
/lib/systemd/system/bluetooth.service
. Find this line:ExecStart=/usr/lib/bluetooth/bluetoothd
and configure it to log debug info by appending -d:
ExecStart=/usr/lib/bluetooth/bluetoothd -d
Restart the bluetooth service, and you'll find debug info in syslog. This may or may not help you out, but it should at least help you narrow down the problem in your case. Good luck! While I found this problem really frustrating, it makes typing on my keyboard a lot more satisfying!
I'm pretty sure this solution would have worked on 18.04. The only reason I'm on 19.04 is because I upgraded in an attempt to get this keyboard to work!
This may sound silly but I was trying for hours to connect...
Then I realised that the keyboard and mouse have a USB wireless receiver that you must plug in to a USB port!
This receiver is hidden inside the mouse next to the batteries and on/off switch. Simply remove and plug in and your keyboard and mouse should work out the box on 20.04....