bluetoohd 4.85 and later fails to connect properly
Hi everyone,
(I'm glad to post my first message here on linux-bluetooth)
I collect facts about why various Bluetooth adapters stopped working with bluez since 2011. We have several Laptops with Broadcom 2035 adapters "03f0:011d" (chip says BCM92035NMD) where Bluetooth does not work anymore since Ubuntu 11.04 (bluez 4.91). Pairing works, but data transfer does not. Same issue with my mobile (Symbian S60v3.1), my headset and my mini keyboard. Also affected are Android phones and other common Bluetooth adapters like Cambridge Silicon Radio "0a12:0001". See details from other victims on https://bugs.launchpad.net/bugs/839157
With the help of Nikolay Kachanov (he posted here on August 4th) I found that if I replace the package bluez 4.91 with 4.84 then everything works as expected. bluez 4.91 even works if only "/usr/sbin/bluetoothd" is replaced by the one from 4.84, whereas 4.85 does not work anymore. So IMO the regression occurred in bluetoothd 4.85.
I have attached all logs I made using bluez_4.84-0ubuntu1_i386.deb and bluez_4.85-0ubuntu1_i386.deb. With the bluetooth-applet I stopped the bluetooth service, the deleted /var/lib/bluetooth/, replaced bluetoothd, restarted service, did pairing (which always works!) and then tried to connect my mobile (which fails with 4.85).
To me one interesting difference is in bluetoothd_4.8x.log where "plugins/hciops.c:link_key_request()" is missing with 4.85. And an even more suspicious difference is in hcidump-Xt_4.8x.log here:
With bluetoothd 4.84 (which works):
< HCI Command: Create Connection (0x01|0x0005) plen 13
0000: 8d 68 6b 9a 1c 00 18 cc 01 00 ed f3 01 .hk..........
With bluetoothd 4.85 (which fails):
< HCI Command: Create Connection (0x01|0x0005) plen 13
0000: 8d 68 6b 9a 1c 00 18 cc 01 00 78 b6 01 .hk.......x..
Now I hope that someone on this list has an idea where this bug hides. Please just ask if additional info would be helpful!
With kind regards,
+++ Oliver
Quoted 36 lines · Oliver Joos
Hi everyone,
(I'm glad to post my first message here on linux-bluetooth)I collect facts about why various Bluetooth adapters stopped working with bluez since 2011. We have several Laptops with Broadcom 2035 adapters "03f0:011d" (chip says BCM92035NMD) where Bluetooth does not work anymore since Ubuntu 11.04 (bluez 4.91). Pairing works, but data transfer does not. Same issue with my mobile (Symbian S60v3.1), my headset and my mini keyboard. Also affected are Android phones and other common Bluetooth adapters like Cambridge Silicon Radio "0a12:0001". See details from other victims on https://bugs.launchpad.net/bugs/839157
With the help of Nikolay Kachanov (he posted here on August 4th) I found that if I replace the package bluez 4.91 with 4.84 then everything works as expected. bluez 4.91 even works if only "
/usr/sbin/bluetoothd" is replaced by the one from 4.84, whereas 4.85 does not work anymore. So IMO the regression occurred in bluetoothd 4.85.I have attached all logs I made using bluez_4.84-0ubuntu1_i386.deb and bluez_4.85-0ubuntu1_i386.deb. With the bluetooth-applet I stopped the bluetooth service, the deleted
/var/lib/bluetooth/, replaced bluetoothd, restarted service, did pairing (which always works!) and then tried to connect my mobile (which fails with 4.85).To me one interesting difference is in bluetoothd_4.8x.log where "plugins/hciops.c:link_key_request()" is missing with 4.85. And an even more suspicious difference is in hcidump-Xt_4.8x.log here:
With bluetoothd 4.84 (which works):
< HCI Command: Create Connection (0x01|0x0005) plen 13
0000: 8d 68 6b 9a 1c 00 18 cc 01 00 ed f3 01 .hk..........With bluetoothd 4.85 (which fails):
< HCI Command: Create Connection (0x01|0x0005) plen 13
0000: 8d 68 6b 9a 1c 00 18 cc 01 00 78 b6 01 .hk.......x..
Quoted 6 lines
Now I hope that someone on this list has an idea where this bug hides. Please just ask if additional info would be helpful!
With kind regards,
+++ Oliver
No feedback at all? I am surprised.
(Is there a better place for bluez bug repors?)
Since I haven't the time to go deeper into the code, I will spread the word about downgrading to 4.84 next week among the people affected (on launchpad.net ect.)
Thanks for reading,
+++ Oliver
Hi Oliver,
Quoted 47 lines · Oliver Joos
Quoted 36 lines · Oliver Joos
Hi everyone,
(I'm glad to post my first message here on linux-bluetooth)I collect facts about why various Bluetooth adapters stopped working with bluez since 2011. We have several Laptops with Broadcom 2035 adapters "03f0:011d" (chip says BCM92035NMD) where Bluetooth does not work anymore since Ubuntu 11.04 (bluez 4.91). Pairing works, but data transfer does not. Same issue with my mobile (Symbian S60v3.1), my headset and my mini keyboard. Also affected are Android phones and other common Bluetooth adapters like Cambridge Silicon Radio "0a12:0001". See details from other victims on https://bugs.launchpad.net/bugs/839157
With the help of Nikolay Kachanov (he posted here on August 4th) I found that if I replace the package bluez 4.91 with 4.84 then everything works as expected. bluez 4.91 even works if only "
/usr/sbin/bluetoothd" is replaced by the one from 4.84, whereas 4.85 does not work anymore. So IMO the regression occurred in bluetoothd 4.85.I have attached all logs I made using bluez_4.84-0ubuntu1_i386.deb and bluez_4.85-0ubuntu1_i386.deb. With the bluetooth-applet I stopped the bluetooth service, the deleted
/var/lib/bluetooth/, replaced bluetoothd, restarted service, did pairing (which always works!) and then tried to connect my mobile (which fails with 4.85).To me one interesting difference is in bluetoothd_4.8x.log where "plugins/hciops.c:link_key_request()" is missing with 4.85. And an even more suspicious difference is in hcidump-Xt_4.8x.log here:
With bluetoothd 4.84 (which works):
< HCI Command: Create Connection (0x01|0x0005) plen 13
0000: 8d 68 6b 9a 1c 00 18 cc 01 00 ed f3 01 .hk..........With bluetoothd 4.85 (which fails):
< HCI Command: Create Connection (0x01|0x0005) plen 13
0000: 8d 68 6b 9a 1c 00 18 cc 01 00 78 b6 01 .hk.......x..Quoted 6 lines
Now I hope that someone on this list has an idea where this bug hides. Please just ask if additional info would be helpful!
With kind regards,
+++ OliverNo feedback at all? I am surprised.
(Is there a better place for bluez bug repors?)
Quoted 3 lines
Since I haven't the time to go deeper into the code, I will spread the word about downgrading to 4.84 next week among the people affected (on launchpad.net ect.)
I think you are hitting a bug in the kernel. I just looked through
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/839157
and there is the hint I was looking for: hcidump shows 'Connection refused - security block'
I guess you are doing simple pairing and an RFCOMM based profile, right?
Then please try the patch called "[PATCH] Bluetooth: Fix l2cap conn failures for ssp devices" by Peter Hurley just posted a few minutes ago.
HTH,
daniel