Apalis T30 HDMI Supported Resolutions (1920x540?)

What are the supported resolutions on Apalis T30 module on HDMI-1 output?

Is 1920x540 supported? I am unable to set it using xrandr or xorg.conf.

This resolution is returned by the device:

(output is cut on the right)

(II) TEGRA(0): Printing DDC gathered Modelines:
(II) TEGRA(0): Modeline "1920x540"x0.0   70.00  1920 1968
(II) TEGRA(0): Modeline "800x600"x0.0   40.00  800 840 96
(II) TEGRA(0): Modeline "640x480"x0.0   31.50  640 656 72
(II) TEGRA(0): Modeline "640x480"x0.0   25.18  640 656 75
(II) TEGRA(0): Modeline "720x400"x0.0   28.32  720 738 84
(II) TEGRA(0): Modeline "1280x1024"x0.0  135.00  1280 129
(II) TEGRA(0): Modeline "1024x768"x0.0   78.75  1024 1040
(II) TEGRA(0): Modeline "1024x768"x0.0   65.00  1024 1048
(II) TEGRA(0): Modeline "832x624"x0.0   57.28  832 864 92
(II) TEGRA(0): Modeline "800x600"x0.0   49.50  800 816 89

xrandr shows only:

HDMI-1 connected 720x400+0+0 (normal left inverted right x axis y axis) 192mm x 36mm
   1024x768       60.0  
   832x624        74.6  
   800x600        75.0     60.3  
   640x480        75.0     59.9  
   720x400        70.1* 

There is also this in Xorg.log:

(output is cut on the right)

(II) TEGRA(0): Printing probed modes for output HDMI-1
(II) TEGRA(0): Modeline "640x480"x75.0   31.50  640 656 7
(II) TEGRA(0): Modeline "640x480"x59.9   25.18  640 656 7
(II) TEGRA(0): Modeline "720x400"x70.1   28.32  720 738 8

NVIDIA’s proprietary graphics stack only allows EDID validated resolutions your HDMI screen is reporting.

This might do the trick:

diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c
index 85a5d63..02d7070 100644
--- a/drivers/video/tegra/dc/hdmi.c
+++ b/drivers/video/tegra/dc/hdmi.c
@@ -70,7 +70,7 @@
 /* These two values need to be cross checked in case of
      addition/removal from tegra_dc_hdmi_aspect_ratios[] */
 #define TEGRA_DC_HDMI_MIN_ASPECT_RATIO_PERCENT 80
-#define TEGRA_DC_HDMI_MAX_ASPECT_RATIO_PERCENT 320
+#define TEGRA_DC_HDMI_MAX_ASPECT_RATIO_PERCENT 356
 
 /* Percentage equivalent of standard aspect ratios
     accurate upto two decimal digits */
@@ -85,6 +85,7 @@ static int tegra_dc_hdmi_aspect_ratios[] = {
    /* 16:10    */  160,
    /* 19:10    */  190,
    /* 25:16    */  156,
+   /* 32:9     */  356,
    /* 64:35    */  183,
    /* 72:35    */  206
 };

We are now testing it.

There may be more to this (See e.g. 1 and 2).

Oh ok I see. I’ll try the next branch then. Thx.

Well quick recompilation on the newest tegra_next gives:

$ dmesg | grep Unusuall
[    9.654098] tegradc tegradc.1: Unusuall display aspect ratio.                 You may encounter problems with base resolution
[    9.665417] tegradc tegradc.1: Unusuall display aspect ratio.                 You may encounter problems with base resolution
[    9.676755] tegradc tegradc.1: Unusuall display aspect ratio.                 You may encounter problems with base resolution
[    9.688071] tegradc tegradc.1: Unusuall display aspect ratio.                 You may encounter problems with base resolution
[    9.699391] tegradc tegradc.1: Unusuall display aspect ratio.                 You may encounter problems with base resolution
[    9.710706] tegradc tegradc.1: Unusuall display aspect ratio.                 You may encounter problems with base resolution

But:

1920x540 is rejected:

[2223759.273] (II) TEGRA(0): Not using mode "1920x540" (unknown reason)

I thought that returning true will do the same trick as my patch does (but for all ratios), but it looks like it does not?

Oh I know its the: TEGRA_DC_HDMI_MAX_ASPECT_RATIO_PERCENT upper limit.