How to add new customise HDMI resolution

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add new customise HDMI resolution

1,228 Views
himanshubhavani
Contributor I

 

Hello All

Board: imx8m
weston version 9

I am trying to find the way to add new customise resolution in hdmi
currently available resolutions are:-

root@imx8mp-cgtqx8p:~# cat /sys/class/drm/card1-HDMI-A-1/modes                                                                                
1920x1080
1920x1080
1920x1080
1920x1080
1280x1024
1280x1024
1280x960
1152x864
1280x720
1280x720
1280x720
1280x720
800x600
800x600
720x576
720x480
720x480
720x480
720x480

I want to add “1280x800” customise resolution because the second display which is lvds has this resolution.

root@imx8mp-cgtqx8p:~# cat /sys/class/drm/card1-DPI-1/modes 
1280x800

And I am trying to clone lvds to hdmi display. Is some one help me here how can i do that ?

Labels (1)
0 Kudos
Reply
2 Replies

1,195 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

1,183 Views
himanshubhavani
Contributor I

Hi @Bio_TICFSL 

Thanks for your support.

On my toradex board (imx8) I successfully able to set customise resolution using this command from u-boot command

setenv vidargs video=HDMI-A-1:1280x800@60e

And after that it will set on cmdline and showing on /modes

cat /proc/cmdline 
root=PARTUUID=94874b25-02 ro rootwait console=tty1 console=ttymxc2,115200 consoleblank=0 earlycon video=HDMI-A-1:1280x800@60e

cat /sys/class/drm/card1-HDMI-A-1/modes 
1280x800
1280x720
1280x720
1280x720
800x600
720x576
640x480
640x480
720x400

Also it is “1280x800” reflected on display. but in another board I am not able to set. that board is congatec imx8 when i set video like

setenv mmcargs "setenv bootargs console=${console},${baudrate} earlycon root=/dev/mmcblk${mmcdev}p${mmcpart} rootwait rw rootfs=ext4 video=DSI-1:1280x800@60e"

it will showing on /cmdline but not showing in /sys/class/drm/card1-HDMI-A-1/modes

Can you help me what is the issue here why customise resolution set on toradex board and not on imx8?

0 Kudos
Reply