Wrong HDMI display resolution

Hi,
I want to use this display for my iMX6D. The screen resolution is set to 640x480 instead of 800x480. According to some other forum entries i tried to set the boot vidargs to:

fw_setenv vidargs 'mxc_hdmi.only_cea=0 video=mxcfb0:dev=hdmi,800x480M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M'

but no change. Please let me provide some additional information:

root@apalis-imx6:~# uname -r
4.9.220-2.8.8+g93458a0
root@apalis-imx6:~# cat /proc/cmdline 
vmalloc=400M user_debug=30 ip=off root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait fec_mac=00:14:2d:4d:bf:31 consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 mxc_hdmi.only_cea=0 video=mxcfb0:dev=hdmi,800x480M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M
root@apalis-imx6:~# xrandr
Screen 0: minimum 240 x 240, current 640 x 480, maximum 8192 x 8192
DISP3 BG connected primary 640x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   V:640x480p-60  59.94*+
   D:800x480p-65  65.68  
root@apalis-imx6:~# dmesg | grep fb
[    0.000000] Kernel command line: vmalloc=400M user_debug=30 ip=off root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait fec_mac=00:14:2d:4d:bf:31 consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 mxc_hdmi.only_cea=0 video=mxcfb0:dev=hdmi,800x480M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M
[    0.574011] fbcvt: 800x480@60: CVT Name - .384M9
[    0.574130] mxc_sdc_fb fb@0: registered mxc display driver hdmi
[    0.577685] mxc_sdc_fb fb@0: 720x480 h_sync,r,l: 62,16,60  v_sync,l,u: 6,9,30 pixclock=27000000 Hz
[    0.636461] mxc_sdc_fb fb@0: 720x480 h_sync,r,l: 62,16,60  v_sync,l,u: 6,9,30 pixclock=27000000 Hz
[    0.707503] mxc_sdc_fb fb@1: mxcfb1 is turned off!
[    0.709433] mxc_sdc_fb fb@2: mxcfb2 is turned off!
[    0.711328] mxc_sdc_fb fb@3: mxcfb3 is turned off!
[    0.746847] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    1.808303] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    1.866025] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    2.811342] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    2.916113] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    2.983060] Loaded X.509 cert 'Build time autogenerated kernel key: fcfb3a8705feb9c252d0e901605cf75158bfdc24'
[    8.612657] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    8.700520] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    8.772679] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    8.869746] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    9.586253] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
root@apalis-imx6:~# find /sys/ -name edid -exec cat {} \;
0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00 0x39 0x04 0x31 0x04 0x00 0x00 0x00 0x00 
0xFF 0x1E 0x01 0x04 0x80 0x0A 0x07 0x00 0x1A 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x01 0x00 0x01 0x00 0x01 0x00 0x01 0x00 
0x01 0x00 0x01 0x00 0x01 0x00 0x80 0x0C 0x20 0x80 0x30 0xE0 0x2D 0x10 0x28 0x30 
0xD1 0x00 0x69 0x43 0x00 0x00 0x00 0x18 0x00 0x00 0x00 0xFC 0x00 0x4E 0x48 0x44 
0x2D 0x34 0x2E 0x33 0x2D 0x48 0x44 0x4D 0x49 0x0A 0x00 0x00 0x00 0x10 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x10 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x48 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00

Thanks in advance for your help.

Apalis iMX6D
Ixora V1.2A
Standard TDX Image 2.8.8 with LXDE

Hi. Do you need more information maybe? Please find a picture from the output on the display.

Hello @qojote ,

Thank you for your patience!

This is indeed strange behavior because I see from the dmesg that the initial resolution is set to 720x480 and then re-set it to 640x480. :thinking:

I wouldn’t alter anything in the command because it looks good. :+1:

Perhaps we could a little debugging here. Maybe we could try to set the desired resolution from xrandr and see if that works.
For example, like described here. I would also try to add this new resolution, also like how it is stated in the article.

Let me know how these worked for you.

Best Regards,
Janani

Hi @saijanani.tx,

This is the console output of xrandr:

root@apalis-imx6:~# xrandr
Screen 0: minimum 240 x 240, current 800 x 480, maximum 8192 x 8192
DISP3 BG connected primary 800x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
V:640x480p-60 59.94 +
D:800x480p-65 65.68*
root@apalis-imx6:~# xrandr --output DISP3\ BG --mode D:800x480p-65

and afterwards the screen looks like shown below. Touchscreen is working properly over the complete area. There is a vertical line though and the taskbar is not resized until i call “lxpanelctl restart”.

Hello @qojote ,

Do you have on every start perform lxpanelctl restart to adjust the taskbar size? If yes, I wonder if there is something to look at the driver perhaps.

Meanwhile, could you maybe try to put all your command in ~/.xprofile and see if that works for your application?

Best Regards,
Janani

Hi @saijanani.tx,
I put both commands into the xprofile and now the output looks okay after each restart. I also tried another display and this one shows no white vertical line. Maybe its a display fault…

Hello @qojote ,

I am glad this finally worked.

I would definitely give that the benefit of doubt.

BR,
Janani

Hi @saijanani.tx
I followed this instruction to create a custom image with QT5.9 included. So far the “Qt5_CinematicExperience -platform eglfs” does start but however, the resolution is still messed up and shows 640x480 instead of 800x480. Setting QT_QPA_EGLFS_WIDTH and QT_QPA_EGLFS_HEIGHT does not help either. As the image has no X11 and wayland i am not sure how to fix the resolution. Thanks in advance.

Hello @qojote ,

As this seems to be a different topic than on this thread, could you maybe create a new question?

BR, Janani

Okay! Setting the HDMI display resolution for EGLFS
BR