Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing happens when connecting phone / RPi connected to HDMI screen #1

Closed
vb4life opened this issue Feb 25, 2018 · 13 comments
Closed
Labels
custom-hardware Issues or ideas involving supporting custom hardware

Comments

@vb4life
Copy link

vb4life commented Feb 25, 2018

This is an awesome idea, but it doesn't seem to work for me.

I've flashed the image and can boot the RPi 3 with no problem. The screen comes up, waiting for a device to be connected. However, when I connect my phone (OnePlus 3), Android Auto starts on the phone, but nothing happens with the UI on the PI.

The log shows some errors, but nothing that tells me anything useful:

Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.443027] [0x6d7d0310] [info]    [AaApp] [USBApp] Device connected.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.443862] [0x6d7d0310] [info]    [AaApp] [AndroidAutoEntity] start.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.445805] [0x72807000] [debug]   [AaApp] [AudioInput] create.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.446484] [0x72807000] [debug]   [AaApp] [AudioOutput] create.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.446867] [0x72807000] [debug]   [AaApp] [AudioOutput] create.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.447189] [0x72807000] [debug]   [AaApp] [AudioOutput] create.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.447493] [0x6d7d0310] [info]    [AaApp] [AudioInputService] start.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.454069] [0x6d7d0310] [info]    [AaApp] [AudioService] start, channel: MEDIA_AUDIO
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.454443] [0x6d7d0310] [info]    [AaApp] [AudioService] start, channel: SPEECH_AUDIO
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.454617] [0x6d7d0310] [info]    [AaApp] [AudioService] start, channel: SYSTEM_AUDIO
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.454774] [0x6d7d0310] [info]    [AaApp] [SensorService] start.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.454981] [0x6d7d0310] [info]    [AaApp] [VideoService] start.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.455171] [0x6d7d0310] [info]    [AaApp] [BluetoothService] start.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.455355] [0x6d7d0310] [info]    [AaApp] [InputService] start.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.571513] [0x6e7d0310] [info]    [AaApp] [AndroidAutoEntity] version response, version: 1.4, status: 0
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.571598] [0x6e7d0310] [info]    [AaApp] [AndroidAutoEntity] Begin handshake.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.587691] [0x6d7d0310] [info]    [AaApp] [AndroidAutoEntity] Handshake, size: 2282
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.651121] [0x6d7d0310] [info]    [AaApp] [AndroidAutoEntity] continue handshake.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.664682] [0x6efd0310] [info]    [AaApp] [AndroidAutoEntity] Handshake, size: 51
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.665141] [0x6efd0310] [info]    [AaApp] [AndroidAutoEntity] Auth completed.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.692294] [0x6efd0310] [info]    [AaApp] [AndroidAutoEntity] Discovery request, device name: Android, brand: OnePlus ONEPLUS A3003
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.692371] [0x6efd0310] [info]    [AaApp] [AudioInputService] fill features.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.692423] [0x6efd0310] [info]    [AaApp] [AudioService] fill features, channel: MEDIA_AUDIO
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.692458] [0x6efd0310] [info]    [AaApp] [AudioService] fill features, channel: SPEECH_AUDIO
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.692484] [0x6efd0310] [info]    [AaApp] [AudioService] fill features, channel: SYSTEM_AUDIO
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.692507] [0x6efd0310] [info]    [AaApp] [SensorService] fill features.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.692546] [0x6efd0310] [info]    [AaApp] [VideoService] fill features.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.692574] [0x6efd0310] [info]    [AaApp] [BluetoothService] fill features
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.692596] [0x6efd0310] [info]    [AaApp] [InputService] fill features.
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.760468] [0x6efd0310] [info]    [AaApp] [AndroidAutoEntity] requested audio focus, type: 4
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.760523] [0x6efd0310] [info]    [AaApp] [AndroidAutoEntity] audio focus state: 3
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.765763] [0x6efd0310] [info]    [AaApp] [AudioInputService] open request, priority: 0
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.765811] [0x6efd0310] [info]    [AaApp] [AudioInputService] open status: 0
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.771176] [0x6d7d0310] [info]    [AaApp] [AudioService] open request, channel: MEDIA_AUDIO, priority: 0
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.771245] [0x6d7d0310] [info]    [AaApp] [AudioService] open status: 0, channel: MEDIA_AUDIO
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.776517] [0x6d7d0310] [info]    [AaApp] [AudioService] open request, channel: SPEECH_AUDIO, priority: 0
Feb 25 19:57:40 raspberrypi autoapp[362]: [2018-02-25 19:57:40.776587] [0x6d7d0310] [info]    [AaApp] [AudioService] open status: 0, channel: SPEECH_AUDIO
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.781982] [0x6efd0310] [info]    [AaApp] [AudioService] open request, channel: SYSTEM_AUDIO, priority: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.782103] [0x6efd0310] [info]    [AaApp] [AudioService] open status: 0, channel: SYSTEM_AUDIO
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.789278] [0x6d7d0310] [info]    [AaApp] [SensorService] open request, priority: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.789327] [0x6d7d0310] [info]    [AaApp] [SensorService] open status: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.796448] [0x6d7d0310] [info]    [AaApp] [VideoService] open request, priority: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.796505] [0x6d7d0310] [info]    [AaApp] [OMXVideoOutput] open.
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.805836] [0x6d7d0310] [info]    [AaApp] [VideoService] open status: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.806322] [0x6e7d0310] [info]    [AaApp] [InputService] open request, priority: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.807010] [0x6e7d0310] [info]    [AaApp] [InputService] open status: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.815449] [0x6d7d0310] [info]    [AaApp] [AudioService] setup request, channel: MEDIA_AUDIO, config index: 1
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.815511] [0x6d7d0310] [info]    [AaApp] [AudioService] setup status: 2, channel: MEDIA_AUDIO
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.821015] [0x6efd0310] [info]    [AaApp] [AudioService] setup request, channel: SPEECH_AUDIO, config index: 1
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.821073] [0x6efd0310] [info]    [AaApp] [AudioService] setup status: 2, channel: SPEECH_AUDIO
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.826355] [0x6d7d0310] [info]    [AaApp] [AudioService] setup request, channel: SYSTEM_AUDIO, config index: 1
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.826413] [0x6d7d0310] [info]    [AaApp] [AudioService] setup status: 2, channel: SYSTEM_AUDIO
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.832486] [0x6d7d0310] [info]    [AaApp] [SensorService] sensor start request, type: 13
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.837997] [0x6d7d0310] [info]    [AaApp] [VideoService] setup request, config index: 3
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.838050] [0x6d7d0310] [info]    [AaApp] [OMXVideoOutput] init, state: true
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.838362] [0x6d7d0310] [info]    [AaApp] [VideoService] setup status: 2
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.839197] [0x6d7d0310] [info]    [AaApp] [VideoService] video focus indication.
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.843652] [0x6efd0310] [info]    [AaApp] [InputService] binding request, scan codes count: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.843704] [0x6efd0310] [info]    [AaApp] [InputDevice] start.
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.843737] [0x6efd0310] [info]    [AaApp] [InputService] binding request, status: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.849817] [0x6efd0310] [info]    [AaApp] [SensorService] sensor start request, type: 10
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:57:40.855333] [0x6efd0310] [info]    [AaApp] [VideoService] start indication, session: 0
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225190] [0x6e7d0310] [error]   [AaApp] [SensorService] channel error: AaSdk error code: 10, native code: 1
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225293] [0x6e7d0310] [error]   [AaApp] [SensorService] channel error: AaSdk error code: 10, native code: 1
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225379] [0x6e7d0310] [error]   [AaApp] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: SPEECH_AUDIO
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225445] [0x6e7d0310] [error]   [AaApp] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: MEDIA_AUDIO
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225476] [0x6d7d0310] [error]   [AaApp] [AudioInputService] channel error: AaSdk error code: 10, native code: 1
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225504] [0x6e7d0310] [error]   [AaApp] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: SYSTEM_AUDIO
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225560] [0x6d7d0310] [error]   [AaApp] [AndroidAutoEntity] channel error: AaSdk error code: 10, native code: 1
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225613] [0x6e7d0310] [error]   [AaApp] [BluetoothService] channel error: AaSdk error code: 10, native code: 1
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225655] [0x6d7d0310] [info]    [AaApp] [USBApp] quit.
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225700] [0x6d7d0310] [info]    [AaApp] [AndroidAutoEntity] stop.
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225741] [0x6d7d0310] [info]    [AaApp] [AudioInputService] stop.
Feb 25 19:58:01 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225845] [0x6d7d0310] [info]    [AaApp] [AudioService] stop, channel: MEDIA_AUDIO
Feb 25 19:58:06 raspberrypi autoapp[362]: [2018-02-25 19:58:01.225909] [0x6d7d0310] [info]    [AaApp] [AudioService] stop, channel: SPEECH_AUDIO
Feb 25 19:58:06 raspberrypi autoapp[362]: [2018-02-25 19:58:01.226038] [0x6d7d0310] [info]    [AaApp] [AudioService] stop, channel: SYSTEM_AUDIO
Feb 25 19:58:06 raspberrypi autoapp[362]: [2018-02-25 19:58:01.226102] [0x6d7d0310] [info]    [AaApp] [SensorService] stop.
Feb 25 19:58:06 raspberrypi autoapp[362]: [2018-02-25 19:58:01.226156] [0x6d7d0310] [info]    [AaApp] [BluetoothService] stop.
Feb 25 19:58:06 raspberrypi autoapp[362]: [2018-02-25 19:58:01.226203] [0x6d7d0310] [info]    [AaApp] [InputService] stop.
Feb 25 19:58:06 raspberrypi autoapp[362]: [2018-02-25 19:58:01.226239] [0x6d7d0310] [info]    [AaApp] [InputDevice] stop.
Feb 25 19:58:06 raspberrypi autoapp[362]: [2018-02-25 19:58:01.227407] [0x6d7d0310] [info]    [AaApp] [USBApp] Waiting for device...
Feb 25 19:58:06 raspberrypi autoapp[362]: [2018-02-25 19:58:01.227558] [0x6d7d0310] [debug]   [AaApp] [AndroidAutoEntity] destroy.

Any idea on what might be the issue?

I also tried compiling aasdk and openauto from source, but it is the same error..

@htruong
Copy link
Member

htruong commented Feb 25, 2018

Please provide with the Qt version you're trying to compile aasdk/openauto with, so we can debug this problem further. Openauto's author requested you to get the Qt lib from apt and try to compile it against the official blessed way. If it only happens with this distro but not Open Auto, I'm happy to investigate. Otherwise, you should consult with openauto project.

@vb4life
Copy link
Author

vb4life commented Feb 26, 2018

I'm at work now, but I'll check when I get home.

But the first i tried was the crankshaft image downloaded on 2018-02-25.
Also, the compiled version was by following the instructions to compile on the same date.

RPi 3B, using a plain HDMI screen (I've ordered the official 7" touch screen, so will also test as soon as I get it)

OxygenOS 5.0.1
Android 8.0.0
Android Auto 3.0.570554-release

edit: I'll file a bug with the openauto project, since it seems to be more related to that.

@vb4life
Copy link
Author

vb4life commented Feb 26, 2018

Actually, I just did a fresh install and compile of openauto etc, and it works. So it seems to be something in the crankshaft image...

@htruong
Copy link
Member

htruong commented Feb 26, 2018

Thanks for reporting back @vb4life - I will figure out how to get an android phone that exhibits the problem and correct it in the next version.

@vb4life
Copy link
Author

vb4life commented Feb 26, 2018 via email

@vb4life
Copy link
Author

vb4life commented Feb 27, 2018

I just recieved the 7" display and case, and after trying again with Crankshaft (same image), the phone connects just fine. So it might be an issue when using an external screen? My first test was with a HDMI -> DVI cable, so it might fail on the audio connection.

So you can probably close this issue, or modify it..

@htruong
Copy link
Member

htruong commented Feb 27, 2018

Oh - that's right. I know it is doing something funky with the HDMI connection. HDMI doesn't work yet. So that mystery is solved. :)

@htruong htruong changed the title Nothing happens when connecting phone Nothing happens when connecting phone using HDMI Feb 27, 2018
@parkerlreed
Copy link

parkerlreed commented Feb 27, 2018

Wait, you are connecting the PHONE via HDMI? Or do you mean the Pi is outputting HDMI and the phone is connected to the Pi via USB?

@htruong
Copy link
Member

htruong commented Feb 27, 2018

vb4life used the HDMI touchscreen instead of the official DSI one. Bad title on my end.

@parkerlreed
Copy link

Oh, weird that would cause an issue. I wonder if forcing an X11 build would work for the HDMI screen (for the time being)

@htruong htruong changed the title Nothing happens when connecting phone using HDMI Nothing happens when connecting phone / RPi connected to HDMI screen Feb 27, 2018
@vb4life
Copy link
Author

vb4life commented Feb 28, 2018

I connected the PI to a normal (non-touch) screen. The screen also only had DVI connectors, so I used a HDMI -> DVI cable.

But using the official 7" screen works perfect, though.. :)

@htruong htruong added the custom-hardware Issues or ideas involving supporting custom hardware label Mar 5, 2018
@htruong
Copy link
Member

htruong commented Mar 5, 2018

For anyone having difficulties with custom HDMI screens, please try Starting Crankshaft in X11 compatibility mode on image 2018-03-05 or later.

@htruong
Copy link
Member

htruong commented Mar 7, 2018

As of now with the introduction of the X11 compatibility mode, I think this should be resolved. Plus vb4life got their screen to work, so I'm closing this ticket down. Please feel free to comment and request to open a ticket if you feel this thread should continue.

@htruong htruong closed this as completed Mar 7, 2018
matt2005 added a commit that referenced this issue Oct 1, 2020
matt2005 added a commit that referenced this issue Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
custom-hardware Issues or ideas involving supporting custom hardware
Projects
None yet
Development

No branches or pull requests

3 participants