You are not logged in.

#1 2024-03-15 02:25:04

redshoe
Member
Registered: 2015-12-16
Posts: 217

[solved] Bluetooth keyboard connecting and disconnecting in infinity

I am using a bluetooth keyboard, and I am having trouble connecting to my computer using bluez 5.73-4.

Here is what I have done.

In `bluetoothctl` environment, I turned on the scan, and I found the keyboard MAC address and when I pair it I get

# [NEW] Device E1:EB:D6:7B:94:2E BT60
# pair E1:EB:D6:7B:94:2E
# [CHG] Device E1:EB:D6:7B:94:2E Connected: yes
# Failed to pair: org.bluez.Error.AuthenticationFailed
# [CHG] Device E1:EB:D6:7B:94:2E Connected: no

So, when I `trust` that MAC address and try to connect it, then I get

# [CHG] Device E1:EB:D6:7B:94:2E Trusted: yes
# Changing E1:EB:D6:7B:94:2E trust succeeded
# connect E1:EB:D6:7B:94:2E
[CHG] Device E1:EB:D6:7B:94:2E Connected: yes
[BT60]# Connection successful
[CHG] Device E1:EB:D6:7B:94:2E Connected: no
[CHG] Device E1:EB:D6:7B:94:2E Connected: yes
[CHG] Device E1:EB:D6:7B:94:2E Connected: no
[CHG] Device E1:EB:D6:7B:94:2E Connected: yes
[CHG] Device E1:EB:D6:7B:94:2E Connected: no
[CHG] Device E1:EB:D6:7B:94:2E Connected: yes
[CHG] Device E1:EB:D6:7B:94:2E Connected: no
[CHG] Device E1:EB:D6:7B:94:2E Connected: yes
[CHG] Device E1:EB:D6:7B:94:2E Connected: no
[CHG] Device E1:EB:D6:7B:94:2E Connected: yes
[CHG] Device E1:EB:D6:7B:94:2E Connected: no
[CHG] Device E1:EB:D6:7B:94:2E Connected: yes
[CHG] Device E1:EB:D6:7B:94:2E Connected: no
[CHG] Device E1:EB:D6:7B:94:2E Connected: yes
[CHG] Device E1:EB:D6:7B:94:2E Connected: no
[CHG] Device E1:EB:D6:7B:94:2E Connected: yes
[CHG] Device E1:EB:D6:7B:94:2E Connected: no
[CHG] Device E1:EB:D6:7B:94:2E Con...

Then hell breaks loose.

Looking at the dmesg, relevant message is

Bluetooth: hci0: unexpected SMP command 0x0b from e1:eb:d6:7b:94:2e

I've been googling this for hours, and I have no clue what to make of it. Weird thing is the keyboard used to work fine, but when I removed the device from my computer and try to pair/connect it again, it is not acting up. I don't know what to do. Any help would be gratetful.

Thank you.

Last edited by redshoe (2024-03-19 01:25:06)

Offline

#2 2024-03-19 01:25:49

redshoe
Member
Registered: 2015-12-16
Posts: 217

Re: [solved] Bluetooth keyboard connecting and disconnecting in infinity

As it turns out, there was nothing wrong with bluez. I forgot to release the bluetooth profile connection profile from my keyboard.

Offline

Board footer

Powered by FluxBB