[Dragonboard410C] HDMI Hot Plug Detection (HPD)

Hi,

I am using Dragonboard410C latest Debian Release 16.09.

I wanted to see if HDMI Hot Plug Detection (HPD) can be enabled. I came across few blogs, wherein it is mentioned that the HDMI does not support HPD as of now.

But if it is possible, then can you please give some pointers as to how it can be done.

Thanks,
Sunny

1 Like

Hi,

Can anyone please let me know, if it is possible to enable the HDMI Hot-plug detection (HPD).

Thanks,
Sunny

I believe it is working in 16.09 release. What makes you think it is not?

@anon91830841 I can also reproduce this issue.
HDMI does not show display correctly, if we do not insert HDMI cable before boot up.

  1. Do not insert HDMI cable
  2. Boot up device
  3. After boot complete, insert HDMI cable. Then, you can find no display is shown.

But, itā€™s OK if booting with HDMI cable inserted.
The same issue can be found on OE RPB 16.09.

1 Like

Thank you for the replies @anon91830841 and @daniel-hung.

@anon91830841 I have followed the same steps as @daniel-hung to confirm the HPD.

But is the behavior an expected one as mentioned by @daniel-hung ? Because, if we connect a already booted laptop to a Television which is also turned on with HDMI, this works. But same scenario is not working here.

Thanks,
Sunny

Hi @anon91830841,

Can you please tell if the above mentioned scenario i.e. do not connect the HDMI cable while the board boots, and then once the board is booted i.e. kernel is up, then insert the HDMI cable. Does this work or is this a valid scenario to expect that the HDMI should work ?

Awaiting your reply.

Thanks,
Sunny

hi,

you might refer to ADV7533ļ¼ˆhttps://ez.analog.com/docs/DOC-1427ļ¼‰ supporting zone in further.

thanks,
Jetway

hi there,

sorry about delay. Yes, it is a valid scenario, and it should work (and it does for me). If you boot without HDMI plugged in, then of course the kernel wonā€™t read the EDID and will use a default resolution. If you plug the HDMI after boot and if Xserver was already started then you will be using the ā€˜wrongā€™ resolution. But if you kill/restart X it should read EDID and start with the right resolution.

If X was not started when you plug the HDMI cable, then you can start it, and it will use the resolution from EDID.

The above applies to the Linux builds, not the Android builds. I am not familiar with the Android builds.

If you see anything different, please let us know.

how to change the default resolution?

The debian builds for DB410C donā€™t really have a default resolution. When you connect a monitor the display stack will query the monitor and select either the monitors native resolution (for DVI displays) or the ā€œbestā€ HDMI mode (for HDMI displays).

If your display is not getting a picture is may be because it has a bogus EDID, preventing the above from working correctly. Is there anything in your dmesg buffer about the EDID?

sorry~
I mean is
When the user plugged into HDMI after boot, We can define an output value?
How to do it?
Thanks!

Whether you plug in before or after boot should make no difference. The
same code is supposed to run to select the video mode. Naturally
userspace can intervene and request a new mode (DEs such as GNOME have
code to do this) but that does rely on HPD triggering.

However Iā€™m away from my board at the moment thoughā€¦ so I canā€™t test
whether HPD is working properly.

Actually, thereā€™s a known bug that was introduced lately that causes the HDMI hotplug to not work properly.

hi,

what is the known bug? hdmi display comes in proper resolution only if we restart the X server if we insert the hdmi cable postboot or change the different resolution hdmi monitors. (tested in 18.01 release)

is it not possible to restart the Xserver based on HPD of the adv chip?

if you insert the HDMI post boot (and before starting X), then the kernel would have booted with no HDMI monitor, so the kernel would have selected a default resolution (800x600, from memory) for the fbconsole. When you plug HDMI, the fbconsole is not restarted, and is setup as 800x600. Now if you start X, it will detect the HDMI monitor, read the EDID and pick the ā€˜bestā€™ possible resolution, hence X starts with 1080p (if you have a HD monitor).

this is all ā€˜expected behaviorā€™.

you might be able to force a 1080p resolution even without a plugged monitor using https://github.com/96boards/documentation/blob/master/consumer/dragonboard410c/guides/force-display-res.md. i am not 100% sure it will workā€¦

if we change different tv/resolution monitor after posboot, it should automatically restart the xserver with the hdmi best mode. But this is missing.

is it the same behaviour in hikey board also? i have seen some discussion wrt hdmi hotplug fix for hikey.

Hi, just seeing this thread now - my problem is similar.
I bought dragonboards, and if i donā€™t connect the hdmi display at boot time, then i canā€™t connect them later on.

i must have the option to be able to boot the DB without hdmi display, and then connect the display only on a later point in time (for debugging) - how can this be done?