1 .\" shorthand for double quote that works everywhere.
5 edid-decode - Decode EDID data in human-readable format
7 .B edid-decode <options> [in [out]]
10 decodes EDID monitor description data in human-readable format.
11 If [in] is not given, or [in] is '-', then the EDID will be read from
12 standard input. If [out] is given then the EDID that was read from [in]
13 is written to [out] or to standard output if [out] is '-'. By default
14 the output is written as a hex dump when writing to standard output or
15 a raw EDID if written to a file.
17 If [out] is given then edid-decode only does the conversion, it will
18 skip the decoding step.
20 Input files may be raw binaries or ASCII text. ASCII input is scanned for
21 hex dumps; heuristics are included to search for hexdumps in
23 output (as long as the initial hex dump was included),
27 log file formats, otherwise the data is treated as a raw hexdump. EDID blocks
28 for connected monitors can be found in
29 .B /sys/class/drm/*/edid
30 on modern Linux systems with kernel modesetting support.
32 All timings are shown in a short format, for example:
34 VIC 16: 1920x1080 60.000 Hz 16:9 67.500 kHz 148.500 MHz (native)
35 VIC 5: 1920x1080i 60.000 Hz 16:9 33.750 kHz 74.250 MHz
36 VIC 39: 1920x1080i 50.000 Hz 16:9 31.250 kHz 72.000 MHz
38 Each format starts with a timings type prefix, the resolution, an optional
39 interlaced indicator ('i'), the frame rate (field rate for interlaced formats),
40 the picture aspect ratio, the horizontal frequency, the pixelclock
41 frequency and optionally additional flags between parenthesis.
43 Note that for interlaced formats the frame height is given, not the field
44 height. So each field in a 1920x1080i format has 540 lines.
46 Detailed timings have another 2-3 lines of data:
48 VIC 16: 1920x1080 60.000 Hz 16:9 67.500 kHz 148.500 MHz (native)
49 Hfront 88 Hsync 44 Hback 148 Hpol P
50 Vfront 4 Vsync 5 Vback 36 Vpol P
51 VIC 5: 1920x1080i 60.000 Hz 16:9 33.750 kHz 74.250 MHz
52 Hfront 88 Hsync 44 Hback 148 Hpol P
53 Vfront 2 Vsync 5 Vback 15 Vpol P Vfront +0.5 Odd Field
54 Vfront 2 Vsync 5 Vback 15 Vpol P Vback +0.5 Even Field
55 VIC 39: 1920x1080i 50.000 Hz 16:9 31.250 kHz 72.000 MHz
56 Hfront 32 Hsync 168 Hback 184 Hpol P
57 Vfront 23 Vsync 5 Vback 57 Vpol N Both Fields
59 These describe the horizontal and vertical front porch, sync, backporch
60 and sync polarity values. For interlaced formats there are two lines
61 for the vertical information: one for the Odd Field (aka Field 1) and
62 one for the Even Field (aka Field 2). The vertical front porch of the
63 Odd Field is actually 2.5 (hence the 'Vfront +0.5' at the end of the
64 line), and the back porch of the Even Field is actually 15.5 (hence
65 the 'Vback +0.5' at the end of the line).
67 There is a special 'VIC 39' interlaced format where both fields have
68 the same vertical timings, in that case this is marked with 'Both Fields'.
70 The following timing types can be shown:
74 DMT #: Discrete Monitor Timing (see DMT 1.3 standard). The number is the DMT ID in hexadecimal.
76 CVT: Coordinated Video Timings (formula-based, see CVT 1.2 standard)
78 GTF: Generalized Timing Formula (formula-based, see GTF 1.1 standard)
82 Apple: Old Apple Timings
84 VIC #: Video Identification Code (see CTA-861 standard). The number is the actual
87 HDMI VIC #: HDMI-specific Video Identification Code (see HDMI 2.1 standard). The number
88 is the actual HDMI VIC code.
90 DTD #: Detailed Timings Descriptor (see EDID standard). Also used for
91 DisplayID Video Timing Modes Types I, II, VI and VII. The number denotes that
92 this is the Nth DTD in the EDID.
95 By default DTDs are shown in the long format while others are just shown in
96 the short format. With the option \fB\-\-short\-timings\fR all timings are
97 shown in short format only. With the option \fB\-\-long\-timings\fR all timings
98 are shown in long format.
100 Alternate formats for long timings can be chosen via the \fB\-\-xmodeline\fR or
101 \fB\-\-fbmode\fR options.
105 The following EDID standards are supported by edid-decode:
108 EDID 1.3: VESA Enhanced Extended Display Identication Data Standard, Release A, Revision 1
110 EDID 1.4: VESA Enhanced Extended Display Identication Data Standard, Release A, Revision 2
112 DisplayID 1.3: VESA Display Identification Data (DisplayID) Standard, Version 1.3
114 DisplayID 2.0: VESA DisplayID Standard, Version 2.0
116 DisplayID 2.0: VESA DisplayID v2.0 Errata E7
118 DI-EXT: VESA Display Information Extension Block Standard, Release A
120 LS-EXT: VESA Enhanced EDID Localized String Extension Standard, Release A
122 VTB-EXT: VESA Video Timing Block Extension Data Standard, Release A
124 DTCDB: VESA Display Transfer Characteristics Data Block Standard, Version 1.0
126 DDDB: VESA Display Device Data Block (DDDB) Standard, Version 1
128 HDMI 1.4b: High-Definition Multimedia Interface, Version 1.4b
130 HDMI 2.1: High-Definition Multimedia Interface, Version 2.1
132 HDMI 2.1: Amendment A1 to HDMI Specification Version 2.1
134 CTA-861-H: A DTV Profile for Uncompressed High Speed Digital Interfaces
136 SPWG Notebook Panel Specification, Version 3.5
138 EPI Embedded Panel Interface, Revision 1.0
142 The following related standards are also used by edid-decode:
145 DMT 1.3: VESA and Industry Standards and Guidelines for Computer Display Monitor Timing (DMT), Version 1.0, Rev. 13
147 CVT 1.2: VESA Coordinated Video Timings (CVT) Standard, Version 1.2
149 GTF 1.1: VESA Generalized Timing Formula Standard, Version: 1.1
154 \fB\-h\fR, \fB\-\-help\fR
155 Prints the help message.
157 \fB\-o\fR, \fB\-\-output\-format\fR \fI<fmt>\fR
158 If [out] is specified, then write the EDID in format \fI<fmt>\fR.
160 The output format can be one of:
162 hex: hex numbers in ascii text (default for stdout)
164 raw: binary data (default unless writing to stdout)
166 carray: c-program struct
170 \fB\-c\fR, \fB\-\-check\fR
171 Check if the EDID conforms to the standards. Warnings and failures are
174 \fB\-C\fR, \fB\-\-check\-inline\fR
175 Check if the EDID conforms to the standards. Warnings and failures are
176 reported as they happen.
178 \fB\-n\fR, \fB\-\-native\-timings\fR
179 Report the native timings at the end. There may be multiple native timing reports
180 depending on whether the Source only parses Block 0 (e.g. DVI outputs) or Block 0
181 and the CTA-861 Extension Blocks (HDMI).
183 \fB\-p\fR, \fB\-\-preferred\-timings\fR
184 Report the preferred timings at the end. There may be multiple native timing reports
185 depending on whether the Source only parses Block 0 (e.g. DVI outputs), or Block 0
186 and the CTA-861 Extension Blocks (HDMI), or Block 0 and the DisplayID Extension Blocks
187 (typical for DisplayPort).
189 \fB\-P\fR, \fB\-\-physical\-address\fR
190 Just report the HDMI Source Physical Address and nothing else. Reports f.f.f.f
191 if the EDID could not be parsed, or if there was no CTA-861 Vendor-Specific Data Block
192 with OUI 00-0C-03. Otherwise it reports the Source Physical Address as provided
193 in that Data Block. This can be used as input to HDMI CEC utilities such as the
194 linux cec-ctl(1) utility.
196 \fB\-S\fR, \fB\-\-short\-timings\fR
197 Report all video timings in a short format.
199 \fB\-L\fR, \fB\-\-long\-timings\fR
200 Report all video timings in a long format.
202 \fB\-X\fR, \fB\-\-xmodeline\fR
203 Report all long video timings in the ModeLine format as defined in xorg.conf(5).
204 This ModeLine can be used in the xorg.conf file or passed to xrandr(1) with the
205 xrandr \fB\-\-newmode\fR option.
207 \fB\-F\fR, \fB\-\-fbmode\fR
208 Report all long video timings in the video mode format as defined in fb.modes(5).
210 \fB\-V\fR, \fB\-\-v4l2\-timings\fR
211 Report all long video timings in the video mode format as defined in the linux header v4l2-dv-timings.h
212 for use with the V4L2 VIDIOC_S_DV_TIMINGS ioctl.
214 \fB\-s\fR, \fB\-\-skip\-hex\-dump\fR
215 Skip the initial hex dump of the EDID.
218 Don't show the SHA hash. Normally edid-decode will show the SHA, i.e. the
219 hash of the git commit used to compile edid-decode. This uniquely identifies
220 the version of edid-decode that is used to generate the warnings and
221 failures. But it will also change the output of edid-decode for every new commit
222 in the git repository, even if nothing else changed in the edid-decode output.
223 Use this option to avoid including the SHA in the edid-decode output.
225 \fB\-\-hide\-serial\-numbers\fR
226 Replace any serial numbers in the human readable output by '...'.
227 Note that they are still easily extracted from the EDID hex dump at
231 Show the SHA hash and the last commit date.
234 The following options report the timings for DMT, VIC and HDMI VIC codes and
235 calculate the timings for CVT or GTF timings, based on the given parameters.
236 The EDID will not be shown, although it can be used with the \fB\-\-gtf\fR
237 option in order to read the secondary curve parameters.
239 \fB\-\-std\fR \fI<byte1>\fR,\fI<byte2>\fR
240 Show the standard timing represented by these two bytes.
242 \fB\-\-dmt\fR \fI<dmt>\fR
243 Show the timings for the DMT with the given DMT ID.
245 \fB\-\-vic\fR \fI<vic>\fR
246 Show the timings for this VIC.
248 \fB\-\-hdmi\-vic\fR \fI<hdmivic>\fR
249 Show the timings for this HDMI VIC.
251 \fB\-\-cvt\fR \fBw\fR=\fI<width>\fR,\fBh\fR=\fI<height>\fR,\fBfps\fR=\fI<fps>\fR[,\fBrb\fR=\fI<rb>\fR][,\fBinterlaced\fR][,\fBoverscan\fR][,\fBalt\fR]
253 Calculate the CVT timings for the given format.
255 \fI<width>\fR is the width in pixels, \fI<height>\fR is the frame (not field!) height in lines.
257 \fI<fps>\fR is frames per second for progressive timings and fields per second for interlaced timings.
259 \fI<rb>\fR can be 0 (no reduced blanking, default), or 1-3 for the reduced blanking version.
261 If \fBinterlaced\fR is given, then this is an interlaced format.
263 If \fBoverscan\fR is given, then this is an overscanned format. I.e., margins are required.
265 If \fBalt\fR is given and \fI<rb>\fR=2, then report the timings
266 optimized for video: 1000 / 1001 * \fI<fps>\fR.
268 If \fBalt\fR is given and \fI<rb>\fR=3, then the horizontal blanking
269 is 160 instead of 80 pixels.
271 \fB\-\-gtf\fR \fBw\fR=\fI<width>\fR,\fBh\fR=\fI<height>\fR[,\fBfps\fR=\fI<fps>\fR][,\fBhorfreq\fR=\fI<horfreq>\fR][,\fBpixclk\fR=\fI<pixclk>\fR]
272 [,\fBinterlaced\fR][,\fBoverscan\fR][,\fBsecondary\fR][,\fBC\fR=\fI<c>\fR][,\fBM\fR=\fI<m>\fR][,\fBK\fR=\fI<k>\fR][,\fBJ\fR=\fI<j>\fR]
274 Calculate the GTF timings for the given format.
276 \fI<width>\fR is the width in pixels, \fI<height>\fR is the frame (not field!) height in lines.
278 \fI<fps>\fR is frames per second for progressive timings and fields per second for interlaced timings.
280 \fI<horfreq>\fR is the horizontal frequency in kHz.
282 \fI<pixclk>\fR is the pixel clock frequency in MHz.
283 Only one of \fBfps\fR, \fBhorfreq\fR or \fBpixclk\fR must be given.
285 If \fBinterlaced\fR is given, then this is an interlaced format.
287 If \fBoverscan\fR is given, then this is an overscanned format. I.e., margins are required.
289 If \fBsecondary\fR is given, then the secondary GTF is used for
290 reduced blanking, where \fI<c>\fR, \fI<m>\fR, \fI<k>\fR and \fI<j>\fR are parameters
291 for the secondary curve. If none of the secondary curve parameters
292 were set, and an EDID file is passed as command line option, then the
293 secondary curve parameters are read from that EDID.
295 The default secondary curve parameters are 40 for \fI<c>\fR, 600 for \fI<m>\fR,
296 128 for \fI<k>\fR and 20 for \fI<j>\fR.
297 These values correspond to the normal curve that GTF uses.
299 \fB\-\-list\-established\-timings\fR
300 List all known Established Timings.
308 \fB\-\-list\-hdmi\-vics\fR
309 List all known HDMI VICs.
313 Not all fields are decoded, or decoded completely.
315 does attempt to validate its input against the relevant standards, but its
316 opinions have not been double-checked with the relevant standards bodies,
317 so they may be wrong. Do not rely on the output format, as it will likely
318 change in future versions of the tool as additional fields and extensions are
321 Xorg(1), xrandr(1), cec-ctl(1), xorg.conf(5), fb.modes(5)
323 edid-decode was written by Adam Jackson, with contributions from Eric
324 Anholt, Damien Lespiau, Hans Verkuil and others. For complete history and the
326 .B http://git.linuxtv.org/cgit.cgi/edid-decode.git