bablokb / pi-btaudio

Bluetooth Audio for headless Raspbian systems
GNU General Public License v3.0
87 stars 13 forks source link

Speaker not connected at boot #4

Closed stefanofornari closed 4 years ago

stefanofornari commented 4 years ago

Hello, after following the procedure, I rebooted my Raspebbry PI 2B but the device did not connect automatically. Also, I am not sure it is the default now. omxplayer -o alsa does not reproduce any sound, same for aplay.

How can I help troubleshooting?

bablokb commented 4 years ago

The Pi2B does not have bluetooth. Did you use an usb-bluetooth-dongle?

stefanofornari commented 4 years ago

Yep, and it connects when I re-switch the speaker on.

bablokb commented 4 years ago

One part of this project is the service pi-btaudio.service. This is a python-script that waits for bt-events and tries to connect to the configured device. Sometime between the time of writing the script and now the dbus/bt-interface has changed, and I think it does not work anymore as expected. One problem is that the interface is not really documented.

The service actually also tries to manually connect to the configured device (using bluetoothctl), but if this also doesn't work, it might be a problem of your speaker. Maybe it only advertises itself after power on. BT is very hard to debug, there are some sniffer like tools which you could use to verify the behavior, but it's timeconsuming.

stefanofornari commented 4 years ago

Ok, thanks for your answer. how can pi-btaudio be uninstalled?

bablokb commented 4 years ago

First disable the pi-btaudio-service:

sudo systemctl disable pi-btaudio.service

Then remove all installed files. These are the files below files/ in this repositiory. Finally, remove the packages installed by the install-command (see list in tools/install).