CEA vs DMT formats


13 posts
by rpi_newbie » Fri Apr 20, 2012 1:18 pm
Here is a list of all CEA and DMT formats (as of CEA-861 E and DMT V1 r12 respectively).

If you want to use any of these modes explicitly, set hdmi_group and hdmi_mode to the correct values in the config file. Note that NOT all modes are supported by the Raspberry Pi hardware (mainly the high resolution/high frame rate modes) and all explicit modes are subject to EDID support of the monitor/TV.

CEA (hdmi_group = 1)

HDMI_CEA_VGA             =  1,
HDMI_CEA_480p60          =  2,
HDMI_CEA_480p60H         =  3,
HDMI_CEA_720p60          =  4,
HDMI_CEA_1080i60         =  5,
HDMI_CEA_480i60          =  6,
HDMI_CEA_480i60H         =  7,
HDMI_CEA_240p60          =  8,
HDMI_CEA_240p60H         =  9,
HDMI_CEA_480i60_4x       = 10,
HDMI_CEA_480i60_4xH      = 11,
HDMI_CEA_240p60_4x       = 12,
HDMI_CEA_240p60_4xH      = 13,
HDMI_CEA_480p60_2x       = 14,
HDMI_CEA_480p60_2xH      = 15,
HDMI_CEA_1080p60         = 16,
HDMI_CEA_576p50          = 17,
HDMI_CEA_576p50H         = 18,
HDMI_CEA_720p50          = 19,
HDMI_CEA_1080i50         = 20,
HDMI_CEA_576i50          = 21,
HDMI_CEA_576i50H         = 22,
HDMI_CEA_288p50          = 23,
HDMI_CEA_288p50H         = 24,
HDMI_CEA_576i50_4x       = 25,
HDMI_CEA_576i50_4xH      = 26,
HDMI_CEA_288p50_4x       = 27,
HDMI_CEA_288p50_4xH      = 28,
HDMI_CEA_576p50_2x       = 29,
HDMI_CEA_576p50_2xH      = 30,
HDMI_CEA_1080p50         = 31,
HDMI_CEA_1080p24         = 32,
HDMI_CEA_1080p25         = 33,
HDMI_CEA_1080p30         = 34,
HDMI_CEA_480p60_4x       = 35,
HDMI_CEA_480p60_4xH      = 36,
HDMI_CEA_576p50_4x       = 37,
HDMI_CEA_576p50_4xH      = 38,
HDMI_CEA_1080i50_rb      = 39,
HDMI_CEA_1080i100        = 40,
HDMI_CEA_720p100         = 41,
HDMI_CEA_576p100         = 42,
HDMI_CEA_576p100H        = 43,
HDMI_CEA_576i100         = 44,
HDMI_CEA_576i100H        = 45,
HDMI_CEA_1080i120        = 46,
HDMI_CEA_720p120         = 47,
HDMI_CEA_480p120         = 48,
HDMI_CEA_480p120H        = 49,
HDMI_CEA_480i120         = 50,
HDMI_CEA_480i120H        = 51,
HDMI_CEA_576p200         = 52,
HDMI_CEA_576p200H        = 53,
HDMI_CEA_576i200         = 54,
HDMI_CEA_576i200H        = 55,
HDMI_CEA_480p240         = 56,
HDMI_CEA_480p240H        = 57,
HDMI_CEA_480i240         = 58,
HDMI_CEA_480i240H        = 59,
HDMI_CEA_720p24          = 60,
HDMI_CEA_720p25          = 61,
HDMI_CEA_720p30          = 62,
HDMI_CEA_1080p120        = 63,
HDMI_CEA_1080p100        = 64

DMT (hdmi_group = 2)

HDMI_DMT_640x350_85      = 0x1,  /**<640x350 */
HDMI_DMT_640x400_85      = 0x2,  /**<640x400 */
HDMI_DMT_IBM_VGA_85      = 0x3,  /**<720x400 */
HDMI_DMT_VGA_60          = 0x4,  /**<640x480 (60Hz is same as VGA in CEA above) */
HDMI_DMT_VGA_72          = 0x5,
HDMI_DMT_VGA_75          = 0x6,
HDMI_DMT_VGA_85          = 0x7,
HDMI_DMT_SVGA_56         = 0x8,  /**<800x600 */
HDMI_DMT_SVGA_60         = 0x9,
HDMI_DMT_SVGA_72         = 0xA,
HDMI_DMT_SVGA_75         = 0xB,
HDMI_DMT_SVGA_85         = 0xC,
HDMI_DMT_SVGA_120        = 0xD,
HDMI_DMT_848x480_60      = 0xE,  /**<848x480 */
HDMI_DMT_XGA_43          = 0xF,  /**<1024x768 – interlaced, DO NOT USE */
HDMI_DMT_XGA_60          = 0x10, /**<1024x768 */
HDMI_DMT_XGA_70          = 0x11,
HDMI_DMT_XGA_75          = 0x12,
HDMI_DMT_XGA_85          = 0x13,
HDMI_DMT_XGA_120         = 0x14,
HDMI_DMT_XGAP_75         = 0x15, /**<1152x864 */
HDMI_DMT_WXGA_RB         = 0x16, /**<1280x768 reduced blanking */
HDMI_DMT_WXGA_60         = 0x17,
HDMI_DMT_WXGA_75         = 0x18,
HDMI_DMT_WXGA_85         = 0x19,
HDMI_DMT_WXGA_120        = 0x1A, /**<120Hz with reduced blanking */
HDMI_DMT_1280x800_RB     = 0x1B, /**<1280x800 reduced blanking */
HDMI_DMT_1280x800_60     = 0x1C,
HDMI_DMT_1280x800_75     = 0x1D,
HDMI_DMT_1280x800_85     = 0x1E,
HDMI_DMT_1280x800_120    = 0x1F, /** reduced blanking */
HDMI_DMT_1280x960_60     = 0x20, /**<1280x960 */
HDMI_DMT_1280x960_85     = 0x21,
HDMI_DMT_1280x960_120    = 0x22, /** reduced blanking */
HDMI_DMT_SXGA_60         = 0x23, /**<1280x1024 */
HDMI_DMT_SXGA_75         = 0x24,
HDMI_DMT_SXGA_85         = 0x25,
HDMI_DMT_SXGA_120        = 0x26, /** reduced blanking */
HDMI_DMT_1360x768_60     = 0x27, /**<1360x768 */
HDMI_DMT_1360x768_120    = 0x28, /**<120 Hz with reduced blanking */
HDMI_DMT_SXGAP_RB        = 0x29, /**<1400x1050 reduced blanking */
HDMI_DMT_SXGAP_60        = 0x2A,
HDMI_DMT_SXGAP_75        = 0x2B,
HDMI_DMT_SXGAP_85        = 0x2C,
HDMI_DMT_SXGAP_120       = 0x2D, /** reduced blanking */
HDMI_DMT_1440x900_RB     = 0x2E, /**<1440x900 reduced blanking */
HDMI_DMT_1440x900_60     = 0x2F,
HDMI_DMT_1440x900_75     = 0x30,
HDMI_DMT_1440x900_85     = 0x31,
HDMI_DMT_1440x900_120    = 0x32, /** reduced blanking */
HDMI_DMT_UXGA_60         = 0x33, /**<1600x1200 60Hz */
HDMI_DMT_UXGA_65         = 0x34,
HDMI_DMT_UXGA_70         = 0x35,
HDMI_DMT_UXGA_75         = 0x36,
HDMI_DMT_UXGA_85         = 0x37,
HDMI_DMT_UXGA_120        = 0x38, /** reduced blanking */
HDMI_DMT_SWXGAP_RB       = 0x39, /**<1680x1050 reduced blanking */
HDMI_DMT_SWXGAP_60       = 0x3A, /**<1680x1050 60Hz */
HDMI_DMT_SWXGAP_75       = 0x3B,
HDMI_DMT_SWXGAP_85       = 0x3C,
HDMI_DMT_SWXGAP_120      = 0x3D, /** reduced blanking */
HDMI_DMT_1792x1344_60    = 0x3E, /**<1792x1344 60Hz */
HDMI_DMT_1792x1344_75    = 0x3F, /**<1792x1344 75Hz */
HDMI_DMT_1792x1344_120   = 0x40, /** reduced blanking */
HDMI_DMT_1856x1392_60    = 0x41, /**<1856x1392 60Hz */
HDMI_DMT_1856x1392_75    = 0x42, /**<1856x1392 75Hz */
HDMI_DMT_1856x1392_120   = 0x43, /** reduced blanking */
HDMI_DMT_WUXGA_RB        = 0x44, /**<1920x1200 reduced blanking */
HDMI_DMT_WUXGA_60        = 0x45, /**<1920x1200 60Hz */
HDMI_DMT_WUXGA_75        = 0x46, /**<1920x1200 75Hz */
HDMI_DMT_WUXGA_85        = 0x47, /**<1920x1200 85Hz */
HDMI_DMT_WUXGA_120       = 0x48, /** reduced blanking */
HDMI_DMT_1920x1440_60    = 0x49, /**<1920x1440 60Hz */
HDMI_DMT_1920x1440_75    = 0x4A, /**<1920x1440 75Hz */
HDMI_DMT_1920x1440_120   = 0x4B, /** reduced blanking */
HDMI_DMT_2560x1600_RB    = 0x4C, /**<2560x1600 reduced blanking */
HDMI_DMT_2560x1600_60    = 0x4D, /**<2560x1600 60 Hz */
HDMI_DMT_2560x1600_75    = 0x4E, /**<2560x1600 75 Hz */
HDMI_DMT_2560x1600_85    = 0x4E, /**<2560x1600 85 Hz */
HDMI_DMT_2560x1600_120   = 0x50, /** reduced blanking */
HDMI_DMT_1366x768_60     = 0x51, /**<1366x768 60Hz */
HDMI_DMT_1080p_60        = 0x52, /**<Same as 1080p60 in CEA above */
HDMI_DMT_1600x900_RB     = 0x53, /**<1600x900 reduced blanking */
HDMI_DMT_2048x1152_RB    = 0x54, /**<2048x1152 reduced blanking */
HDMI_DMT_720p_60         = 0x55, /**<Same as 720p60 in CEA above */
HDMI_DMT_1366x768_RB     = 0x56, /**<1366x768 reduced blanking */
Posts: 27
Joined: Tue Apr 17, 2012 10:57 am
by Feakster » Thu May 10, 2012 5:34 pm
Hi, which config file do I need to edit/create? Also, could you please give an example line of code for say a 1080i TV running at 50Hz? My LXDE desktop resolution is apparently stuck at 1184x624with a refresh rate of 0.0?
User avatar
Posts: 35
Joined: Sun Jan 22, 2012 10:41 pm
Location: Gloucester, Gloucestershire, United Kingdom
by rpi_newbie » Thu May 10, 2012 7:44 pm
hi, it is config.txt

See http://elinux.org/RPi_config.txt or

http://www.raspberrypi.org/for.....config-txt

for a list of options you can set in the config file.

You should not need a config file to run and the pi will just pick the preferred resolution to drive. Failing that the pi will pick the best resolution it can drive based on some heuristics.

You can force a format by setting

hdmi_group=1 (for CEA) 2 (for DMT)

hdmi_mode=x  (x is the corresponding mode number)

so 1080p60 is hdmi_group=1 hdmi_mode=16

You can dump the EDID of the monitor with tvservice -d<file>

and then parse the edid with edidparser <file>

which will show what format the pi is trying to drive (if not specified)
Posts: 27
Joined: Tue Apr 17, 2012 10:57 am
by Gibble » Fri May 11, 2012 7:26 am
This helped me loads when setting up. Can't help but feel it should be in a sticky or in the wiki somewhere if its not already! Thanks.
Posts: 56
Joined: Wed May 09, 2012 9:52 am
by ghans » Fri May 11, 2012 8:25 am
PUT THIS IN THE WIKI !

PLEASE !

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Posts: 3916
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany
by Feakster » Fri May 11, 2012 11:25 am
I concur... Wiki!
User avatar
Posts: 35
Joined: Sun Jan 22, 2012 10:41 pm
Location: Gloucester, Gloucestershire, United Kingdom
by Clair » Sat May 12, 2012 2:32 pm
FWIW: I tried the above in config.txt as follows (Debian img):

hdmi_group=2

HTMI_DMT_XGA_60=0x10

and when I rebooted I had NO monitor image. So use with caution and expect difficulties.

My problem is I am using a Dell computer monitor (not a TV). The LXDE window leaves about an inch all the way around unused. Needless to say, I am trying to get the whole screen to be used by LXDE. I could live the smaller real estate, except that I can't get to bottom of any windows, so I often can't get to buttons, or the bottom scroll bar.

And, as you can see from this post -- no luck so far. I am writing this as I am rewiting the Debian img file to my SD card. Starting from scratch.
Posts: 20
Joined: Mon Jan 02, 2012 11:01 am
by dom » Sat May 12, 2012 2:44 pm
Don't try and fix overscan issues by changing the hdmi mode.

Use disable_overscan=1
(seee http://elinux.org/R-Pi_Troubleshooting for more info)
Moderator
Moderator
Posts: 3862
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by bredman » Fri May 18, 2012 10:00 am
Clair wrote:FWIW: I tried the above in config.txt as follows (Debian img):

hdmi_group=2

HTMI_DMT_XGA_60=0x10

and when I rebooted I had NO monitor image. So use with caution and expect difficulties.



The wiki at http://elinux.org/RPi_config.txt is very confusing, so I have made some improvements.

I have used your particular case as the example, so the wiki now shows the example

# Set monitor mode to DMT
hdmi_group=2
# Set monitor resolution to 1024x768 XGA 60Hz (HDMI_DMT_XGA_60)
hdmi_mode=0x10

I have not been able to test this (no hardware available) so I would like if somebody could test it. I am not sure if hex numbers are valid in the config file.
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by dom » Fri May 18, 2012 12:00 pm
bredman wrote:I am not sure if hex numbers are valid in the config file.

Hex numbers are fine. It goes through strtoul.
Moderator
Moderator
Posts: 3862
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Stokestack » Thu Mar 28, 2013 12:30 am
I guess CEA is Consumer Electronics Association, but what is DMT?
Posts: 37
Joined: Wed Aug 15, 2012 1:00 am
by dom » Thu Mar 28, 2013 3:58 pm
Stokestack wrote:I guess CEA is Consumer Electronics Association, but what is DMT?

Display Monitor Timing
Moderator
Moderator
Posts: 3862
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Stokestack » Thu Mar 28, 2013 11:10 pm
Thanks.

Of course, "display monitor" seems redundant...
Posts: 37
Joined: Wed Aug 15, 2012 1:00 am