Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Anne Pro 2 keyboard won't stay connected via bluetooth with Ubuntu 20.04

Writer Sophia Terry

I tried using the settings panel, blueman-manager and bluetoothctl to connect my keyboard by bluetooth but I always end up with the same result: my keyboard connects and immediately disconnects. The error message looks like this:

[bluetooth]# pair <MAC address>
Attempting to pair with <MAC address>
[CHG] Device <MAC address> Connected: yes
[CHG] Device <MAC address> Connected: no
Failed to pair: org.bluez.Error.AuthenticationCanceled

I updated the firmware to the latest version. Been looking around for similar issues but none of the solutions i found worked for me.

1 Answer

I have had the same issue for a while, IDK why must Bluetooth be such a pain in Ubuntu. This is what seemed to fix it for me so far.

  1. Run bluetoothctl
  2. Run agent on. I don't know what this step quite does, and you can likely skip it.
  3. Now, it is possible that some residual connections are messing up the new one. So let's first disconnect the device altogether. Figure out the MAC address of your keyboard or device and do:
untrust <mac>
disconnect <mac>
  1. Make sure this completes successfuly. Now, try trust <mac> and then pair <mac>. At this point, you may see a verification pin, type it out on the device you are trying to connect (your keyboard) and press enter. I did not know that I had to press enter but without it I kept getting errors.

  2. At this point, the program should tell you that you are paired but not connected. It is time to connect the paired device, do connect <mac>. This should result in a successful pairing.


Something else you could try is sudo systemctl restart bluetooth.service. This will restart your bluetooth service. Before trying the above steps, maybe you should close all other bluetooth managers (the GUI based ones) just so we know that nothing else is trying something as we are trying to accomplish a connection.

14

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy