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.

Change HDMI output resolution



Hi.

I'm using c6a816x EVM with linux kernel 2.6.34, EZSDK 5.00.00.56 and PSP 4.00.00.07. Matrix GUI application and QT examples work fine.



I need to change resolution to that which is not in the list of "change_resolution" script, for example 1280x1024. How can i do this?

Command "fbset" is only cut visible part of display . Also I tried to add following options to my bootargs: "omapdss.def_disp=dvi omapfb.mode=dvi:1280x1024-16", but it didn't work too.



P.S. Sorry for my english.



Thanks.

  • Check here for the HDVPSS user guide and search for "timings".

    http://ap-fpdsp-swapps.dal.design.ti.com/index.php/DM814X_C6A814X_AM387X_VPSS_Video_Driver_User_Guide_PSP_04.01.00.05

    When changing the timings you will need to know the VESA DMT parameters for the specific mode you are wanting to support.

    Below are the most common DMT timing parameters.

    BR,

    Steve

    //Sync,Rpt,    Hact,    Vact,    IP,    VFreq,    Pclk,    HFP,    HSW,    HBP,    VFP,    VSW,VBP        EQL,EQH,Hpol,Vpol,FMT(16:9-4:3)
    VIDEO_TIMINGS VESA_Timings[] = {
    {1,        0,    640    ,    350,    0,    85.080,    31.500,    32    ,    64    ,    96    ,    32    ,    3,    60,        64,    64,    1,     1, 0},
    {1,        0,    640    ,    400,    0,    85.080,    31.500,    32    ,    64    ,    96    ,    1    ,    3,    41,        64,    64,    1,     1, 0},
    {1,        0,    720    ,    400,    0,    85.039,    35.500,    36    ,    72    ,    108,    1    ,    3,    42,        72,    72,    1,     1, 0},
    {1,        0,    640    ,    480,    0,    59.940,    25.175,    16    ,    96    ,    48    ,    10    ,    2,    33,        96,    96,    1,     1, 0},
    {1,        0,    640    ,    480,    0,    72.809,    31.500,    24    ,    40    ,    128,    9    ,    3,    28,        40,    40,    1,     1, 0},
    {1,        0,    640    ,    480,    0,    75.000,    31.500,    16    ,    64    ,    120,    1    ,    3,    16,        64,    64,    1,     1, 0},
    {1,        0,    640    ,    480,    0,    85.008,    36.000,    56    ,    56    ,    80    ,    1    ,    3,    25,        56,    56,    1,     1, 0},
    {1,        0,    800    ,    600,    0,    56.250,    36.000,    24    ,    72    ,    128,    1    ,    2,    22,        72,    72,    1,     1, 0},
    {1,        0,    800    ,    600,    0,    60.317,    40.000,    40    ,    128,    88    ,    1    ,    4,    23,        128,128,1,     1, 0},
    {1,        0,    800    ,    600,    0,    72.188,    50.000,    56    ,    120,    64    ,    37    ,    6,    23,        120,120,1,     1, 0},
    {1,        0,    800    ,    600,    0,    75.000,    49.500,    16    ,    80    ,    160,    1    ,    3,    21,        80,    80,    1,     1, 0},
    {1,        0,    800    ,    600,    0,    85.061,    56.250,    32    ,    64    ,    152,    1    ,    3,    27,        64,    64,    1,     1, 0},
    {1,        0,    800    ,    600,    0,    119.972,73.250,    48    ,    32    ,    80    ,    3    ,    4,    29,        32,    32,    1,     1, 0},
    {1,        0,    848    ,    480,    0,    60.000,    33.750,    16    ,    112,    112,    6    ,    8,    23,        112,112,1,     1, 0},
    {1,        0,    1024,    768,    1,    86.957,    44.900,    8    ,    176,    56    ,    0    ,    4,    20,        176,176,1,     1, 0},
    {1,        0,    1024,    768,    0,    60.004,    65.000,    24    ,    136,    160,    3    ,    6,    29,        136,136,1,     1, 0},
    {1,        0,    1024,    768,    0,    70.069,    75.000,    24    ,    136,    144,    3    ,    6,    29,        136,136,1,     1, 0},
    {1,        0,    1024,    768,    0,    75.029,    78.750,    16    ,    96    ,    176,    1    ,    3,    28,        96,    96,    1,     1, 0},
    {1,        0,    1024,    768,    0,    84.997,    94.500,    48    ,    96    ,    208,    1    ,    3,    36,        96,    96,    1,     1, 0},
    {1,        0,    1024,    768,    0,    119.989,115.500,48    ,    32    ,    80    ,    3    ,    4,    38,        32, 32,    1,     1, 0},
    {1,        0,    1152,    864,    0,    75.000,    108.000,64    ,    128,    256,    1    ,    3,    32,        128,128,1,     1, 0},
    {1,        0,    1280,    768,    0,    59.995,    68.250,    48    ,    32    ,    80    ,    3    ,    7,    12,        32,    32,    1,     1, 0},
    {1,        0,    1280,    768,    0,    59.870,    79.500,    64    ,    128,    192,    3    ,    7,    20,        128,128,1,     1, 0},
    {1,        0,    1280,    768,    0,    74.893,    102.250,80    ,    128,    208,    3    ,    7,    27,        128,128,1,     1, 0},
    {1,        0,    1280,    768,    0,    84.837,    117.500,80    ,    136,    216,    3    ,    7,    31,        136,136,1,     1, 0},
    {1,        0,    1280,    768,    0,    119.798,140.250,48    ,    32    ,    80    ,    3    ,    7,    35,        32,    32,    1,     1, 0},
    {1,        0,    1280,    800,    0,    59.910,    71.000,    48    ,    32    ,    80    ,    3    ,    6,    14,        32,    32,    1,     1, 0},
    {1,        0,    1280,    800,    0,    59.810,    83.500,    72    ,    128,    200,    3    ,    6,    22,        128,128,1,     1, 0},
    {1,        0,    1280,    800,    0,    74.934,    106.500,80    ,    128,    208,    3    ,    6,    29,        128,128,1,     1, 0},
    {1,        0,    1280,    800,    0,    84.880,    122.500,80    ,    136,    216,    3    ,    6,    34,        136,136,1,     1, 0},
    {1,        0,    1280,    800,    0,    119.909,146.250,48    ,    32    ,    80    ,    3    ,    6,    38,        32,    32,    1,     1, 0},
    {1,        0,    1280,    960,    0,    60.000,    108.000,96    ,    112,    312,    1    ,    3,    36,        112,112,1,     1, 0},
    {1,        0,    1280,    960,    0,    85.002,    148.500,64    ,    160,    224,    1    ,    3,    47,        160,160,1,     1, 0},
    {1,        0,    1280,    1024,    0,    60.020,    108.000,48    ,    112,    248,    1    ,    3,    38,        112,112,1,     1, 0},
    {1,        0,    1280,    1024,    0,    75.025,    135.000,16    ,    144,    248,    1    ,    3,    38,        144,144,1,     1, 0},
    {1,        0,    1360,    768,    0,    60.015,    85.500,    64    ,    112,    256,    3    ,    6,    18,        112,112,1,     1, 0},
    {1,        0,    1360,    768,    0,    119.967,148.250,48    ,    32    ,    80    ,    3    ,    5,    37,        32,    32,    1,     1, 0},
    {1,        0,    1400,    1050,    0,    59.948,    101.000,48    ,    32    ,    80    ,    3    ,    4,    23,        32,    32,    1,     1, 0},
    {1,        0,    1400,    1050,    0,    59.978,    121.750,88    ,    144,    232,    3    ,    4,    32,        144,144,1,     1, 0},
    {1,        0,    1440,    900,    0,    59.901,    88.750,    48    ,    32    ,    80    ,    3    ,    6,    17,        32,    32,    1,     1, 0},
    {1,        0,    1440,    900,    0,    59.887,    106.500,80    ,    152,    232,    3    ,    6,    25,        152,152,1,     1, 0},
    {1,        0,    1440,    900,    0,    74.984,    136.750,96    ,    152,    248,    3    ,    6,    33,        152,152,1,     1, 0},
    {1,        0,    1680,    1050,    0,    59.883,    119.000,48    ,    32    ,    80    ,    3    ,    6,    21,        32,    32,    1,     1, 0},
    {1,        0,    1680,    1050,    0,    59.954,    146.250,104,    176,    280,    3    ,    6,    30,        176,176,1,     1, 0},
    {1,        0,    1366,    768,    0,    59.790,    85.500,    70    ,    143,    213,    3    ,    3,    24,        143,143,1,     1, 0},
    {1,        0,    1920,    1080,    0,    60.000,    148.500,88    ,    44    ,    148,    4    ,    5,    36,        44,    44,    1,     1, 0},
    {1,        0,    1600,    1200,    0,    60,        162,    64,        192,    304,    1,        3,    46,        192,192,1,    1, 0},
    {1,     0,     1280,     720,     0,     59.579,    64,        48,        32,        80,        3,        5,    13,        32,    32,    1,    0,    0},//Reduced blanking
    {1,     0,     1280,     720,     0,     59.855,    74.5,    64,        128,    192,    3,        5,    20,        32,    32,    1,    0,    0},//Non-Reduced blanking
    {0,        0,    0    ,    0,        0,    0    ,    0    ,    0    ,    0    ,    0    ,    0    ,    0,    0,        0,    0,    0,     0, 0}
    };

  • Your PSP and SDK version were too old, I do not think 1280x1024 is supported in those release. Please update to new SDK.

    http://software-dl.ti.com/dsps/dsps_public_sw/ezsdk/latest/index_FDS.html

    Meanwhile, this is C6A816X Platform, which is not OMAP, so omapdss and omapfb will not work.

    Regards,

    yihe

  • Thank you, Steve, for quick response, but I have already read this guide and haven't found any folder which name starts with "display" on "/sys/devices/platform/vpss/" path. Which folder should I use?

  • Thank you, yihe, for your response, but I already have this SDK too. And there is another problem: I not have any graphic output at all despite framebuffer support is included in my kernel. May be you have a solution of this problem?

  • Your PSP package is too old and it should be /sys/devices/platform/vpss/hdmi in your case. but I do not think your release support 1280x1024 since it was too old.

    Regards,

    yihe

  • Did you mean 5.02.02.60 did not show anything after Matrix Demo ? did you follow the guide?

    How do you test this?

    Regards,

    yihe

  • I mean even Matrix Demo doesn't work. Yes, I followed the guide.

    And when I'm trying to launch any QT example, I get error:

    "Error reading fixed information.

    QLinuxFbScreen::connect:Inappropriate ioctl for device"

    I also tried to boot with prebuilded uImage-2.6.37, but I get the same error.

  • I now just relaunch "setup.sh", it reconfigure my system and EVM, and now I have graphic output. So, one problem is solved!

    What should I do to change HDMI resolution with new SDK?

  • Hi,

    Please find the attached file explaining how to change resolutions on HDMI. It also lists all supported resolutions. Its supported in PSP release 04.00.01.13. ezsdk still needs to be integrated with PSP04.00.01.13 release.

     

    Regards,

    Hardik shah

    This patch adds the supports for many different CEA and VESA resolutions on HDMI.
    All the supported resoltions for the CEA standard are transmitted to sink 
    through HDMI protocol. All the supported resolutiongs for the VESA standard are
    transmitted through DVI protocol. Following are the resolutions tested with this 
    patch. This patch may break TI814x HDMI. Please run test.sh for setting mode to 
    480P. It lists all commands for changing the mode.
    
    Note: While booting the latest kernel "notifyk.vpssm3_sva=0xa0000000" bootargs
    needs to be define in addition to all previous bootargs.
    
    1.  VGA
    2.  720p60
    3.  480p60
    4.  1080p
    5.  576p
    6.  1080p24
    7.  800X600@60
    8.  1280X768@60
    9.  1360X768@60
    10. 1280X960@60
    11. 1280X1024@60
    12. 1024X768@60
    13. 1400X1050@60
    14  1400X900@60
    
    Following is the method to change the resolution on on-chip HDMI. 
    
    1. echo 0 > /sys/devices/platform/vpss/display0/enabled
    2. echo echo 27027,720/16/60/62,480/9/30/6,1 > /sys/devices/platform/vpss/display0/timings
    3. echo 1 > /sys/devices/platform/vpss/display0/enabled
    
    Above will change the mode on the Venc as well as HDMI. All the drivers like
    FBDEV, FVID2 needs to be reconfigured once the mode is changed. 
    
    Below are the timing paramters for the different CEA and VESA modes.  Modes with 
    active pixels greater than 1920 pixels wont work.
    
    echo 25200,640/16/48/96,480/10/33/2,1 > /sys/devices/platform/vpss/display0/timings
    echo 74250,1280/440/220/40,720/5/20/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 74250,1280/110/220/40,720/5/20/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 27027,720/16/60/62,480/9/30/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 108000,2880/48/272/256,576/5/39/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 27027,1440/38/114/124,240/4/15/3,1 > /sys/devices/platform/vpss/display0/timings
    echo 27000,1440/24/138/126,288/2/19/3,1 > /sys/devices/platform/vpss/display0/timings
    echo 74250,1920/528/148/44,540/2/15/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 74250,1920/88/148/44,540/2/15/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 148500,1920/88/148/44,1080/4/36/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 27000,720/12/68/64,576/5/39/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 54000,1440/24/136/128,576/5/39/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 148500,1920/528/148/44,1080/4/36/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 108108,2880/64/240/248,480/9/30/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 74250,1920/638/148/44,1080/4/36/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 25175,640/16/48/96,480/11/31/2,1 > /sys/devices/platform/vpss/display0/timings
    echo 40000,800/40/88/128,600/1/23/4,1 > /sys/devices/platform/vpss/display0/timings
    echo 33750,848/16/112/112,480/6/23/8,1 > /sys/devices/platform/vpss/display0/timings
    echo 79500,1280/64/192/128,768/3/20/7,1 > /sys/devices/platform/vpss/display0/timings
    echo 83500,1280/72/200/128,800/3/22/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 85500,1360/64/256/112,768/3/18/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 108000,1280/96/312/112,960/1/36/3,1 > /sys/devices/platform/vpss/display0/timings
    echo 108000,1280/48/248/112,1024/1/38/3,1 > /sys/devices/platform/vpss/display0/timings
    echo 65000,1024/24/160/136,768/3/29/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 121750,1400/88/232/144,1050/3/32/4,1 > /sys/devices/platform/vpss/display0/timings
    echo 106500,1440/80/232/152,900/3/25/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 146250,1680/104/280/176,1050/3/30/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 85500,1366/70/213/143,768/3/24/3,1 > /sys/devices/platform/vpss/display0/timings
    echo 148500,1920/88/80/44,1080/4/36/5,1 > /sys/devices/platform/vpss/display0/timings
    echo 68250,1280/48/80/32,768/3/12/7,1 > /sys/devices/platform/vpss/display0/timings
    echo 101000,1400/48/80/32,1050/3/23/4,1 > /sys/devices/platform/vpss/display0/timings
    echo 119000,1680/48/80/32,1050/3/21/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 79500,1280/48/80/32,800/3/14/6,1 > /sys/devices/platform/vpss/display0/timings
    echo 74250,1280/110/220/40,720/5/20/5,1 > /sys/devices/platform/vpss/display0/timings
    

  • Thank you for response, but I have a problem with PSP 04.00.01.13 release. I not have any graphic output at all, even Matrix GUI application doesn't start. It's look like some modules were not loaded during the boot. I can't find any help how to upgrade PSP correctly.

  • Is anyone can say me, where I may find any instructions how to change resolution?

  • Hi,

    PSP04.00.01.13 is not integrated with ezsdk as of now. Please wait till ezsdk integrates PSP04.00.01.13 release. As there may be some changes required in application for new kernel migration.

     

    Regards,

    Hardik Shah