iMx6 cannot set 1280x1024 screen resolution (vidargs not working)

I am trying to set a screen resolution of 1280x1024 in Apalis iMx6Q 2GB with ixora evaluation board v1.1A running Boot2Qt. I tried to set the vidargs using the following command in uboot but it did not work.

setenv vidargs 'mxc_hdmi.only_cea=0 video=mxcfb0:dev=hdmi,1280x1024M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M'
saveenv

The screen resolution I am getting is 1280x720.
the output of the following commands is given as under.

uname -r

4.14.159-0+git.fff496c2a1bd

cat /proc/cmdline

enable_wait_mode=off vmalloc=400M ip=off root=PARTUUID=6ea34a48-02 ro,noatime rootfstype=ext4 rootwait fec_mac=00:14:2d:a2:89:91 consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 mxc_hdmi.only_cea=0 video=mxcfb0:dev=hdmi,1280x1024M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M

dmesg | grep fb

[    0.000000] Kernel command line: enable_wait_mode=off vmalloc=400M ip=off root=PARTUUID=6ea34a48-02 ro,noatime rootfstype=ext4 rootwait fec_mac=00:14:2d:a2:89:91 consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 mxc_hdmi.only_cea=0 video=mxcfb0:dev=hdmi,1280x1024M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M
[    0.667040] fbcvt: 1280x1024@60: CVT Name - 1.310M4
[    0.667159] mxc_sdc_fb fb@0: registered mxc display driver hdmi
[    0.676110] mxc_sdc_fb fb@0: 1280x720 h_sync,r,l: 40,110,220  v_sync,l,u: 5,5,20 pixclock=74250000 Hz
[    0.706888] mxc_sdc_fb fb@1: mxcfb1 is turned off!
[    0.706970] mxc_sdc_fb fb@2: mxcfb2 is turned off!
[    0.707044] mxc_sdc_fb fb@3: mxcfb3 is turned off!
[    1.720336] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    2.143948] mxc_sdc_fb fb@0: 640x480 h_sync,r,l: 96,16,48  v_sync,l,u: 2,10,33 pixclock=25175000 Hz
[    2.340025] mxc_sdc_fb fb@0: 1280x720 h_sync,r,l: 40,110,220  v_sync,l,u: 5,5,20 pixclock=74250000 Hz
[    9.207370] mxc_sdc_fb fb@0: 1280x720 h_sync,r,l: 40,110,220  v_sync,l,u: 5,5,20 pixclock=74250000 Hz

**xrandr**

-sh: xrandr: command not found

**find /sys/ -name edid -exec cat {} \;**

0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00 0x0D 0xC3 0x00 0x00 0x0A 0x1A 0x00 0x00
0x10 0x19 0x01 0x04 0xA2 0x29 0x17 0x78 0xEB 0xD9 0x9C 0xA6 0x55 0x46 0x98 0x24
0x10 0x48 0x4B 0xAF 0xCF 0x80 0x81 0x00 0x81 0x40 0x71 0x40 0xA9 0xC0 0x81 0x80
0x95 0x00 0xB3 0x00 0xD1 0xC0 0x30 0x2A 0x00 0xAA 0x51 0x00 0x1E 0x40 0x46 0x8F
0x33 0x00 0xAA 0xEF 0x10 0x00 0x00 0x1E 0x01 0x1D 0x00 0x72 0x51 0xD0 0x1E 0x20
0x6E 0xDC 0x54 0x01 0xA9 0xEF 0x10 0x00 0x00 0x1E 0x00 0x00 0x00 0xFC 0x00 0x47
0x4D 0x34 0x30 0x30 0x30 0x2D 0x30 0x31 0x0A 0x20 0x20 0x20 0x00 0x00 0x00 0xFD
0x00 0x37 0x4C 0x1E 0x55 0x0E 0x00 0x0A 0x20 0x20 0x20 0x20 0x20 0x20 0x01 0x68
0x02 0x03 0x1A 0x71 0x47 0x01 0x03 0x84 0x05 0x12 0x13 0x14 0x23 0x09 0x07 0x07
0x83 0x01 0x00 0x00 0x65 0x03 0x0C 0x00 0x10 0x00 0x8C 0x0A 0xD0 0x8A 0x20 0xE0
0x2D 0x10 0x10 0x3E 0x96 0x00 0x13 0x8E 0x21 0x00 0x00 0x18 0x01 0x1D 0x00 0xBC
0x52 0xD0 0x1E 0x20 0xB8 0x28 0x55 0x40 0xC4 0x8E 0x21 0x00 0x00 0x1E 0x01 0x1D
0x80 0xD0 0x72 0x1C 0x16 0x20 0x10 0x2C 0x25 0x80 0xC4 0x8E 0x21 0x00 0x00 0x9E
0x8C 0x0A 0xD0 0x8A 0x20 0xE0 0x2D 0x10 0x10 0x3E 0x96 0x00 0xC4 0x8E 0x21 0x00
0x00 0x18 0x8C 0x0A 0xD0 0x90 0x20 0x40 0x31 0x20 0x0C 0x40 0x55 0x00 0xC4 0x8E
0x21 0x00 0x00 0x18 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x63
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00

kindly help me to obtain the correct screen resolution of 1280x1080.
Thank you

specifications of LCD

We can set the screen resolution through fbset -fb /dev/fb0 -g 1280 1024 1280 1024 16 though, but this setting is not permanent and we need to apply it whenever we reboot our toradex. Our concern is how can we set the settings which are permanent?

Hi @Aqsa

If the fbset approach is okay for you, you could create a systemd entry:

Then you can just trigger a script which sets the right resolution. For the other solution, what version of the kernel and Boot2Qt are you using? Please provide the ouptut of the following commands:

cat /etc/os-release
uname -a

Regards,
Stefan

Hi,

I face exactly same problem.
My kernel version is:

uname -a 
Linux toradex 5.4.47-0+git.43672b04da88 #1 SMP Thu Oct 29 15:34:36 UTC 2020 armv7l GNU/Linux

dmesg | grep fb

root@toradex:~# dmesg  | grep fb
[    0.000000] Kernel command line: enable_wait_mode=off vmalloc=400M root=PARTUUID=bcbdc0b6-02 ro rootwait fec_mac=00:14:2d:4f:85:56 consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 video=mxcfb0:dev=hdmi,1280Mx1024@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M
[    0.328983] mxc_sdc_fb fb@0: registered mxc display driver hdmi
[    0.340117] mxc_sdc_fb fb@0: 1280x720 h_sync,r,l: 40,110,220  v_sync,l,u: 5,5,20 pixclock=74250000 Hz
[    0.408769] mxc_sdc_fb fb@0: 1280x720 h_sync,r,l: 40,110,220  v_sync,l,u: 5,5,20 pixclock=74250000 Hz
[    0.484066] mxc_sdc_fb fb@0: 1280x720 h_sync,r,l: 40,110,220  v_sync,l,u: 5,5,20 pixclock=74250000 Hz
[    0.597390] mxc_sdc_fb fb@0: 1280x720 h_sync,r,l: 40,110,220  v_sync,l,u: 5,5,20 pixclock=74250000 Hz
[    0.693865] mxc_sdc_fb fb@1: mxcfb1 is turned off!
[    0.693931] mxc_sdc_fb fb@2: mxcfb2 is turned off!
[    0.693991] mxc_sdc_fb fb@3: mxcfb3 is turned off!

EDID

 root@toradex:/sys# cat ./devices/soc0/soc/20e0000.hdmi_video/edid
    0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00 0x63 0x18 0x00 0x00 0x00 0x00 0x00 0x00 
    0x0A 0x1A 0x01 0x03 0x80 0x00 0x00 0x00 0x0A 0xD7 0xA5 0xA2 0x59 0x4A 0x96 0x24 
    0x14 0x50 0x54 0xA3 0x08 0x00 0x81 0x80 0x81 0x40 0x01 0x01 0x01 0x01 0x01 0x01 
    0x01 0x01 0x01 0x01 0x01 0x01 0x30 0x2A 0x00 0x98 0x51 0x00 0x2A 0x40 0x30 0x70 
    0x13 0x00 0x00 0x00 0x00 0x00 0x00 0x1E 0x30 0x2A 0x00 0x08 0x52 0xC0 0x28 0x30 
    0x60 0x70 0x36 0x00 0x20 0x56 0x00 0x00 0x00 0x18 0x00 0x00 0x00 0xFD 0x00 0x32 
    0x4C 0x1E 0x50 0x10 0x00 0x0A 0x20 0x20 0x20 0x20 0x20 0x20 0x00 0x00 0x00 0xFC 
    0x00 0x41 0x41 0x41 0x0A 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x01 0xA2 
    0x02 0x03 0x24 0x74 0x50 0x90 0x05 0x04 0x03 0x07 0x02 0x06 0x01 0x1F 0x14 0x13 
    0x12 0x16 0x11 0x15 0x20 0x23 0x09 0x07 0x03 0x66 0x03 0x0C 0x00 0x10 0x00 0x00 
    0x83 0x01 0x00 0x00 0x01 0x1D 0x00 0xBC 0x52 0xD0 0x1E 0x20 0xB8 0x28 0x55 0x40 
    0xC4 0x8E 0x21 0x00 0x00 0x1E 0x01 0x1D 0x80 0xD0 0x72 0x1C 0x16 0x20 0x10 0x2C 
    0x25 0x80 0xC4 0x8E 0x21 0x00 0x00 0x9E 0x8C 0x0A 0xD0 0x8A 0x20 0xE0 0x2D 0x10 
    0x10 0x3E 0x96 0x00 0x13 0x8E 0x21 0x00 0x00 0x18 0x8C 0x0A 0xD0 0x90 0x20 0x40 
    0x31 0x20 0x0C 0x40 0x55 0x00 0x13 0x8E 0x21 0x00 0x00 0x18 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00