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.

Linux/DLPC900: Problem with getting the correct HDMI output resolution

Part Number: DLPC900
Other Parts Discussed in Thread: DLP9000

Tool/software: Linux

Hi,

We have a problem to get the proper HDMI output with our micro controller. When we use a HostPC the native resolution is 2560 by 1600 and everything works perfectly fine. But when we use the microcontroller it doesn't recognise the native resolution.

The tvservice status is the following:

state 0x120006 [DVI DMT (82) RGB full 16:9], 1920x1080 @ 60.00Hz, progressive

The buffer for video buffer is not correct, but I assume a proper resolution would solve that problem too. As of now, the output of fbset is below:

mode "1920x1200"
geometry 1920 1200 1920 1200 16
timings 0 0 0 0 0 0 0
rgba 5/11,6/5,5/0,0/16
endmode

We have tried to force the console size (fbset) to 2560 by 1600. We got that working no problem.

We have tried to force the hdmi output resolution to 2560 by 1600, it worked but we didn't see anything coming out from the DLP board. Our understanding is that mode was not set properly.

We have observed that sometimes vSYNC is not working correctly. Also, there were cases that tvservice didn't have the proper ID name for the device after rebooting or playing with the resolution.

Here is the edid parsing output:

Enabling fuzzy format match...
Parsing info.txt...
HDMI:EDID version 1.3, 1 extensions, screen size 52x32 cm
HDMI:EDID features - videodef 0x82 !standby !suspend active off; colour encoding :RGB444; sRGB is not default colourspace; preferred format is native; does not s upport GTF
HDMI:EDID found monitor name descriptor tag 0xfc
HDMI:EDID monitor name is DLP9000_HDMI_
HDMI:EDID found monitor range descriptor tag 0xfd
HDMI:EDID monitor range offsets: V min=0, V max=0, H min=0, H max=0
HDMI:EDID monitor range: vertical is 28-62 Hz, horizontal is 80-164 kHz, max pix el clock is 270 MHz
HDMI:EDID monitor range does not support GTF
HDMI:EDID failed to find a matching detail format for 2560x1600p hfp:48 hs:32 hb p:80 vfp:3 vs:6 vbp:14 pixel clock:132 MHz
HDMI:EDID calculated refresh rate is 30 Hz
HDMI:EDID guessing the format to be 2560x1600p @30 Hz
HDMI:EDID found unknown detail timing format: 2560x1600p hfp:48 hs:32 hbp:80 vfp :3 vs:6 vbp:14 pixel clock:132 MHz
HDMI:EDID failed to find a matching detail format for 1920x1080p hfp:48 hs:32 hb p:80 vfp:3 vs:6 vbp:37 pixel clock:140 MHz
HDMI:EDID calculated refresh rate is 60 Hz
HDMI:EDID guessing the format to be 1920x1080p @60 Hz
HDMI:EDID found preferred CEA detail timing format: 1920x1080p @ 60 Hz (16)
HDMI:EDID established timing I/II bytes are FF FF 80
HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II
HDMI:EDID found DMT format: code 5, 640x480p @ 72 Hz in established timing I/II
HDMI:EDID found DMT format: code 6, 640x480p @ 75 Hz in established timing I/II
HDMI:EDID found DMT format: code 8, 800x600p @ 56 Hz in established timing I/II
HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz in established timing I/II
HDMI:EDID found DMT format: code 10, 800x600p @ 72 Hz in established timing I/II
HDMI:EDID found DMT format: code 11, 800x600p @ 75 Hz in established timing I/II
HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/I I
HDMI:EDID found DMT format: code 17, 1024x768p @ 70 Hz in established timing I/I I
HDMI:EDID found DMT format: code 18, 1024x768p @ 75 Hz in established timing I/I I
HDMI:EDID found DMT format: code 36, 1280x1024p @ 75 Hz in established timing I/ II
HDMI:EDID standard timings block x 8: 0x0101 0101 0101 0101 0101 0101 0101 0101
HDMI:EDID parsing v3 CEA extension 0
HDMI:EDID monitor support - underscan IT formats:no, basic audio:yes, yuv444:no, yuv422:no, #native DTD:0
HDMI:EDID CEA extension has no reserved data
HDMI:EDID moving support for CEA mode 16 to DMT mode 82 because sink does not su pport HDMI
HDMI:Warning EDID must support pcm or no audio
HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
HDMI:EDID best score mode initialised to CEA (1) 640x480p @ 60 Hz with pixel clo ck 25 MHz (score 0)
HDMI:EDID best score mode is now DMT (4) 640x480p @ 60 Hz with pixel clock 25 MH z (score 18432)
HDMI:EDID best score mode is now DMT (5) 640x480p @ 72 Hz with pixel clock 31 MH z (score 22118)
HDMI:EDID best score mode is now DMT (6) 640x480p @ 75 Hz with pixel clock 31 MH z (score 23040)
HDMI:EDID best score mode is now DMT (8) 800x600p @ 56 Hz with pixel clock 36 MH z (score 26880)
HDMI:EDID best score mode is now DMT (9) 800x600p @ 60 Hz with pixel clock 40 MH z (score 28800)
HDMI:EDID best score mode is now DMT (10) 800x600p @ 72 Hz with pixel clock 50 M Hz (score 34560)
HDMI:EDID best score mode is now DMT (11) 800x600p @ 75 Hz with pixel clock 49 M Hz (score 36000)
HDMI:EDID best score mode is now DMT (16) 1024x768p @ 60 Hz with pixel clock 65 MHz (score 47185)
HDMI:EDID best score mode is now DMT (17) 1024x768p @ 70 Hz with pixel clock 75 MHz (score 55050)
HDMI:EDID best score mode is now DMT (18) 1024x768p @ 75 Hz with pixel clock 78 MHz (score 58982)
HDMI:EDID best score mode is now DMT (36) 1280x1024p @ 75 Hz with pixel clock 13 5 MHz (score 98304)
HDMI:EDID best score mode is now DMT (82) 1920x1080p @ 60 Hz with pixel clock 14 8 MHz (score 124416)
HDMI:EDID preferred mode is updated to DMT (82) 1920x1080p @ 60 Hz with pixel cl ock 148500000 Hz
HDMI:EDID has only DVI support and audio support
edid_parser exited with code 0

Thank you for your time, cooperation, and support 

  • Hello Nima,

    It would be very helpful to know what µ-controller and Linux distribution you are using.  Also if this is on a platform (like Beagle, Raspberry Pi, Arduino, Panda, Galileo, etc. . . .) let us know.  This may be a Linux driver or graphics driver on the µ-controller board that does now support this resolution and refresh rate.

    Fizix

  • Hi Fizix,

    I got it sort of working. I really think the problem comes from the fact that the HDMI timing for your board is a little bit different than regular VESA.

    I have found the following from your EDID. I would like to ask you to confirm the numbers are correct. We have two platforms, one is TS 7970 from Technologic Systems and the other one is PI 3.  Currently, the we use it only with PI 3. The distro is Debian, Jessie lite.

    hdmi_timings=<h_active_pixels> <h_sync_polarity><h_front_porch> <h_sync_pulse><h_back_porch> <v_active_lines> <v_sync_polarity><v_front_porch><v_sync_pulse><v_back_porch><v_sync_offset_a<v_sync_offset_b> <pixel_rep> <frame_rate> <interlaced> <pixel_freq> <aspect_ratio>

    Here is my sequence: hdmi_timings=2560 0 48 32 80 1600 0 3 6 14 0 0 0 30 0 132000000 5

    I believe the sequence above is not fully correct because I can still see some inconsistency. For instance, the device id is not set properly:

    device_name=SAM-SyncMaster

    Here is again the EDID output:

    Enabling fuzzy format match...
    Parsing june9.dat...
    HDMI:EDID version 1.3, 1 extensions, screen size 16x9 cm
    HDMI:EDID features - videodef 0x80 !standby !suspend !active off; colour encoding:RGB444|YCbCr422; sRGB is not default colourspace; preferred format is native; does not support GTF
    HDMI:EDID found monitor range descriptor tag 0xfd
    HDMI:EDID monitor range offsets: V min=0, V max=0, H min=0, H max=0
    HDMI:EDID monitor range: vertical is 24-75 Hz, horizontal is 26-81 kHz, max pixel clock is 230 MHz
    HDMI:EDID monitor range does not support GTF
    HDMI:EDID found monitor name descriptor tag 0xfc
    HDMI:EDID monitor name is SyncMaster
    HDMI:EDID found preferred CEA detail timing format: 1920x1080p @ 60 Hz (16)
    HDMI:EDID found CEA detail timing format: 1280x720p @ 50 Hz (19)
    HDMI:EDID established timing I/II bytes are BF EF 80
    HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II
    HDMI:EDID found DMT format: code 5, 640x480p @ 72 Hz in established timing I/II
    HDMI:EDID found DMT format: code 6, 640x480p @ 75 Hz in established timing I/II
    HDMI:EDID found DMT format: code 8, 800x600p @ 56 Hz in established timing I/II
    HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz in established timing I/II
    HDMI:EDID found DMT format: code 10, 800x600p @ 72 Hz in established timing I/II
    HDMI:EDID found DMT format: code 11, 800x600p @ 75 Hz in established timing I/II
    HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/II
    HDMI:EDID found DMT format: code 17, 1024x768p @ 70 Hz in established timing I/II
    HDMI:EDID found DMT format: code 18, 1024x768p @ 75 Hz in established timing I/II
    HDMI:EDID found DMT format: code 36, 1280x1024p @ 75 Hz in established timing I/II
    HDMI:EDID standard timings block x 8: 0x714F 8100 8140 8180 9500 950F A940 B300
    HDMI:EDID found DMT format: code 21, 1152x864p @ 75 Hz (4:3) in standard timing 0
    HDMI:EDID found DMT format: code 28, 1280x800p @ 60 Hz (16:10) in standard timing 1
    HDMI:EDID found DMT format: code 32, 1280x960p @ 60 Hz (4:3) in standard timing 2
    HDMI:EDID found DMT format: code 35, 1280x1024p @ 60 Hz (5:4) in standard timing 3
    HDMI:EDID found DMT format: code 47, 1440x900p @ 60 Hz (16:10) in standard timing 4
    HDMI:EDID found DMT format: code 48, 1440x900p @ 75 Hz (16:10) in standard timing 5
    HDMI:EDID found DMT format: code 51, 1600x1200p @ 60 Hz (4:3) in standard timing 6
    HDMI:EDID found DMT format: code 58, 1680x1050p @ 60 Hz (16:10) in standard timing 7
    HDMI:EDID parsing v3 CEA extension 0
    HDMI:EDID monitor support - underscan IT formats:yes, basic audio:yes, yuv444:yes, yuv422:yes, #native DTD:1
    HDMI:EDID found CEA detail timing format: 1920x1080i @ 50 Hz (20)
    HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)
    HDMI:EDID found CEA detail timing format: 1280x720p @ 60 Hz (4)
    HDMI:EDID found CEA detail timing format: 720x576p @ 50 Hz (17)
    HDMI:EDID found CEA detail timing format: 720x480p @ 60 Hz (2)
    HDMI:EDID found CEA format: code 19, 1280x720p @ 50Hz (native)
    HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz
    HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz
    HDMI:EDID found CEA format: code 20, 1920x1080i @ 50Hz
    HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz
    HDMI:EDID found CEA format: code 18, 720x576p @ 50Hz
    HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz
    HDMI:EDID found CEA format: code 31, 1920x1080p @ 50Hz
    HDMI:EDID found CEA format: code 32, 1920x1080p @ 24Hz
    HDMI:EDID found CEA format: code 33, 1920x1080p @ 25Hz
    HDMI:EDID found CEA format: code 34, 1920x1080p @ 30Hz
    HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48 kHz, sample size: 16|20|24 bits
    HDMI:EDID found Video Capability DB length 2
    HDMI:EDID video capability: CE:3 IT:3 PT:0 QS:0
    HDMI:EDID found HDMI VSDB length 7
    HDMI:EDID HDMI VSDB has physical address 1.0.0.0
    HDMI:EDID HDMI VSDB supports AI:yes, dual link DVI:no
    HDMI:EDID HDMI VSDB deep colour support - 48-bit:no 36-bit:yes 30-bit:yes DC_yuv444:yes
    HDMI:EDID HDMI VSDB max TMDS clock 225 MHz
    HDMI:EDID HDMI VSDB has no latency information
    HDMI:EDID adding mandatory support for CEA (1) 640x480p @ 60Hz
    HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
    HDMI:EDID best score mode initialised to CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 0)
    HDMI:EDID best score mode is now CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 61864)
    HDMI:EDID best score mode is now CEA (2) 720x480p @ 60 Hz with pixel clock 27 MHz (score 2066472)
    HDMI:EDID CEA mode (3) 720x480p @ 60 Hz with pixel clock 27 MHz has a score of 66472
    HDMI:EDID best score mode is now CEA (4) 1280x720p @ 60 Hz with pixel clock 74 MHz (score 3135592)
    HDMI:EDID DMT mode (4) 640x480p @ 60 Hz with pixel clock 25 MHz has a score of 18432
    HDMI:EDID best score mode is now CEA (5) 1920x1080i @ 60 Hz with pixel clock 74 MHz (score 3773832)
    HDMI:EDID DMT mode (5) 640x480p @ 72 Hz with pixel clock 31 MHz has a score of 22118
    HDMI:EDID DMT mode (6) 640x480p @ 75 Hz with pixel clock 31 MHz has a score of 23040
    HDMI:EDID DMT mode (8) 800x600p @ 56 Hz with pixel clock 36 MHz has a score of 26880
    HDMI:EDID DMT mode (9) 800x600p @ 60 Hz with pixel clock 40 MHz has a score of 28800
    HDMI:EDID DMT mode (10) 800x600p @ 72 Hz with pixel clock 50 MHz has a score of 34560
    HDMI:EDID DMT mode (11) 800x600p @ 75 Hz with pixel clock 49 MHz has a score of 36000
    HDMI:EDID best score mode is now CEA (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz (score 5398248)
    HDMI:EDID DMT mode (16) 1024x768p @ 60 Hz with pixel clock 65 MHz has a score of 47185
    HDMI:EDID CEA mode (17) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 2566472
    HDMI:EDID DMT mode (17) 1024x768p @ 70 Hz with pixel clock 75 MHz has a score of 55050
    HDMI:EDID CEA mode (18) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 66472
    HDMI:EDID DMT mode (18) 1024x768p @ 75 Hz with pixel clock 78 MHz has a score of 58982
    HDMI:EDID CEA mode (19) 1280x720p @ 50 Hz with pixel clock 74 MHz has a score of 4663240
    HDMI:EDID CEA mode (20) 1920x1080i @ 50 Hz with pixel clock 74 MHz has a score of 4232360
    HDMI:EDID DMT mode (21) 1152x864p @ 75 Hz with pixel clock 108 MHz has a score of 99649
    HDMI:EDID DMT mode (28) 1280x800p @ 60 Hz with pixel clock 83 MHz has a score of 86440
    HDMI:EDID CEA mode (31) 1920x1080p @ 50 Hz with pixel clock 148 MHz has a score of 232360
    HDMI:EDID CEA mode (32) 1920x1080p @ 24 Hz with pixel clock 74 MHz has a score of 124532
    HDMI:EDID DMT mode (32) 1280x960p @ 60 Hz with pixel clock 108 MHz has a score of 98728
    HDMI:EDID CEA mode (33) 1920x1080p @ 25 Hz with pixel clock 74 MHz has a score of 128680
    HDMI:EDID CEA mode (34) 1920x1080p @ 30 Hz with pixel clock 74 MHz has a score of 149416
    HDMI:EDID DMT mode (35) 1280x1024p @ 60 Hz with pixel clock 108 MHz has a score of 103643
    HDMI:EDID DMT mode (36) 1280x1024p @ 75 Hz with pixel clock 135 MHz has a score of 98304
    HDMI:EDID DMT mode (47) 1440x900p @ 60 Hz with pixel clock 106 MHz has a score of 102760
    HDMI:EDID DMT mode (48) 1440x900p @ 75 Hz with pixel clock 136 MHz has a score of 122200
    HDMI:EDID DMT mode (51) 1600x1200p @ 60 Hz with pixel clock 162 MHz has a score of 140200
    HDMI:EDID DMT mode (58) 1680x1050p @ 60 Hz with pixel clock 146 MHz has a score of 130840
    HDMI:EDID preferred mode remained as CEA (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz
    HDMI:EDID has HDMI support and audio support
    edid_parser exited with code 0

    Also for fbset these are missing:


    Display timings:
    -pixclock <value> : pixel clock (in picoseconds)
    -left <value> : left margin (in pixels)
    -right <value> : right margin (in pixels)
    -upper <value> : upper margin (in pixel lines)
    -lower <value> : lower margin (in pixel lines)
    -hslen <value> : horizontal sync length (in pixels)
    -vslen <value> : vertical sync length (in pixel lines)

  • Hello Nima,

    We will have to consult with the HDMI team on this and may take a little time.

    Fizix
  • Nima,

    Sorry for the long delay. These values look correct.

    Were you able to get things working?
  • Hello Dear Fizix,

    Yes, I did.

    Now I have another problem. My I2C communication is not stable. Sometimes I need to make more than 10-15 calls to send a command. I use TS7970 computer-on-module. I use 500-ohm resister between VCC 3.3V and my SDA signal as well as 500-ohm between VCC 3.3V and SCL signal. I added two caps on the VCC side of the resistors to get rid of potential noises. They are 470 ceramic capacitors.

    I would like to know if you have any recommendation regarding this issue.

    Thank you.