RPi-Distro / pi-bluetooth

Loads BCM43430A1 firmware on boot
42 stars 34 forks source link

Should bluez rpi version be a dependecy anymore? #15

Open mibofra opened 4 years ago

mibofra commented 4 years ago

As learnt from here: https://github.com/RPi-Distro/pi-bluetooth/issues/14 , bdaddr is in bluez rpi version of the package. But with the new master commit not using it anymore, should the rpi version of bluez be maintained as a dependecy in the debian package, or bluez rpi version provides something more?

XECDesign commented 4 years ago

It could probably be downgraded to the +rpt1 version, but there are other changes not in the Debian package.

mibofra commented 4 years ago

I've tested the latest versions of the bt support scripts with bluez from vanilla debian @XECDesign , the bluetooth is working fine. What is in bluez modded version to still be a dependency? (I could just to a diff between the two packages)

XECDesign commented 4 years ago

Add-avdtp_set_priority.txt raspberry-pi-mods.txt

mibofra commented 4 years ago

@XECDesign https://github.com/RPi-Distro/firmware-nonfree/issues/8#issuecomment-673309390 this comment, the user used bluez_5.50-1.2~deb10u1_armhf.deb from debian. However, it's pretty specific, the suggestion is to make another bluez package, like bluez-rpi, not replacing the one from vanilla debian, but making it conflicting and providing it. So if bluez-rpi is installed, bluez is not installed.

When building the rpi image, having simply bluez-rpi in the packages list, will install it instead of bluez.

Example usage: other distros are not rpios, can import them directly of using rpios repos, to use them, without having package conflicts. Maybe that isn't the usual case, but it can be useful too.

seamusdemora commented 4 years ago

I have never had any luck getting BT on RPi3B+ to do anything useful. I gave up trying abt 2 years ago, after applying numerous "snake-oil" fixes. I've just seen a post on RPi SE wherein the OP implied he fixed his issues by applying this recipe. It is a mystery to me how the OP "fixed" his problem (also with a RPi3B+) with this recipe, but since nothing else has worked, I tried it also :P

Here's a synopsis:

pi@raspberrypi3b:~ $ apt info firmware-brcm80211 | grep Version
Version: 1:20190114-1+rpt7 
pi@raspberrypi3b:~ $ dpkg --status bluez | grep '^Version:'
Version: 5.50-1.2~deb10u1+rpt2
pi@raspberrypi3b:~ $ wget http://ftp.hk.debian.org/debian/pool/main/b/bluez/bluez_5.50-1.2~deb10u1_armhf.deb
...
Saving to: ‘bluez_5.50-1.2~deb10u1_armhf.deb’
pi@raspberrypi3b:~ $ sudo apt install ./bluez_5.50-1.2~deb10u1_armhf.deb
...
Note, selecting 'bluez' instead of './bluez_5.50-1.2~deb10u1_armhf.deb'
...
The following packages will be REMOVED:
  pi-bluetooth
The following packages will be DOWNGRADED:
  bluez
...
Do you want to continue? [Y/n] Y
...
Removing pi-bluetooth (0.1.14) ...
dpkg: warning: downgrading bluez from 5.50-1.2~deb10u1+rpt2 to 5.50-1.2~deb10u1
...
pi@raspberrypi3b:~ $ dpkg --status bluez | grep '^Version:'
Version: 5.50-1.2~deb10u1

In summary, it seems I've downgraded FROM: Version: 5.50-1.2~deb10u1+rpt2 TO: Version: 5.50-1.2~deb10u1.

Since making these changes, I've not tried to make any BT connections - my confidence is low that this will improve things. Can anyone offer any enlightenment, or is BT on Pi3B+ simply a hopeless cause?

sebastianeferrer commented 3 years ago

Since making these changes, I've not tried to make any BT connections - my confidence is low that this will improve things. Can anyone offer any enlightenment, or is BT on Pi3B+ simply a hopeless cause?

Dear @seamusdemora be happy now! This bugfix will through light to you solving the conflicts between wifi and bt on any Rpi model using CYW43455.

Check it out here -> https://github.com/RPi-Distro/firmware-nonfree/issues/8

seamusdemora commented 3 years ago

@sebastianeferrer 👍 Thank you for the update - I've added a comment to the referenced RPi SE Q&A.

I will take your advice and "be happy now" :) However... issues with Bluetooth on RPi go well beyond the WiFi-BT interference issue. To blether just a wee bit:

  1. I finally did make some progress wrt BT on my RPi system REF this Q&A. I can state unequivocally that it had nothing to do with WiFi (it's not enabled on this RPi). I feel the issue is rather one of poor documentation, and (perhaps) some dodgy software! Why should BT be virtually unusable on a headless RPi (RPi OS Lite) when it is largely a "point-and-click" operation in the GUI??
  2. I don't know any of the details on the changes you've made in the bugfix. If it helps those who use BT and WiFi together, then bully for you! :) But as I understand it: all RPis share their 2.4 GHz antenna with WiFi and BT, and if that's the case, there will always be issues that software cannot overcome.