Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6285

Graphics, sound and multimedia • DRM application occupies both HDMI ports

$
0
0
Hello. I'm writing an application that displays a stream from TC358743 directly to DRM on CM4.
When initializing DRM, I select only the connector corresponding to HDMI-A-2 (OUT2) (https://github.com/pikvm/ustreamer/blob ... drm.c#L536) Everything works fine here.

But if, after launching the application, I connect the second monitor to OUT1, I will only see a black screen, as if both ports were occupied. So, in more detail about setup:

* At the beginning, the monitor is connected to OUT2 only. OUT1 is free.
* Launching the application results in the desired video stream on OUT2.
* I connect the second monitor to OUT1 and see a black picture.
* While both monitors are connected, I restart the application.
* OUT2 shows the desired stream, OUT1 shows the console now.

So my questions are:
* Why does OUT1 not show the console if the monitor was connected after the start of the DRM app, which uses only OUT2?
* Why does restarting the application cause me to start seeing the desired console on OUT1?
* Is there a way to get the console on OUT1 immediately after connecting the monitor, without having to restart the DRM application?

My config.txt about video:

Code:

hdmi_force_hotplug=1 # Tried with and without this options, samegpu_mem=128dtoverlay=vc4-kms-v3ddisable_overscan=1

Statistics: Posted by mdevaev — Mon Mar 11, 2024 3:38 am



Viewing all articles
Browse latest Browse all 6285

Trending Articles