openDsh / dash

Join us on Slack! https://join.slack.com/t/opendsh/shared_invite/zt-la398uly-a6eMH5ttEQhbtE6asVKx4Q
GNU General Public License v3.0
238 stars 69 forks source link

No Android Audio Screen #117

Closed JesseMFrey closed 2 years ago

JesseMFrey commented 2 years ago

Issue

Running cb073e60cf4adf95dad980e99f8be5ed76c654a1

Hardware

Device Connection Method Screen Mobile Device Android Auto Version
Raspberry Pi 4 4GB USB Cable Official Raspberry 7" Screen Google Pixel 5 7.3.620524-release

Installation Method: Install.sh (modified a bit so it worked)

Description of problem:

When phone is plugged in, android audio is not shown.

Expected Result:

I expect to see android audio screen with maps etc...

Problem-relevant steps to reproduce:

  1. Start Dash
  2. Plug in phone
  3. Wait for Android Auto logo to turn blue
  4. Wait for Android Auto screen to appear ( does not happen)

Console output:

opendash ~/openauto/dash $ DISPLAY=:0 bin/dash QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-opendash' [2022-03-11 10:19:38.853569] [0xb6e0e040] [info] [Dash] [Bluetooth] Init [2022-03-11 10:19:38.959023] [0xb6e0e040] [warning] [OpenAuto] [Configuration] failed to read configuration file: openauto.ini, error: openauto.ini: cannot open file. Using default configuration. [2022-03-11 10:19:38.975879] [0xb6e0e040] [info] [OpenAuto] [AndroidBluetoothServer] listening. [2022-03-11 10:19:38.985525] [0xb6e0e040] [info] [OpenAuto] [btservice] Listening for connections, address: DC:A6:32:4B:19:86, port: 22 [2022-03-11 10:19:38.987537] [0xb6e0e040] [info] [OpenAuto] [btservice] Service registered, port: 22 [2022-03-11 10:19:38.987829] [0xb6e0e040] [info] [OpenAuto] [btservice] Attempting to connect to last bluetooth device, 00:00:00:00:00:00 with bluetoothctl [2022-03-11 10:19:39.023291] [0xb6e0e040] [info] [OpenAuto] SERVICE FACTORY INITED [2022-03-11 10:19:39.025815] [0xb6e0e040] [info] [OpenAuto] [App] Waiting for USB device... [2022-03-11 10:19:39.026223] [0xb6e0e040] [info] [OpenAuto] [App] Waiting for Wireless device... [2022-03-11 10:19:39.026790] [0xa02fb200] [info] [OpenAuto] [App] Devices enumeration result: false propsReply "Method \"GetAll\" with signature \"s\" on interface \"org.freedesktop.DBus.Properties\" doesn't exist\n" nmReply "Method \"GetDevices\" with signature \"\" on interface \"org.freedesktop.NetworkManager\" doesn't exist\n" "Object path cannot be empty" [2022-03-11 10:19:42.263485] [0xb6e0e040] [info] [Dash] [ELM327] Connecting elm disabled [2022-03-11 10:19:42.263606] [0xb6e0e040] [info] [Dash] [Gauges] Registered frame handler for id 2024 [2022-03-11 10:19:42.263935] [0xb6e0e040] [info] [Dash] [Gauges] Registered frame handler for id 2024 [2022-03-11 10:19:42.264349] [0xb6e0e040] [info] [Dash] [Gauges] Registered frame handler for id 2024 [2022-03-11 10:19:42.264780] [0xb6e0e040] [info] [Dash] [Gauges] Registered frame handler for id 2024 [2022-03-11 10:19:42.851299] [0xb6e0e040] [info] [Dash] [Bluetooth] Init complete! [2022-03-11 10:19:42.851889] [0xb6e0e040] [info] [Dash] [Bluetooth] Has Adapter: true, Has Media Device: false [2022-03-11 10:20:01.797171] [0xa0afc200] [info] [OpenAuto] [App] USB Device connected. [2022-03-11 10:20:01.800488] [0xb6e0e040] [debug] [OpenAuto] [AudioInput] create. PulseAudioService: pa_context_connect() failed [2022-03-11 10:20:01.814035] [0xb6e0e040] [debug] [OpenAuto] [QtVideoOutput] create. [2022-03-11 10:20:01.926688] [0xa0afc200] [info] [OpenAuto] [InputService] Created [2022-03-11 10:20:01.926815] [0xa0afc200] [info] [OpenAuto] [AndroidAutoEntity] start. [2022-03-11 10:20:01.926880] [0xa0afc200] [info] [OpenAuto] [AudioInputService] start. [2022-03-11 10:20:01.927519] [0xa0afc200] [info] [OpenAuto] [AudioService] start, channel: MEDIA_AUDIO [2022-03-11 10:20:01.927605] [0xa0afc200] [info] [OpenAuto] [AudioService] start, channel: SPEECH_AUDIO [2022-03-11 10:20:01.927685] [0xa0afc200] [info] [OpenAuto] [AudioService] start, channel: SYSTEM_AUDIO [2022-03-11 10:20:01.927747] [0xa0afc200] [info] [OpenAuto] [SensorService] start. [2022-03-11 10:20:01.927822] [0xa0afc200] [info] [OpenAuto] [VideoService] start. [2022-03-11 10:20:01.927953] [0xa0afc200] [info] [OpenAuto] [BluetoothService] start. [2022-03-11 10:20:01.928068] [0xa0afc200] [info] [AaSdk] [BluetoothServiceChannel] receive [2022-03-11 10:20:01.928170] [0xa0afc200] [info] [OpenAuto] [NavigationStatusService] start. [2022-03-11 10:20:01.928321] [0xa0afc200] [info] [AaSdk] [NavigationStatusServiceChannel] receive [2022-03-11 10:20:01.928406] [0xa0afc200] [info] [OpenAuto] [MediaStatusService] start. [2022-03-11 10:20:01.928543] [0xa0afc200] [info] [OpenAuto] [InputService] start. [2022-03-11 10:20:01.937160] [0xa0afc200] [info] [OpenAuto] [AndroidAutoEntity] version response, version: 1.7, status: 0 [2022-03-11 10:20:01.937226] [0xa0afc200] [info] [OpenAuto] [AndroidAutoEntity] Begin handshake. [2022-03-11 10:20:01.964693] [0x9fafa200] [info] [OpenAuto] [AndroidAutoEntity] Handshake, size: 2282 [2022-03-11 10:20:01.991170] [0x9fafa200] [info] [OpenAuto] [AndroidAutoEntity] continue handshake. [2022-03-11 10:20:02.003818] [0xa0afc200] [info] [OpenAuto] [AndroidAutoEntity] Handshake, size: 51 [2022-03-11 10:20:02.004200] [0xa0afc200] [info] [OpenAuto] [AndroidAutoEntity] Auth completed. [2022-03-11 10:20:02.017991] [0xa02fb200] [info] [OpenAuto] [AndroidAutoEntity] Discovery request, device name: Android, brand: Google Pixel 5 [2022-03-11 10:20:02.018087] [0xa02fb200] [info] [OpenAuto] [AudioInputService] fill features. [2022-03-11 10:20:02.018155] [0xa02fb200] [info] [OpenAuto] [AudioService] fill features, channel: MEDIA_AUDIO [2022-03-11 10:20:02.018209] [0xa02fb200] [info] [OpenAuto] [AudioService] fill features, channel: SPEECH_AUDIO [2022-03-11 10:20:02.018304] [0xa02fb200] [info] [OpenAuto] [AudioService] fill features, channel: SYSTEM_AUDIO [2022-03-11 10:20:02.018356] [0xa02fb200] [info] [OpenAuto] [SensorService] fill features. [2022-03-11 10:20:02.018410] [0xa02fb200] [info] [OpenAuto] [VideoService] fill features. [2022-03-11 10:20:02.018471] [0xa02fb200] [info] [OpenAuto] [BluetoothService] fill features [2022-03-11 10:20:02.018521] [0xa02fb200] [info] [OpenAuto] [NavigationStatusService] fill features [2022-03-11 10:20:02.018626] [0xa02fb200] [info] [OpenAuto] [MediaStatusService] fill features [2022-03-11 10:20:02.018687] [0xa02fb200] [info] [OpenAuto] [InputService] fill features. [2022-03-11 10:20:02.221394] [0xa02fb200] [info] [OpenAuto] [AndroidAutoEntity] requested audio focus, type: 4 [2022-03-11 10:20:02.221470] [0xa02fb200] [info] [OpenAuto] [AndroidAutoEntity] audio focus state: 3 [2022-03-11 10:20:02.223201] [0xa02fb200] [info] [OpenAuto] [AudioInputService] open request, priority: 0 [2022-03-11 10:20:02.223278] [0xa02fb200] [info] [OpenAuto] [AudioInputService] open status: 0 [2022-03-11 10:20:02.227465] [0xa0afc200] [info] [OpenAuto] [AudioService] open request, channel: MEDIA_AUDIO, priority: 0 [2022-03-11 10:20:02.227538] [0xa0afc200] [debug] [OpenAuto] [AudioService] channel: MEDIA_AUDIO audio output sample rate: 48000, sample size: 16, channel count: 2 [2022-03-11 10:20:02.228344] [0x9fafa200] [info] [OpenAuto] [AudioService] open request, channel: SPEECH_AUDIO, priority: 0 [2022-03-11 10:20:02.228424] [0x9fafa200] [debug] [OpenAuto] [AudioService] channel: SPEECH_AUDIO audio output sample rate: 16000, sample size: 16, channel count: 1 [2022-03-11 10:20:02.228931] [0xa12fd200] [info] [OpenAuto] [AudioService] open request, channel: SYSTEM_AUDIO, priority: 0 [2022-03-11 10:20:02.229025] [0xa12fd200] [debug] [OpenAuto] [AudioService] channel: SYSTEM_AUDIO audio output sample rate: 16000, sample size: 16, channel count: 1

RtApiPulse::DeviceInfo pa_context_connect() failed: Connection refused

[2022-03-11 10:20:02.229611] [0xa0afc200] [error] [OpenAuto] [RtAudioOutput] No output devices found. [2022-03-11 10:20:02.229692] [0xa0afc200] [info] [OpenAuto] [AudioService] open status: 1, channel: MEDIA_AUDIO

RtApiPulse::DeviceInfo pa_context_connect() failed: Connection refused

[2022-03-11 10:20:02.230134] [0x9fafa200] [error] [OpenAuto] [RtAudioOutput] No output devices found. [2022-03-11 10:20:02.230210] [0x9fafa200] [info] [OpenAuto] [AudioService] open status: 1, channel: SPEECH_AUDIO

RtApiPulse::DeviceInfo pa_context_connect() failed: Connection refused

[2022-03-11 10:20:02.230796] [0xa12fd200] [error] [OpenAuto] [RtAudioOutput] No output devices found. [2022-03-11 10:20:02.230881] [0xa12fd200] [info] [OpenAuto] [AudioService] open status: 1, channel: SYSTEM_AUDIO [2022-03-11 10:20:02.230941] [0x9fafa200] [info] [OpenAuto] [SensorService] open request, priority: 0 [2022-03-11 10:20:02.231008] [0x9fafa200] [info] [OpenAuto] [SensorService] open status: 0 [2022-03-11 10:20:02.233193] [0x9fafa200] [info] [OpenAuto] [VideoService] open request, priority: 0 [2022-03-11 10:20:02.233277] [0x9fafa200] [info] [OpenAuto] [VideoService] open status: 0 [2022-03-11 10:20:02.233810] [0xa0afc200] [info] [AaSdk] [NavigationStatusServiceChannel] message handler [2022-03-11 10:20:02.233877] [0xa0afc200] [info] [AaSdk] [NavigationStatusServiceChannel] channel open request [2022-03-11 10:20:02.233939] [0xa0afc200] [info] [OpenAuto] [NavigationStatusService] open request, priority: 0 [2022-03-11 10:20:02.233989] [0xa0afc200] [info] [OpenAuto] [NavigationStatusService] open status: 0 [2022-03-11 10:20:02.234072] [0xa0afc200] [info] [AaSdk] [NavigationStatusServiceChannel] channel open response [2022-03-11 10:20:02.234200] [0xa0afc200] [info] [AaSdk] [NavigationStatusServiceChannel] receive [2022-03-11 10:20:02.234662] [0xa12fd200] [info] [AaSdk] [MediaStatusServiceChannel] channel open request [2022-03-11 10:20:02.234738] [0xa12fd200] [info] [OpenAuto] [MediaStatusService] open request, priority: 0 [2022-03-11 10:20:02.234792] [0xa12fd200] [info] [OpenAuto] [MediaStatusService] open status: 0 [2022-03-11 10:20:02.234839] [0xa12fd200] [info] [AaSdk] [MediaStatusServiceChannel] channel open response [2022-03-11 10:20:02.235472] [0xa0afc200] [info] [OpenAuto] [InputService] open request, priority: 0 [2022-03-11 10:20:02.235539] [0xa0afc200] [info] [OpenAuto] [InputService] open status: 0 [2022-03-11 10:20:02.243795] [0x9fafa200] [info] [OpenAuto] [VideoService] setup request, config index: 3 QObject::setParent: Cannot set parent, new parent is in a different thread [2022-03-11 10:20:02.246015] [0x9fafa200] [info] [OpenAuto] [VideoService] setup status: 2 [2022-03-11 10:20:02.246108] [0xa12fd200] [info] [OpenAuto] [InputService] binding request, scan codes count: 0 [2022-03-11 10:20:02.246191] [0xa12fd200] [info] [OpenAuto] [InputDevice] start. [2022-03-11 10:20:02.246260] [0xa12fd200] [info] [OpenAuto] [InputService] binding request, status: 0 [2022-03-11 10:20:02.246586] [0x9fafa200] [info] [OpenAuto] [VideoService] video focus indication. [2022-03-11 10:20:02.248087] [0x9fafa200] [info] [OpenAuto] [SensorService] sensor start request, type: 13 [2022-03-11 10:20:02.253878] [0xa0afc200] [info] [OpenAuto] [VideoService] start indication, session: 0 [2022-03-11 10:20:02.255053] [0x9fafa200] [info] [OpenAuto] [SensorService] sensor start request, type: 10 qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1349, resource id: 6291482, major code: 130 (Unknown), minor code: 3 qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1363, resource id: 6291482, major code: 130 (Unknown), minor code: 3 qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1366, resource id: 6291482, major code: 130 (Unknown), minor code: 3 qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1402, resource id: 6291482, major code: 130 (Unknown), minor code: 3

Additional info:

Additional Info

icecube45 commented 2 years ago

You might be facing into an issue I haven't been able to track down yet - where rtaudio doesn't see devices. You might want to try changing to qtaudio in the openauto settings and try again. Which OS are you running on your pi?

JesseMFrey commented 2 years ago

I am running Arch Arm.

I'm not seeing rtaudio or qtaudio in the settings, where is it listed?

icecube45 commented 2 years ago

I am not super surprised that arch may be having issues. Android Auto settings are accessible via the gear icon on the top right of the android auto page. I believe we just have it under one switch, so if "rtaudio" is turned off, it should use qtaudio.

robert5974 commented 2 years ago

Is Arch using pipewire by default now? I thought it was. I have no idea if it plays well with rt audio. Maybe something to look into

JesseMFrey commented 2 years ago

@robert5974 don't think so, looks like it's not installed on my pi. Arch doesn't install many things by default...

JesseMFrey commented 2 years ago

@icecube45 I switched off rtaudio, looks like it works now!

icecube45 commented 2 years ago

Glad to hear it - I'd be curious if you could get rtaudio working (as at least in my experience, it functions better), but I'll count this as solved.

JesseMFrey commented 2 years ago

@icecube45 do you have any ideas here? I have never used rtaudio before

icecube45 commented 2 years ago

RtAudio is trying to use pulse, but can't seem to -that's the biggest clue I have RtApiPulse::DeviceInfo pa_context_connect() failed: Connection refused