Reverse resolution (Portrait/Landscape) between HDMI input and HDMI output - DIY Projector

Just bought the VIM 4, thanks to the HDMI input !

I’m building a DIY projector and the VIM 4 will be the motherboard. Not received the LCD screen yet.

I want to make the LCD screen below compatible with every devices using this method :
ex1: PS4 → VIM4 → MIPI HDMI DRIVER BOARD → LCD
ex2: Macbook → VIM4 → MIPI HDMI DRIVER BOARD → LCD

The screen :
LS055R1SX03

What I need :
1- Make this screen from “Portrait default” to landscape, so I need to rotate the HDMI output 90 deg.
2- Make the HDMI input appears at 2560x1440 for the input device (instead of 1440x2560)
3- Make the HDMI input appears at 1920x1080 if the input device doesn’t support 2560x1440.

Any help would be appreciate !!
The easiest way, which operating system do you recommend ? Android or Ubuntu ?

Here some tests with my 4K Sony OLED (2022/08/04)

Ubuntu :
Difficult to test with Ubuntu at the moment. HDMI input seems to have less delay than Android.

Android :
1- Make this screen from “Portrait default” to landscape, so I need to rotate the HDMI output 90 deg.
→ OK

2- Make the HDMI input appears at 2560x1440 for the input device (instead of 1440x2560)
Can’t test 1440p at the moment.
I can rotate the output screen then the hdmi input will be rotated at the end.
BUT, when the screen is rotated (90,180,270), the hdmi input image is ugly.
AND, if I force 2160p input instead of 1080p, the image is ugly and 30Hz (Maybe cable ?)

3- Make the HDMI input appears at 1920x1080 if the input device doesn’t support 2560x1440.
I think this will work when hdmi input support will be improved ! :slight_smile:

The code defaults to HDMI IN 1.4. You can try switching to HDMI IN 2.0 to see if it is supported? Make the following modifications:

device/khadas$ git diff
diff --git a/common/products/tv/t7/files/PQ/pq_default.ini b/common/products/tv/t7/files/PQ/pq_default.ini
index 8c864ec..f45cb22 100755
--- a/common/products/tv/t7/files/PQ/pq_default.ini
+++ b/common/products/tv/t7/files/PQ/pq_default.ini
@@ -60,7 +60,7 @@ auto.backlight.lutvalue_low = 102,217,255,255,255,255,255,255,255,255,255,255,25
 
 [HDMI]
 #edid version according to tv_hdmi_edid_version_t enum : 0 edid_14, 1 edid_20, 2 edid_auto
-hdmi.edid.version.def = 0
+hdmi.edid.version.def = 1
 hdmi.hdcp.switcher.def = 0
 #colorrange mode: auto or full or limit
 hdmi.color.range.mode.def = auto

When inputting 4K 60Hz, you need to burn the 2.2 key of Rx in the board (this involves copyright issues). Otherwise, the maximum default support is 4K 30Hz, please know.

tv/t7/files/PQ/pq_default.ini
Could you explain a little bit I’m not an expert. How to edit this code ? Do I need to create a custom ROM ?