Edge2 Android with Dual Independent Displays (HDMI + DP [ + DSI ])

Please describe your issue below:

We are using the Khadas Edge2 board for our Android Software Development.
One very important feature of the Khdadas board is for us that the Board supports multiple independent displays.
However, on Android, the HDMI display gets always mirrored to the DP display.
Installing the original prebuilt Khadas Ubuntu image prooves that the hardware is capable of driving the HDMI display and the DP display independently.

For the Edge-V board there are information how to achieve this also for Android:

Can you please provide information how to configure Android/HWC for Edge2 to drive two displays independently on Android?

Which system do you use? Android, Ubuntu, OOWOW or others?

Edge2 with custom built Android 12.1 (AAOS)

Which version of system do you use? Khadas official images, self built images, or others?

self built images from khadas github sources Android 12.1 (AAOS 12.1.0_r8)

Post a console log of your issue below:

1|kedge2:/ $ getprop | grep hwc
[init.svc.vendor.hwcomposer-2-1]: [running]
[init.svc_debug_pid.vendor.hwcomposer-2-1]: [345]
[ro.boottime.vendor.hwcomposer-2-1]: [5010434562]
[vendor.ghwc.version]: [HWC2-1.4.6]
[vendor.hwc.compose_policy]: [1]
[vendor.hwc.device.display-0]: [HDMI-A-1:70:connected]
[vendor.hwc.device.display-1]: [DP-1:70:connected:mirror]
[vendor.hwc.device.primary]: [HDMI-A,DP]
[vendor.hwc.hdr_state]: [NORMAL]

[HDMI + DP or DSI ] config:

kernel-5.10$ git diff4
--- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
@@ -198,7 +198,7 @@
        status = "okay";
-&dp0_in_vp0 {
+&dp0_in_vp2 {
        status = "okay";

system/core$ git diff
--- a/init/property_service.cpp
+++ b/init/property_service.cpp
modify "HDMI-A,DP" to "HDMI-A"
modify "DSI" to "DSI,DP"
1 Like

@goenjoy :+1: Thank you so much for your prompt feedback. Works like a charm.

1 Like