Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux issue: can't pair on first try #205

Closed
limpkin opened this issue Nov 17, 2020 · 4 comments
Closed

Linux issue: can't pair on first try #205

limpkin opened this issue Nov 17, 2020 · 4 comments

Comments

@limpkin
Copy link
Contributor

limpkin commented Nov 17, 2020

Looking at journalctl -b

Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/deviceinfo/deviceinfo.c:read_pnpid_cb() Error reading PNP_ID value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/deviceinfo/deviceinfo.c:read_pnpid_cb() Error reading PNP_ID value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/deviceinfo/dis.c:read_pnpid_cb() Error reading PNP_ID value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:info_read_cb() HID Information read failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_map_read_cb() Report Map read failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:info_read_cb() HID Information read failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_map_read_cb() Report Map read failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
Nov 17 23:16:37 limpkins bluetoothd[1415]: profiles/input/hog-lib.c:proto_mode_read_cb() Protocol Mode characteristic read failed: Request attribute has encountered an unlikely error

It seems that due to these errors the pairing procedure fails on Linux's side (see warning in the picture below)

image

FYI, a correct pairing procedure looks like this:

image

My guess is that Arch doesn't check the permissions associated with the characteristics and therefore tries to access them before it is paired with the device.

@limpkin
Copy link
Contributor Author

limpkin commented Nov 22, 2020

So it doesn't seem like this issue was related to the impossibility to read characteristics.
This issue was initially reported for a Linux OS running in a VM. When trying natively on a machine, the first pairing attempt does fail while the second goes through (somehow...).

@limpkin limpkin changed the title Linux issue: can't pair on Arch Linux issue: can't pair on first try Nov 22, 2020
@haadr
Copy link

haadr commented Nov 23, 2020

Did you pair via a GUI, and if so, which?

Or did you par via bluetoothctl?

@limpkin
Copy link
Contributor Author

limpkin commented Nov 23, 2020

both bluletoothctl and the GUI lead to the first pairing failing...
I'm fairly certain this is not mini BLE related.

@limpkin
Copy link
Contributor Author

limpkin commented Jun 19, 2021

for those finding this bug, this was fixed with a recent bluez update (check the associated issues).
you'll likely have to compile bluez from scratch.

@limpkin limpkin closed this as completed Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants