RPi-Distro / pi-bluetooth

Loads BCM43430A1 firmware on boot
42 stars 34 forks source link

Multiple fixes #21

Closed pelwell closed 3 years ago

pelwell commented 3 years ago

Rationalise the Bluetooth helper services so that they run before bluetoothd, avoiding the need to restart it if the BT address changes. At a later date the two services could possibly be unified.

These scripts should be revisited when the reason for the need to power-cycle the interface to permit Secure Simple Pairing work is known.

Signed-off-by: Phil Elwell phil@raspberrypi.com

pelwell commented 3 years ago

@XECDesign With this patch everything seems to work - Secure Simple Pairing, programmed and unprogrammed BDADDRs, with and without krnbt (BT modem initialisation by the kernel) - except the unprogrammed+krnbt combination which fails because the kernel spots the invalid address and effectively disables the interface.

pelwell commented 3 years ago

@maxnet You might want to give this a try before it gets merged.

XECDesign commented 3 years ago

Many thanks, Phil. I've added the updated package to the internal repo for testing.

va1entin commented 3 years ago

I have installed the package version containing these changes yesterday and unfortunately some of them appear to have broken bluetooth.service on my Pi 4. Only after the changes in #22 bluetooth.service starts reliably again after a reboot.