kholbrook1303 / RPI5-Bookworm-ProjectM-Audio-Receiver

GNU General Public License v3.0
9 stars 1 forks source link

Using Bluetooth as a source only works part of the time #20

Closed circuit23 closed 1 month ago

circuit23 commented 7 months ago

When using the bluez Bluetooth card as an audio source, projectM only reacts to the sound about half the time; it goes in and out. This can be seen via the oscilloscope line in the default preset, as well as other presets I've tried. settings: ar_mode=automatic audio_mode=mic

projectMAR.log attached.

projectMAR.log

kholbrook1303 commented 7 months ago

I am out of town till tomorrow evening so acces is limited. I see there is a alsa_output.usb-Plugable_Plugable_USB_Audio_Device_000000000000-00.analog-stereo connected. This would interfere with BT if the BT device was appearing in PA as a source but its not (Curently the system prioritizes USB over onboard BT and only supports a single device connected which is why that would be an issue if BT was seen in PA).

I have heard reports of PA not being the initial default. In my base bookworm image it was. Maybe we are missing the PA component of BT.

Can you run a 'sudo apt get install pulseaudio-module-bluetooth'?

Curious if that is installed and perhaps why we aren't seeing the BT source in PA.

circuit23 commented 7 months ago

pulseaudio-module-bluetooth was already installed at latest version. I should have a USB Bluetooth adapter this evening, I'll try with that and see if there's any difference. Maybe the priorities/defaults will be straightened out that way.

kholbrook1303 commented 7 months ago

Not sure if this is relevant to the issue but I noticed while adding the bt-agent I had no instruction to start the services...

sudo systemctl enable bt-agent sudo systemctl start bt-agent

The bt-agent manages incoming Bluetooth requests (eg. request of pincode, request of authorize a connection/service request, etc)

kholbrook1303 commented 7 months ago

pulseaudio-module-bluetooth was already installed at latest version. I should have a USB Bluetooth adapter this evening, I'll try with that and see if there's any difference. Maybe the priorities/defaults will be straightened out that way.

So I have one more thing to run by you. I did a fresh install of Bookworm from RP Imager and it looks like there have been some changes to the audio server.... I now show "Server Name: PulseAudio (on PipeWire 0.3.65)" when running 'pactl info'. I also noticed changes in BT. So when I have a USB audio device plugged in (In your case you have alsa_output.usb-Plugable_Plugable_USB_Audio_Device_000000000000-00.analog-stereo), BT connects but there is no audio. BT only works if I have my other usb audio devices unplugged. As soon as I plug something in (USB Mic for line in test), it drops.

I need to investigate this further to see why and if there is a workaround.

circuit23 commented 7 months ago

interesting. yes i do have the USB audio interface, it looks very similar to the one you showed in the picture. i do get a BT connection with it plugged in, i even get the BT audio coming out from the card itself, although occasionally it's crackly. i enabled and started the bt-agent, but results were the same. i wonder if it's a location thing- i have my USB audio plugged into one of the black USB 2.0 ports, I haven't tried the blue 3.0 ports for the audio interface.

kholbrook1303 commented 1 month ago

Closing for now as I was not able to reproduce. If there is still an open issue this can always be revisited.