First off thank you for your assistance in advance! I have a Raspberry Pi 4 with Hudiy installed. I have an Alpine ute-73bt head unit installed and have successfully connected to the Bluetooth from my Raspberry Pi. I have no audio playing from Hudiy, but if I exit the software to the base OS and go to YouTube on Chromium, I get the sound through the head unit seamless. Any idea of why Hudiy is not playing through the same Bluetooth channel?
Thank you for your assistance.
Keith
Audio Not working Hudiy
Re: Audio Not working Hudiy
Hello,
This configuration is likely not possible with a single Bluetooth module due to throughput limitations. Most Bluetooth modules can only handle one active A2DP (high quality audio) connection at a time. If you are connecting to your phone and the head unit simultaneously, that requires two concurrent A2DP streams.
Possible solutions:
You can use two separate Bluetooth modules. This will likely require additional configuration within PipeWire (subsystem that handles audio in Linux). In Hudiy, you can specify the hardware address of the module dedicated to the phone connection: https://github.com/wiboma/hudiy/blob/ma ... #bluetooth.
Use an Analog to Bluetooth adapter. Audio would exit the Raspberry Pi via the built-in jack (though we advise against this due to poor DAC quality) or a USB sound card. The adapter then converts the analog signal to Bluetooth and your head unit pairs directly with the adapter.
You can pair your phone directly with the head unit and disable audio routing through Hudiy. For Android Auto set speechAudio and mediaAudio to false - https://github.com/wiboma/hudiy/blob/ma ... ndroidAuto. For CarPlay set captureAudioOutput to false - https://github.com/wiboma/hudiy/blob/ma ... md#autobox.
This configuration is likely not possible with a single Bluetooth module due to throughput limitations. Most Bluetooth modules can only handle one active A2DP (high quality audio) connection at a time. If you are connecting to your phone and the head unit simultaneously, that requires two concurrent A2DP streams.
Possible solutions:
You can use two separate Bluetooth modules. This will likely require additional configuration within PipeWire (subsystem that handles audio in Linux). In Hudiy, you can specify the hardware address of the module dedicated to the phone connection: https://github.com/wiboma/hudiy/blob/ma ... #bluetooth.
Use an Analog to Bluetooth adapter. Audio would exit the Raspberry Pi via the built-in jack (though we advise against this due to poor DAC quality) or a USB sound card. The adapter then converts the analog signal to Bluetooth and your head unit pairs directly with the adapter.
You can pair your phone directly with the head unit and disable audio routing through Hudiy. For Android Auto set speechAudio and mediaAudio to false - https://github.com/wiboma/hudiy/blob/ma ... ndroidAuto. For CarPlay set captureAudioOutput to false - https://github.com/wiboma/hudiy/blob/ma ... md#autobox.
Hudiy Team
Re: Audio Not working Hudiy
So I am using a USB cable to connect my phone. I was able to use this configuration (Phone - USB - OpenAutoPro - BlueTooth - Head Unit (Alpine)) to connect previously. So it is only a single connection being made by the bluetooth from the Pi to the head unit.
As stated, this is working fine using youtube over bluetooth to the head unit, so I'm assuming pulseaudio may not be capturing the sink. I've tried to get in and look at the configuration of pulseaudio, but have had no luck viewing this or even starting the service after install (no errors during install).
As stated, this is working fine using youtube over bluetooth to the head unit, so I'm assuming pulseaudio may not be capturing the sink. I've tried to get in and look at the configuration of pulseaudio, but have had no luck viewing this or even starting the service after install (no errors during install).
Re: Audio Not working Hudiy
The system you are mentioning seems to be very old, as PulseAudio hasn't been used in Debian-based systems (like Raspberry Pi OS) for a long time. The current standard for audio handling in Linux is PipeWire. Are you connecting your phone to the Raspberry Pi via Bluetooth?
Please post in this thread a screenshot from the qpwgraph program (sudo apt install qpwgraph) while your phone is connected to Android Auto via USB (to check the audio routing generated by PipeWire).
Please post in this thread a screenshot from the qpwgraph program (sudo apt install qpwgraph) while your phone is connected to Android Auto via USB (to check the audio routing generated by PipeWire).
Hudiy Team
Re: Audio Not working Hudiy
Thank you very much. Yes, sorry, I reverted back to my original troubleshooting with OpenAuto Pro on my older Pi which was PulseAudio. When I'm back at my vehicle, I will post an update with the qpwgraph. Please stand by for tomorrow. Thanks again.
Re: Audio Not working Hudiy
Sorry to ask, is there a way to drop out of Hudiy without exiting the program completely? I connect the phone and it begins playing (Because it recognizes the bluetooth head unit on boot) but as always, no sound. I have gone into bluetoothctl, connected to the headunit and then trusted it through the connection.
I can tell you when I do pactl list sinks this is what I get returned....for some reason it continually moves into suspended state
Sink #141
State: SUSPENDED
Name: bluez_output.F4_6A_DD_C4_5A_FE.1
Description: UTE-73BT
Driver: PipeWire
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: bluez_output.F4_6A_DD_C4_5A_FE.1.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
api.bluez5.address = "F4:6A:DD:C4:5A:FE"
api.bluez5.codec = "sbc"
api.bluez5.profile = "a2dp-sink"
api.bluez5.transport = ""
bluez5.loopback = "false"
card.profile.device = "1"
device.id = "123"
device.routes = "1"
factory.name = "api.bluez5.a2dp.sink"
device.description = "UTE-73BT"
node.name = "bluez_output.F4_6A_DD_C4_5A_FE.1"
node.pause-on-idle = "false"
priority.driver = "1010"
priority.session = "1010"
spa.object.id = "1"
factory.id = "12"
clock.quantum-limit = "8192"
device.api = "bluez5"
media.class = "Audio/Sink"
media.name = "UTE-73BT"
node.driver = "true"
port.group = "stream.0"
node.loop.name = "data-loop.0"
library.name = "audioconvert/libspa-audioconvert"
object.id = "124"
object.serial = "141"
client.id = "47"
api.bluez5.class = "0x340408"
api.bluez5.connection = "connected"
api.bluez5.device = ""
api.bluez5.icon = "audio-headset"
api.bluez5.path = "/org/bluez/hci0/dev_F4_6A_DD_C4_5A_FE"
bluez5.auto-connect = "[ hfp_hf hsp_hs a2dp_sink hfp_ag hsp_ag a2dp_source ]"
bluez5.profile = "off"
device.alias = "UTE-73BT"
device.bus = "bluetooth"
device.form_factor = "hands-free"
device.icon_name = "audio-handsfree-bluetooth"
device.name = "bluez_card.F4_6A_DD_C4_5A_FE"
device.string = "F4:6A:DD:C4:5A:FE"
I can tell you when I do pactl list sinks this is what I get returned....for some reason it continually moves into suspended state
Sink #141
State: SUSPENDED
Name: bluez_output.F4_6A_DD_C4_5A_FE.1
Description: UTE-73BT
Driver: PipeWire
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: bluez_output.F4_6A_DD_C4_5A_FE.1.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
api.bluez5.address = "F4:6A:DD:C4:5A:FE"
api.bluez5.codec = "sbc"
api.bluez5.profile = "a2dp-sink"
api.bluez5.transport = ""
bluez5.loopback = "false"
card.profile.device = "1"
device.id = "123"
device.routes = "1"
factory.name = "api.bluez5.a2dp.sink"
device.description = "UTE-73BT"
node.name = "bluez_output.F4_6A_DD_C4_5A_FE.1"
node.pause-on-idle = "false"
priority.driver = "1010"
priority.session = "1010"
spa.object.id = "1"
factory.id = "12"
clock.quantum-limit = "8192"
device.api = "bluez5"
media.class = "Audio/Sink"
media.name = "UTE-73BT"
node.driver = "true"
port.group = "stream.0"
node.loop.name = "data-loop.0"
library.name = "audioconvert/libspa-audioconvert"
object.id = "124"
object.serial = "141"
client.id = "47"
api.bluez5.class = "0x340408"
api.bluez5.connection = "connected"
api.bluez5.device = ""
api.bluez5.icon = "audio-headset"
api.bluez5.path = "/org/bluez/hci0/dev_F4_6A_DD_C4_5A_FE"
bluez5.auto-connect = "[ hfp_hf hsp_hs a2dp_sink hfp_ag hsp_ag a2dp_source ]"
bluez5.profile = "off"
device.alias = "UTE-73BT"
device.bus = "bluetooth"
device.form_factor = "hands-free"
device.icon_name = "audio-handsfree-bluetooth"
device.name = "bluez_card.F4_6A_DD_C4_5A_FE"
device.string = "F4:6A:DD:C4:5A:FE"
Re: Audio Not working Hudiy
Additionally, when connecting the phone via USB I receive the following error (see attached please)
- Attachments
-
- thumbnail.jpg (367.43 KiB) Viewed 516 times
Re: Audio Not working Hudiy
This popup comes from pcmanfm (Raspberry PI file manager). Pcmanfm tries to mount connected USB device as an MTP drive. You can disable it in pcmanfm settings.
viewtopic.php?p=570#p570
You can set framelessWindow to false. This will prompt labwc to show the window title bar with buttons for actions like minimizing the window.
https://github.com/wiboma/hudiy/blob/ma ... pplication
viewtopic.php?p=570#p570
You can set framelessWindow to false. This will prompt labwc to show the window title bar with buttons for actions like minimizing the window.
https://github.com/wiboma/hudiy/blob/ma ... pplication
Hudiy Team
Re: Audio Not working Hudiy
alt-spacebar brings up the screen menu, from there you can minimize and work in the underlying UI. Click on the Hudiy tab to restore.