Bluez 5.63-1 breaks pairing

This forum is for discussion about general software issues.

Bluez 5.63-1 breaks pairing

Postby keithspg » Thu Jan 27, 2022 12:40 am

This package updated recently and ever since it updated, I cannot pair devices on any RPi v6/v7 or aarch64. Reverting to 5.62-1 solves it. I posted a bug to the bluez group but no action has yet been taken. If a device is already paired, it seems to still function, but pairing a new devices causes a seg fault. I am guessing it is a bluez issue and arch arm, but thought I'd mention it here. Every time I try to pair, I get a pair then it seg faults then bluetoothd will not restart.
$this->bbcode_second_pass_code('', '# /usr/lib/bluetooth/bluetoothd -n -d
bluetoothd[5934]: Bluetooth daemon 5.63
...
bluetoothd[5934]: src/adapter.c:connected_callback() hci0 device F8:1F:32:XX:XX:XX connected eir_len 17
bluetoothd[5934]: src/device.c:device_create() dst F8:1F:32:XX:XX:XX
bluetoothd[5934]: src/device.c:device_new() address F8:1F:32:XX:XX:XX
bluetoothd[5934]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_F8_1F_32_39_FE_31
bluetoothd[5934]: src/device.c:device_set_class() /org/bluez/hci0/dev_F8_1F_32_XX_XX_XX 0x5A020C
bluetoothd[5934]: src/adapter.c:new_link_key_callback() hci0 new key for F8:1F:32:XX:XX:XX type 7 pin_len 0 store_hint 1
bluetoothd[5934]: src/adapter.c:store_link_key() Unable to load key file from /var/lib/bluetooth/43:45:C0:XX:XX:XX/F8:1F:32:XX:XX:XX/info: (No such file or directory)
bluetoothd[5934]: GLib: g_file_set_contents_full: assertion 'error == NULL || *error == NULL' failed
bluetoothd[5934]: src/adapter.c:store_link_key() Unable set contents for /var/lib/bluetooth/43:45:C0:XX:XX:XX/F8:1F:32:XX:XX:XX/info: (7)
bluetoothd[5934]: GLib: (../glib/glib/gkeyfile.c:3877):g_key_file_remove_key_value_pair_node: runtime check failed: (pair->value != NULL)
bluetoothd[5934]: src/device.c:device_set_bonded()
bluetoothd[5934]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[5934]: src/device.c:device_bonding_complete() bonding (nil) status 0x00
bluetoothd[5934]: src/device.c:device_bonding_complete() setting timer for reverse service discovery
bluetoothd[5934]: src/adapter.c:resume_discovery()
bluetoothd[5934]: src/adapter.c:add_accept_list_complete() F8:1F:32:XX:XX:XX added to kernel accept list
Segmentation fault (core dumped)')
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Re: Bluez 5.63-1 breaks pairing

Postby graysky » Thu Jan 27, 2022 9:33 pm

Did you see the commented lines in /boot/config.txt
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Bluez 5.63-1 breaks pairing

Postby solskogen » Fri Jan 28, 2022 6:48 am

bluetooth is broken again...

$this->bbcode_second_pass_code('', '[bluetooth]# power on
No default controller available
')
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluez 5.63-1 breaks pairing

Postby graysky » Fri Jan 28, 2022 8:02 am

I am on linux-rpi 5.15.16-1 aarch64 with bluez and bluez-utils 5.63. Is this the expected behavior?
$this->bbcode_second_pass_code('', '
# systemctl start bluetooth

# bluetoothctl
Agent registered
[CHG] Controller DC:A6:32:xx:xx:xx Pairable: yes

[bluetooth]# power on
Changing power on succeeded
[CHG] Controller DC:A6:32:xx:xx:xx Powered: yes
[bluetooth]#
')

And

$this->bbcode_second_pass_code('', '% cat /boot/config.txt
# See /boot/overlays/README for all available options

#dtoverlay=vc4-kms-v3d
#initramfs initramfs-linux.img followkernel

# Uncomment to enable bluetooth
dtparam=krnbt=on

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
include kodi.config.txt
')
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Bluez 5.63-1 breaks pairing

Postby solskogen » Fri Jan 28, 2022 12:47 pm

Yes it is.

This is what happens with linux-rpi

$this->bbcode_second_pass_code('', '[root@sif ~]# systemctl start bluetooth
[root@sif ~]# systemctl status bluetooth
* bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2022-01-28 08:04:49 CET; 5h 41min ago
Docs: man:bluetoothd(8)
Main PID: 583 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 3941)
CPU: 26ms
CGroup: /system.slice/bluetooth.service
`-583 /usr/lib/bluetooth/bluetoothd

Jan 28 08:04:49 sif systemd[1]: Starting Bluetooth service...
Jan 28 08:04:49 sif bluetoothd[583]: Bluetooth daemon 5.63
Jan 28 08:04:49 sif systemd[1]: Started Bluetooth service.
Jan 28 08:04:49 sif bluetoothd[583]: Starting SDP server
Jan 28 08:04:49 sif bluetoothd[583]: Bluetooth management interface 1.18 initialized
[root@sif ~]# bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
')
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluez 5.63-1 breaks pairing

Postby graysky » Fri Jan 28, 2022 1:01 pm

But on linux-rpi you cannot pair devices? I do not have a functional bluetooth keyboard anymore so I cannot test.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Bluez 5.63-1 breaks pairing

Postby solskogen » Fri Jan 28, 2022 1:26 pm

$this->bbcode_second_pass_code('', '
[ 3.915712] Bluetooth: Core ver 2.22
[ 3.915783] Bluetooth: HCI device and connection manager initialized
[ 3.915796] Bluetooth: HCI socket layer initialized
[ 3.915803] Bluetooth: L2CAP socket layer initialized
[ 3.915814] Bluetooth: SCO socket layer initialized
[ 3.962378] Bluetooth: HCI UART driver ver 2.3
[ 3.962387] Bluetooth: HCI UART protocol H4 registered
[ 3.962390] Bluetooth: HCI UART protocol BCSP registered
[ 3.962452] Bluetooth: HCI UART protocol LL registered
[ 3.962454] Bluetooth: HCI UART protocol ATH3K registered
[ 3.962473] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 3.962578] Bluetooth: HCI UART protocol Broadcom registered
[ 4.355124] Bluetooth: hci0: BCM: chip id 130
[ 4.355353] Bluetooth: hci0: BCM: features 0x0f
[ 4.356388] Bluetooth: hci0: BCM4345C5
[ 4.356397] Bluetooth: hci0: BCM4345C5 (003.006.006) build 0000
[ 4.359529] Bluetooth: hci0: BCM4345C5 'brcm/BCM.hcd' Patch
[ 4.907551] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4.907558] Bluetooth: BNEP filters: protocol multicast
[ 4.907568] Bluetooth: BNEP socket layer initialized
[ 6.878660] Bluetooth: hci0: command 0xfc18 tx timeout
[ 15.070637] Bluetooth: hci0: BCM: failed to write update baudrate (-110)
[ 17.086637] Bluetooth: hci0: command 0x0c03 tx timeout
[ 25.310636] Bluetooth: hci0: BCM: Reset failed (-110)

')
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluez 5.63-1 breaks pairing

Postby keithspg » Tue Feb 22, 2022 8:13 pm

I need to get back to this. @graysky, Yes I saw the commented bt enable, and enabled it. The problem I saw is not that it does not work, it is that it does not allow a device to pair. I reverted to 5.62 and can pair. Once paired, 5.63 seems fine, it is just when you try to pair that it crashed. A lot of packages have been updated recently and I need to see if pairing is still broken. I do note that 5.63 works fine with my already 'paired and trusted' devices. I will check this again.
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 8 guests