Adding custom display resolution using xrandr

Hello

I am attempting to add a custom resolution for a display using xrandr and running into problems.

NOTE:
I know the display supports the following resolution mode because the manufacturer has assured me that it does AND I have been able to drive it successfully at my required resolution when connected to an x86 system.

The error I am running into is:

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 30
Current serial number in output stream: 31

What I am doing is the following:

gtf 1024 768 60

1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
Modeline “1024x768_60.00” 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync

sudo xrandr --newmode “1024x768_60.00” 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync

sudo xrandr --addmode HDMI-0 “1024x768_60.00”

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 30
Current serial number in output stream: 31

I have googled to try and find an answer but the only thing that I have found that remotely looks like it might work is:

This however is from 7 years ago… so not sure how relevant it is to today…

Is there another way I should be doing this on the Xavier using Jetpack 4.3?

Hi,

This is sort of old topic on jetson platform.

What you searched in ubuntu forum may not help here because the graphic driver on tegra is tegra specific.
Our graphic driver does not support user to add mode from userspace tool like xrandr. The mode you are using must be from your monitor EDID. I put a way to force EDID in below link. Need to re-compile the kernel to achieve it.
https://elinux.org/Jetson_TX2/r28_Display_debug