Edge2 Andorid 14 - Custom Resolutions not showing

Hi

If you remove resolution_white.xml, Settings and TvSettings apps doesn’t show all the resolutions and frame-rates eg. 1920x1080p@23.976hz.
The only show standard resolutions and not custom ones or fractional frame-rates.
Custom resolutions added to this file also doesn’t show in Settings.

On Edge2 Android 13 box firmware it worked correctly.

Can someone find out from Rockchip if there is a patch or some update available to also support this on Android 14?

@goenjoy @xiong.zhang

Just add the following modifications

xiong@builder:~/work/edge2-14/kernel-6.1$ git diff
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
index 655667932bec..ca337d673e14 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
@@ -235,6 +235,11 @@ &hdmi0_sound {
        status = "okay";
 };
 
+&display_subsystem {
+  clocks = <&hdptxphy_hdmi0>;
+  clock-names = "hdmi0_phy_pll";
+};
+
 &hdptxphy_hdmi0 {
        status = "okay";
 };

If I try to add this to Edge2 ‘user’ firmware, it only shows the Khadas kernel logo then no signal on the tv. Is there any other change Khadas made that might interfere with it?
It worked correctly on Android 13 ‘user’ firmware.

You have to unplug and replug the HDMI cable everytime Edge2 is turned on to get a HDMI signal on bootup if adding

+&display_subsystem {
+  clocks = <&hdptxphy_hdmi0>;
+  clock-names = "hdmi0_phy_pll";
+};
+

and using 3840x2160 resolution with a 1080p bootvideo.

Any way to solve it?

If I use
PRODUCT_PROPERTY_OVERRIDES += persist.vendor.resolution.main=1920x1080@60
then it displays correctly but not when using auto resolution.

A 1080p resolution and framebuffer baseparameter.img would solve this better.