This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi,
I am using SK-AM62A-LP board.
I want to change the resolution of my display from 1920x1080 to 1280x720.
Here is my mode information of display
root@am62axx-evm:~# modetest -M tidss Encoders: id crtc type possible crtcs possible clones 39 38 none 0x00000001 0x00000001 Connectors: id encoder status name size (mm) modes encoders 40 39 connected HDMI-A-1 1150x650 21 39 modes: index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot #0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver #1 1920x1080 59.94 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver #2 1920x1080 50.00 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver #3 1920x1080 30.00 1920 2008 2052 2200 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver #4 1920x1080 29.97 1920 2008 2052 2200 1080 1084 1089 1125 74176 flags: phsync, pvsync; type: driver #5 1920x1080 24.00 1920 2558 2602 2750 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver #6 1920x1080 23.98 1920 2558 2602 2750 1080 1084 1089 1125 74176 flags: phsync, pvsync; type: driver #7 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver #8 1280x720 59.94 1280 1390 1430 1650 720 725 730 750 74176 flags: phsync, pvsync; type: driver #9 1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver #10 1280x720 30.00 1280 3040 3080 3300 720 725 730 750 74250 flags: phsync, pvsync; type: driver #11 1280x720 29.97 1280 3040 3080 3300 720 725 730 750 74176 flags: phsync, pvsync; type: driver #12 1280x720 24.00 1280 3040 3080 3300 720 725 730 750 59400 flags: phsync, pvsync; type: driver #13 1280x720 23.98 1280 3040 3080 3300 720 725 730 750 59341 flags: phsync, pvsync; type: driver #14 1024x768 60.00 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver #15 800x600 60.32 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver #16 720x576 50.00 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver #17 720x480 60.00 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver #18 720x480 59.94 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver #19 640x480 60.00 640 656 752 800 480 490 492 525 25200 flags: nhsync, nvsync; type: driver #20 640x480 59.94 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver props: 1 EDID: flags: immutable blob blobs: value: 00ffffffffffff004d79300001000000 071e0103807341780acf74a3574cb023 09484c21080001010101010101010101 01010101010104740030f2705a80b058 8a0020c23100001e023a801871382d40 582c450020c23100001e000000fc0020 54562d6d6f6e69746f720a20000000fd 003b461f8c3c000a202020202020011e 02036ef05e5f101f1405130420223c3e 121603071115020601615d6465666260 5e6a6b2c097f05150750570701670403 830100006e030c001000b83c2f008001 02030467d85dc401788803e3054001e5 0f00009035e3060f01eb0146d0004a67 429e3e27c6e5018b849001e200fb0000 00000000000000000000000000000072 2 DPMS: flags: enum enums: On=0 Standby=1 Suspend=2 Off=3 value: 0 5 link-status: flags: enum enums: Good=0 Bad=1 value: 0 6 non-desktop: flags: immutable range values: 0 1 value: 0 4 TILE: flags: immutable blob blobs: value: CRTCs: id fb pos size 38 48 (0,0) (1920x1080) #0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver props: 24 VRR_ENABLED: flags: range values: 0 1 value: 0 27 CTM: flags: blob blobs: value: 28 GAMMA_LUT: flags: blob blobs: value: 29 GAMMA_LUT_SIZE: flags: immutable range values: 0 4294967295 value: 256 Planes: id crtc fb CRTC x,y x,y gamma size possible crtcs 31 38 48 0,0 0,0 0 0x00000001 formats: AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12 props: 8 type: flags: immutable enum enums: Overlay=0 Primary=1 Cursor=2 value: 1 30 IN_FORMATS: flags: immutable blob blobs: value: 01000000000000001d00000018000000 01000000900000004152313241423132 52413132524731364247313641523135 41423135415232344142323452413234 42413234524732344247323441523330 41423330585231325842313252583132 58523135584231355852323458423234 52583234425832345852333058423330 59555956555956594e56313200000000 ffffff1f000000000000000000000000 0000000000000000 in_formats blob decoded: AR12: LINEAR AB12: LINEAR RA12: LINEAR RG16: LINEAR BG16: LINEAR AR15: LINEAR AB15: LINEAR AR24: LINEAR AB24: LINEAR RA24: LINEAR BA24: LINEAR RG24: LINEAR BG24: LINEAR AR30: LINEAR AB30: LINEAR XR12: LINEAR XB12: LINEAR RX12: LINEAR XR15: LINEAR XB15: LINEAR XR24: LINEAR XB24: LINEAR RX24: LINEAR BX24: LINEAR XR30: LINEAR XB30: LINEAR YUYV: LINEAR UYVY: LINEAR NV12: LINEAR 33 zpos: flags: range values: 0 1 value: 0 34 COLOR_ENCODING: flags: enum enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1 value: 0 35 COLOR_RANGE: flags: enum enums: YCbCr limited range=0 YCbCr full range=1 value: 1 36 alpha: flags: range values: 0 65535 value: 65535 37 pixel blend mode: flags: enum enums: Pre-multiplied=0 Coverage=1 value: 0 41 0 0 0,0 0,0 0 0x00000001 formats: AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12 props: 8 type: flags: immutable enum enums: Overlay=0 Primary=1 Cursor=2 value: 0 30 IN_FORMATS: flags: immutable blob blobs: value: 01000000000000001d00000018000000 01000000900000004152313241423132 52413132524731364247313641523135 41423135415232344142323452413234 42413234524732344247323441523330 41423330585231325842313252583132 58523135584231355852323458423234 52583234425832345852333058423330 59555956555956594e56313200000000 ffffff1f000000000000000000000000 0000000000000000 in_formats blob decoded: AR12: LINEAR AB12: LINEAR RA12: LINEAR RG16: LINEAR BG16: LINEAR AR15: LINEAR AB15: LINEAR AR24: LINEAR AB24: LINEAR RA24: LINEAR BA24: LINEAR RG24: LINEAR BG24: LINEAR AR30: LINEAR AB30: LINEAR XR12: LINEAR XB12: LINEAR RX12: LINEAR XR15: LINEAR XB15: LINEAR XR24: LINEAR XB24: LINEAR RX24: LINEAR BX24: LINEAR XR30: LINEAR XB30: LINEAR YUYV: LINEAR UYVY: LINEAR NV12: LINEAR 43 zpos: flags: range values: 0 1 value: 1 44 COLOR_ENCODING: flags: enum enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1 value: 0 45 COLOR_RANGE: flags: enum enums: YCbCr limited range=0 YCbCr full range=1 value: 1 46 alpha: flags: range values: 0 65535 value: 65535 47 pixel blend mode: flags: enum enums: Pre-multiplied=0 Coverage=1 value: 0 Frame buffers: id size pitch
How can i do that? Is there any reference for that?
Hi,
Could you please explain your usecase? Also, please refer to the following: software-dl.ti.com/.../DSS7.html
Regards,
Krunal
HI Krunal,
Could you please explain your usecase?
I have a custom hardware with DPI -> ADV7511 HDMI Transmitter -> MICRO HDMI port
In the custom hardware, even though the connected display can support up to 1920x1080, CRTC is showing 1024x768 as the display's resolution. Here is the output:
root@am62axx-evm:~# kmsprint Connector 0 (40) HDMI-A-1 (connected) Encoder 0 (39) NONE Crtc 0 (38) 1024x768@60.00 65.000 1024/24/136/160/- 768/3/6/29/- 60 (60.00) 0xa 0x40 Plane 0 (31) fb-id: 48 (crtcs: 0) 0,0 1024x768 -> 0,0 1024x768 (AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12) FB 48 1024x768 root@am62axx-evm:~# modetest -M tidss Encoders: id crtc type possible crtcs possible clones 39 38 none 0x00000001 0x00000001 Connectors: id encoder status name size (mm) modes encoders 40 39 connected HDMI-A-1 480x270 30 39 modes: index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot #0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver #1 1920x1080 59.94 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver #2 1920x1080 50.00 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver #3 1680x1050 59.88 1680 1728 1760 1840 1050 1053 1059 1080 119000 flags: phsync, nvsync; type: driver #4 1600x900 60.00 1600 1624 1704 1800 900 901 904 1000 108000 flags: phsync, pvsync; type: driver #5 1280x1024 75.02 1280 1296 1440 1688 1024 1025 1028 1066 135000 flags: phsync, pvsync; type: driver #6 1280x1024 60.02 1280 1328 1440 1688 1024 1025 1028 1066 108000 flags: phsync, pvsync; type: driver #7 1440x900 59.90 1440 1488 1520 1600 900 903 909 926 88750 flags: phsync, nvsync; type: driver #8 1280x800 59.91 1280 1328 1360 1440 800 803 809 823 71000 flags: phsync, nvsync; type: driver #9 1152x864 75.00 1152 1216 1344 1600 864 865 868 900 108000 flags: phsync, pvsync; type: driver #10 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver #11 1280x720 59.94 1280 1390 1430 1650 720 725 730 750 74176 flags: phsync, pvsync; type: driver #12 1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver #13 1024x768 75.03 1024 1040 1136 1312 768 769 772 800 78750 flags: phsync, pvsync; type: driver #14 1024x768 70.07 1024 1048 1184 1328 768 771 777 806 75000 flags: nhsync, nvsync; type: driver #15 1024x768 60.00 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver #16 832x624 74.55 832 864 928 1152 624 625 628 667 57284 flags: nhsync, nvsync; type: driver #17 800x600 75.00 800 816 896 1056 600 601 604 625 49500 flags: phsync, pvsync; type: driver #18 800x600 72.19 800 856 976 1040 600 637 643 666 50000 flags: phsync, pvsync; type: driver #19 800x600 60.32 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver #20 800x600 56.25 800 824 896 1024 600 601 603 625 36000 flags: phsync, pvsync; type: driver #21 720x576 50.00 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver #22 720x480 60.00 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver #23 720x480 59.94 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver #24 640x480 75.00 640 656 720 840 480 481 484 500 31500 flags: nhsync, nvsync; type: driver #25 640x480 72.81 640 664 704 832 480 489 492 520 31500 flags: nhsync, nvsync; type: driver #26 640x480 66.67 640 704 768 864 480 483 486 525 30240 flags: nhsync, nvsync; type: driver #27 640x480 60.00 640 656 752 800 480 490 492 525 25200 flags: nhsync, nvsync; type: driver #28 640x480 59.94 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver #29 720x400 70.08 720 738 846 900 400 412 414 449 28320 flags: nhsync, pvsync; type: driver props: 1 EDID: flags: immutable blob blobs: value: 00ffffffffffff004c2d1a0d35525a5a 211b010380301b782a5295a556549d25 0e5054bfef80714f81c0810081809500 a9c0b3000101023a801871382d40582c 4500dd0c1100001e000000fd00324b1e 5111000a202020202020000000fc0053 3232463335300a2020202020000000ff 004834544a3830313230370a20200110 020311b14690041f13120365030c0010 00011d00bc52d01e20b8285540dd0c11 00001e8c0ad090204031200c405500dd 0c110000188c0ad08a20e02d10103e96 00dd0c11000018000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000050 2 DPMS: flags: enum enums: On=0 Standby=1 Suspend=2 Off=3 value: 0 5 link-status: flags: enum enums: Good=0 Bad=1 value: 0 6 non-desktop: flags: immutable range values: 0 1 value: 0 4 TILE: flags: immutable blob blobs: value: CRTCs: id fb pos size 38 48 (0,0) (1024x768) #0 1024x768 60.00 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver props: 24 VRR_ENABLED: flags: range values: 0 1 value: 0 27 CTM: flags: blob blobs: value: 28 GAMMA_LUT: flags: blob blobs: value: 29 GAMMA_LUT_SIZE: flags: immutable range values: 0 4294967295 value: 256 Planes: id crtc fb CRTC x,y x,y gamma size possible crtcs 31 38 48 0,0 0,0 0 0x00000001 formats: AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12 props: 8 type: flags: immutable enum enums: Overlay=0 Primary=1 Cursor=2 value: 1 30 IN_FORMATS: flags: immutable blob blobs: value: 01000000000000001d00000018000000 01000000900000004152313241423132 52413132524731364247313641523135 41423135415232344142323452413234 42413234524732344247323441523330 41423330585231325842313252583132 58523135584231355852323458423234 52583234425832345852333058423330 59555956555956594e56313200000000 ffffff1f000000000000000000000000 0000000000000000 in_formats blob decoded: AR12: LINEAR AB12: LINEAR RA12: LINEAR RG16: LINEAR BG16: LINEAR AR15: LINEAR AB15: LINEAR AR24: LINEAR AB24: LINEAR RA24: LINEAR BA24: LINEAR RG24: LINEAR BG24: LINEAR AR30: LINEAR AB30: LINEAR XR12: LINEAR XB12: LINEAR RX12: LINEAR XR15: LINEAR XB15: LINEAR XR24: LINEAR XB24: LINEAR RX24: LINEAR BX24: LINEAR XR30: LINEAR XB30: LINEAR YUYV: LINEAR UYVY: LINEAR NV12: LINEAR 33 zpos: flags: range values: 0 1 value: 0 34 COLOR_ENCODING: flags: enum enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1 value: 0 35 COLOR_RANGE: flags: enum enums: YCbCr limited range=0 YCbCr full range=1 value: 1 36 alpha: flags: range values: 0 65535 value: 65535 37 pixel blend mode: flags: enum enums: Pre-multiplied=0 Coverage=1 value: 0 41 0 0 0,0 0,0 0 0x00000001 formats: AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12 props: 8 type: flags: immutable enum enums: Overlay=0 Primary=1 Cursor=2 value: 0 30 IN_FORMATS: flags: immutable blob blobs: value: 01000000000000001d00000018000000 01000000900000004152313241423132 52413132524731364247313641523135 41423135415232344142323452413234 42413234524732344247323441523330 41423330585231325842313252583132 58523135584231355852323458423234 52583234425832345852333058423330 59555956555956594e56313200000000 ffffff1f000000000000000000000000 0000000000000000 in_formats blob decoded: AR12: LINEAR AB12: LINEAR RA12: LINEAR RG16: LINEAR BG16: LINEAR AR15: LINEAR AB15: LINEAR AR24: LINEAR AB24: LINEAR RA24: LINEAR BA24: LINEAR RG24: LINEAR BG24: LINEAR AR30: LINEAR AB30: LINEAR XR12: LINEAR XB12: LINEAR RX12: LINEAR XR15: LINEAR XB15: LINEAR XR24: LINEAR XB24: LINEAR RX24: LINEAR BX24: LINEAR XR30: LINEAR XB30: LINEAR YUYV: LINEAR UYVY: LINEAR NV12: LINEAR 43 zpos: flags: range values: 0 1 value: 0 44 COLOR_ENCODING: flags: enum enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1 value: 0 45 COLOR_RANGE: flags: enum enums: YCbCr limited range=0 YCbCr full range=1 value: 1 46 alpha: flags: range values: 0 65535 value: 65535 47 pixel blend mode: flags: enum enums: Pre-multiplied=0 Coverage=1 value: 0 Frame buffers: id size pitch root@am62axx-evm:~#
The evaluation board is negotiating to the highest resolution. So first I am trying to change lower resolution in evaluation board. If I can acheive changing resolution in evaluation board, I can try the same approach in my custom board. I am not getting proper way for changing resolution.
Hi Sathiya,
You can change display resolution using the following:
- For non-weston application, at U-Boot prompt do the following:
setenv optargs video=HDMI-A-1:1024x768
- For weston application, add the HDMI-A configuration to /etc/xdg/weston/weston.ini in a new “output” section, as shown below:
[output] name=HDMI-A-1 mode=1024x768
Regards
Divyansh
Hi Sathiya,
For runtime change, you may want to do it dynamically from userspace-level framework like Qt.
We do not have an example to change it via Kernel/DRM in runtime. You may check within the Linux Community for that.
Regards
Divyansh