Debian Codegraph @

utils/edid-decode/edid-decode.1.in

raw
1 .\" shorthand for double quote that works everywhere.
2 .ds q \N'34'
3 .TH "EDID-DECODE" "1" "November 2024" "v4l-utils @MAN_PACKAGE_VERSION@" "User Commands"
4 .SH NAME
5 edid-decode - Decode EDID data in human-readable format
6 .SH SYNOPSIS
7 .B edid-decode <options> [in [out]]
8 .SH DESCRIPTION
9 .B edid-decode
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.
16
17 If [out] is given then edid-decode only does the conversion, it will
18 skip the decoding step.
19 .PP
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
22 .B edid-decode(1)
23 output (as long as the initial hex dump was included),
24 .B xrandr(1)
25 property output and
26 .B Xorg(1)
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.
31
32 All timings are shown in a short format, for example:
33
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
37
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.
42
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.
45
46 Detailed timings have another 2-3 lines of data:
47
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
58
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).
66
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'.
69
70 The following timing types can be shown:
71
72 .RS
73 .TP
74 DMT #: Discrete Monitor Timing (see DMT 1.3 standard). The number is the DMT ID in hexadecimal.
75 .TP
76 CVT: Coordinated Video Timings (formula-based, see CVT 1.2 standard)
77 .TP
78 GTF: Generalized Timing Formula (formula-based, see GTF 1.1 standard)
79 .TP
80 IBM: Old IBM Timings
81 .TP
82 Apple: Old Apple Timings
83 .TP
84 VIC #: Video Identification Code (see CTA-861 standard). The number is the actual
85 VIC code.
86 .TP
87 HDMI VIC #: HDMI-specific Video Identification Code (see HDMI 2.1 standard). The number
88 is the actual HDMI VIC code.
89 .TP
90 DTD #: Detailed Timings Descriptor (see EDID standard). Also used for
91 DisplayID Video Timing Modes Types I, II, VI, VII, VIII and X. The number denotes that
92 this is the Nth DTD in the Base Block and CTA Extension Blocks.
93 .TP
94 VTDB #: 20-byte DTD or 6- or 7-byte CVT descriptor in a CTA Extension Block.
95 The number denotes that this is the Nth such timing in the CTA Extension Blocks.
96 .TP
97 RID #@#: A CTA-861.6 Video Format Descriptor with the given Resolution ID (first
98 number) at the given framerate (second number).
99 .RE
100
101 By default DTDs are shown in the long format while others are just shown in
102 the short format. With the option \fB\-\-short\-timings\fR all timings are
103 shown in short format only. With the option \fB\-\-long\-timings\fR all timings
104 are shown in long format.
105
106 Alternate formats for long timings can be chosen via the \fB\-\-xmodeline\fR or
107 \fB\-\-fbmode\fR options.
108
109 .SH STANDARDS
110 .TP
111 The following EDID standards are supported by edid-decode:
112 .RS
113 .TP
114 EDID 1.3: VESA Enhanced Extended Display Identication Data Standard, Release A, Revision 1
115 .TP
116 EDID 1.4: VESA Enhanced Extended Display Identication Data Standard, Release A, Revision 2
117 .TP
118 DisplayID 1.3: VESA Display Identification Data (DisplayID) Standard, Version 1.3
119 .TP
120 DisplayID 2.1a: VESA DisplayID Standard, Version 2.1a
121 .TP
122 DI-EXT: VESA Display Information Extension Block Standard, Release A
123 .TP
124 LS-EXT: VESA Enhanced EDID Localized String Extension Standard, Release A
125 .TP
126 VTB-EXT: VESA Video Timing Block Extension Data Standard, Release A
127 .TP
128 DTCDB: VESA Display Transfer Characteristics Data Block Standard, Version 1.0
129 .TP
130 DDDB: VESA Display Device Data Block (DDDB) Standard, Version 1
131 .TP
132 HDMI 1.4b: High-Definition Multimedia Interface, Version 1.4b
133 .TP
134 HDMI 2.1b: High-Definition Multimedia Interface, Version 2.1b
135 .TP
136 HDCP 1.4: High-bandwidth Digital Content Protection System, Revision 1.4
137 .TP
138 HDCP 2.3: High-bandwidth Digital Content Protection System, Mapping HDCP to HDMI, Revision 2.3
139 .TP
140 CTA-861-I: A DTV Profile for Uncompressed High Speed Digital Interfaces
141 .TP
142 CTA-861.7: Improvements to CTA-861-I
143 .TP
144 SPWG Notebook Panel Specification, Version 3.5
145 .TP
146 EPI Embedded Panel Interface, Revision 1.0
147 .TP
148 Microsoft EDID extension for head-mounted and specialized monitors, Version 3
149 .RE
150
151 .TP
152 The following related standards are also used by edid-decode:
153 .RS
154 .TP
155 DMT 1.3: VESA and Industry Standards and Guidelines for Computer Display Monitor Timing (DMT), Version 1.0, Rev. 13
156 .TP
157 CVT 2.1: VESA Coordinated Video Timings (CVT) Standard, Version 2.1
158 .TP
159 CVT 1.2: VESA Coordinated Video Timings (CVT) Standard, Version 1.2
160 .TP
161 CVT 1.2: VESA CVT v1.2 Errata E2
162 .TP
163 GTF 1.1: VESA Generalized Timing Formula Standard, Version: 1.1
164 .TP
165 HDA 1.0a: High Definition Audio Specification, Version 1.0a
166 .RE
167
168 .SH OPTIONS
169 .TP
170 \fB\-h\fR, \fB\-\-help\fR
171 Prints the help message.
172 .TP
173 \fB\-o\fR, \fB\-\-output\-format\fR \fI<fmt>\fR
174 If [out] is specified, then write the EDID in format \fI<fmt>\fR.
175
176 The output format can be one of:
177 .br
178 hex: hex numbers in ascii text (default for stdout)
179 .br
180 raw: binary data (default unless writing to stdout)
181 .br
182 carray: c-program struct
183 .br
184 xml: XML data
185 .TP
186 \fB\-c\fR, \fB\-\-check\fR
187 Check if the EDID conforms to the standards. Warnings and failures are
188 reported at the end.
189 .TP
190 \fB\-C\fR, \fB\-\-check\-inline\fR
191 Check if the EDID conforms to the standards. Warnings and failures are
192 reported as they happen.
193 .TP
194 \fB\-n\fR, \fB\-\-native\-resolution\fR
195 Report the native resolution at the end. There may be multiple native resolution reports
196 depending on whether the Source only parses Block 0 (e.g. DVI outputs) or Block 0
197 and the CTA-861 Extension Blocks (HDMI), or just the DisplayID Extension Blocks
198 (typical for DisplayPort). If all blocks contain the same native resolution, then
199 only that resolution is reported. For older displays there may be two separate native
200 resolutions: progressive and interlaced.
201 .TP
202 \fB\-p\fR, \fB\-\-preferred\-timings\fR
203 Report the preferred timings at the end. There may be multiple preferred timing reports
204 depending on whether the Source only parses Block 0 (e.g. DVI outputs), or Block 0
205 and the CTA-861 Extension Blocks (HDMI), or Block 0 and the DisplayID Extension Blocks
206 (typical for DisplayPort).
207 .TP
208 \fB\-I\fR, \fB\-\-infoframe\fR \fI<file>\fR
209 Parse the given InfoFrame file. Read data from stdin if '-' was passed as a
210 filename. This option can be used multiple times to parse multiple InfoFrames.
211 If the EDID of the display to which these InfoFrames are transmitted is also
212 given, then the conformity checks will take that EDID into account.
213
214 If the first byte in the InfoFrame is 0x80 or higher, then it is assumed to be
215 an InfoFrame that starts with the HDMI header and has a checksum, as per the
216 HDMI Specification. Otherwise it is assumed to be a regular CTA-861 InfoFrame
217 without a checksum.
218
219 Note: this is still work-in-progress, specifically for the AVI and HDMI InfoFrames.
220 .TP
221 \fB\-E\fR, \fB\-\-eld\fR \fI<file>\fR
222 Parse the given EDID-Like Data (ELD) file. This option can be used multiple
223 times to parse multiple ELD files. Read data from stdin if '-' was passed as a
224 filename. If the EDID of the display to which these ELD files are generated is
225 also given, then the conformity checks will take that EDID into account.
226
227 On Linux systems ELD can be extracted via the amixer command (copy all hex after the 'values='):
228 $ amixer -c 0 controls | grep ELD
229 numid=6,iface=PCM,name='ELD',device=3
230 numid=12,iface=PCM,name='ELD',device=7
231 numid=18,iface=PCM,name='ELD',device=8
232 numid=24,iface=PCM,name='ELD',device=9
233 $ amixer -c 0 cget iface=PCM,name=ELD,device=3
234 numid=6,iface=PCM,name='ELD',device=3
235 ; type=BYTES,access=r--v----,values=95
236 : values=0x10,0x00,0x08,0x00,0x6d,0x10,0x00,0x01,0x00,0x02,0x00,0x00,0x00,0x00,
237 0x00,0x00,0x30,0xae,0xf1,0x61,0x4c,0x45,0x4e,0x20,0x54,0x33,0x32,0x68,0x2d,0x32,
238 0x30,0x0a,0x20,0x09,0x7f,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
239 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
240 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
241 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
242
243 .TP
244 \fB\-\-diagonal\fR \fI<inches>\fR
245 Specify the diagonal of the display in inches. This will enable additional checks
246 for the image size, checking if it corresponds to the diagonal. This assumes
247 square pixels.
248 .TP
249 \fB\-P\fR, \fB\-\-physical\-address\fR
250 Just report the HDMI Source Physical Address and nothing else. Reports f.f.f.f
251 if the EDID could not be parsed, or if there was no CTA-861 Vendor-Specific Data Block
252 with OUI 00-0C-03. Otherwise it reports the Source Physical Address as provided
253 in that Data Block. This can be used as input to HDMI CEC utilities such as the
254 linux cec-ctl(1) utility.
255 .TP
256 \fB\-S\fR, \fB\-\-short\-timings\fR
257 Report all video timings in a short format.
258 .TP
259 \fB\-L\fR, \fB\-\-long\-timings\fR
260 Report all video timings in a long format.
261 .TP
262 \fB\-N\fR, \fB\-\-ntsc\fR
263 Report the video timings with values suitable for NTSC-based video.
264 E.g., this will show refresh rates of 29.97 Hz instead of 30 Hz.
265 This is only done for timings with refresh rates that are a multiple of 6.
266 .TP
267 \fB\-X\fR, \fB\-\-xmodeline\fR
268 Report all long video timings in the ModeLine format as defined in xorg.conf(5).
269 This ModeLine can be used in the xorg.conf file or passed to xrandr(1) with the
270 xrandr \fB\-\-newmode\fR option.
271 .TP
272 \fB\-F\fR, \fB\-\-fbmode\fR
273 Report all long video timings in the video mode format as defined in fb.modes(5).
274 .TP
275 \fB\-V\fR, \fB\-\-v4l2\-timings\fR
276 Report all long video timings in the video mode format as defined in the linux header v4l2-dv-timings.h
277 for use with the V4L2 VIDIOC_S_DV_TIMINGS ioctl.
278 .TP
279 \fB\-s\fR, \fB\-\-skip\-hex\-dump\fR
280 Skip the initial hex dump of the EDID.
281 .TP
282 \fB\-H\fR, \fB\-\-only\-hex\-dump\fR
283 Only show the hex dump of the EDID, then exit.
284 .TP
285 \fB\-\-skip\-sha\fR
286 Don't show the SHA hash. Normally edid-decode will show the SHA, i.e. the
287 hash of the git commit used to compile edid-decode. This uniquely identifies
288 the version of edid-decode that is used to generate the warnings and
289 failures. But it will also change the output of edid-decode for every new commit
290 in the git repository, even if nothing else changed in the edid-decode output.
291 Use this option to avoid including the SHA in the edid-decode output.
292 .TP
293 \fB\-u\fR, \fB\-\-utf8\fR
294 Convert embedded EDID strings to UTF-8, using Code Page 437 for the base block
295 and ISO 8859-1 for the DisplayID block.
296 .TP
297 \fB\-\-hide\-serial\-numbers\fR
298 Hide any serial numbers in the human readable output by '...'.
299 Note that they are still easily extracted from the EDID hex dump at
300 the start.
301 .TP
302 \fB\-\-replace\-unique\-ids\fR
303 Replaces any unique IDs in the EDID by fixed values. Serial numbers will be
304 replaced by '123456', Container IDs by all zeroes and the 'Made in' date by
305 the year 2000. This will also update any checksums in the EDID and update
306 the EDID hex dump at the start of the output. Note that since this will
307 update checksums, any checksum errors present in the original EDID will
308 no longer be detected.
309
310 Serial numbers can appear in the Base Block, CTA-861 Extension Blocks,
311 DisplayID Extension Blocks and Localized String Extension Blocks.
312 Container IDs can appear in the DisplayID and CTA-861 Extension Blocks.
313
314 The 'Made in' date appears in the Base Block.
315 .TP
316 \fB\-\-version\fR
317 Show the SHA hash and the last commit date.
318
319 .SH I2C/DDC OPTIONS
320 The following options read the DDC bus directly, provided the DDC bus is
321 exposed by linux to \fB/dev/i2c-\fR\fIX\fR as an i2c adapter device.
322
323 This can be used to read the EDID and HDCP information directly from
324 the sink and parse it.
325 .TP
326 \fB\-a\fR, \fB\-\-i2c\-adapter\fR \fI<dev>\fR
327 Use the \fI<dev>\fR device to access the DDC lines.
328 If \fI<dev>\fR starts with a digit, then \fB/dev/i2c-\fR\fI<dev>\fR is used.
329 .TP
330 \fB\-\-i2c\-edid\fR
331 Read and parse the EDID from the i2c adapter.
332 .TP
333 \fB\-\-i2c\-hdcp\fR
334 Read and parse the HDCP data from the i2c adapter.
335 .TP
336 \fB\-\-i2c\-hdcp-ri\fR \fI<t>\fR
337 Every \fI<t>\fR seconds read and report the HDCP Ri value from the i2c adapter.
338 .TP
339 \fB\-\-i2c\-test\-reliability\fR [\fBduration\fR=\fI<secs>\fR][,\fBsleep\fR=\fI<msecs>\fR]
340 Read the EDID continuously for \fI<secs>\fR seconds (default is 0, meaning forever),
341 with a sleep of \fI<msecs>\fR milliseconds (default value is 50 ms) in between
342 each read. Report a FAIL if there are mismatches between EDIDs. This tests the
343 i2c communication towards the display.
344
345 .SH TIMING OPTIONS
346 The following options report the timings for DMT, VIC and HDMI VIC codes and
347 calculate the timings for CVT or GTF timings, based on the given parameters.
348 The EDID will not be shown, although it can be used with the \fB\-\-gtf\fR
349 option in order to read the secondary curve parameters.
350 .TP
351 \fB\-\-std\fR \fI<byte1>\fR,\fI<byte2>\fR
352 Show the standard timing represented by these two bytes.
353 .TP
354 \fB\-\-dmt\fR \fI<dmt>\fR
355 Show the timings for the DMT with the given DMT ID.
356 .TP
357 \fB\-\-vic\fR \fI<vic>\fR
358 Show the timings for this VIC.
359 .TP
360 \fB\-\-hdmi\-vic\fR \fI<hdmivic>\fR
361 Show the timings for this HDMI VIC.
362 .TP
363 \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]
364 [,\fBalt\fR][,\fBhblank\fR=\fI<hblank>\fR][,\fBvblank\fR=\fI<vblank>\fR][,\fBearly\-vsync\fR]
365 .br
366 Calculate the CVT timings for the given format.
367
368 \fI<width>\fR is the width in pixels, \fI<height>\fR is the frame (not field!) height in lines.
369 .br
370 \fI<fps>\fR is frames per second for progressive timings and fields per second for interlaced timings.
371 .br
372 \fI<rb>\fR can be 0 (no reduced blanking, default), or 1-3 for the reduced blanking version.
373 .br
374 If \fBinterlaced\fR is given, then this is an interlaced format.
375 .br
376 If \fBoverscan\fR is given, then this is an overscanned format. I.e., margins are required.
377 .br
378 If \fBalt\fR is given and \fI<rb>\fR=2, then report the timings
379 optimized for video: 1000 / 1001 * \fI<fps>\fR.
380 .br
381 If \fBalt\fR is given and \fI<rb>\fR=3, then the horizontal blanking
382 is 160 instead of 80 pixels.
383 .br
384 If \fBhblank\fR is given and \fI<rb>\fR=3, then the horizontal blanking
385 is \fI<hblank>\fR pixels (range of 80-200 and divisible by 8), overriding \fBalt\fR.
386 .br
387 If \fBvblank\fR is given and \fI<rb>\fR=3, then the vertical blanking time
388 is \fI<vblank>\fR microseconds (460 minimum, values > 705 might not be supported by
389 all RBv3 timings compliant source devices.
390 .br
391 If \fBearly\-vsync\fR is given and \fI<rb>\fR=3, then select an early vsync timing.
392 .TP
393 \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]
394 [,\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]
395 .br
396 Calculate the GTF timings for the given format.
397
398 \fI<width>\fR is the width in pixels, \fI<height>\fR is the frame (not field!) height in lines.
399 .br
400 \fI<fps>\fR is frames per second for progressive timings and fields per second for interlaced timings.
401 .br
402 \fI<horfreq>\fR is the horizontal frequency in kHz.
403 .br
404 \fI<pixclk>\fR is the pixel clock frequency in MHz.
405 Only one of \fBfps\fR, \fBhorfreq\fR or \fBpixclk\fR must be given.
406 .br
407 If \fBinterlaced\fR is given, then this is an interlaced format.
408 .br
409 If \fBoverscan\fR is given, then this is an overscanned format. I.e., margins are required.
410 .br
411 If \fBsecondary\fR is given, then the secondary GTF is used for
412 reduced blanking, where \fI<c>\fR, \fI<m>\fR, \fI<k>\fR and \fI<j>\fR are parameters
413 for the secondary curve. If none of the secondary curve parameters
414 were set, and an EDID file is passed as command line option, then the
415 secondary curve parameters are read from that EDID.
416 .br
417 The default secondary curve parameters are 40 for \fI<c>\fR, 600 for \fI<m>\fR,
418 128 for \fI<k>\fR and 20 for \fI<j>\fR.
419 These values correspond to the normal curve that GTF uses.
420 .TP
421 \fB\-\-ovt\fR (\fBrid\fR=\fI<rid>\fR|\fBw\fR=\fI<width>\fR,\fBh\fR=\fI<height>\fR),\fBfps\fR=\fI<fps>\fR
422 Calculate the OVT timings for the given format.
423 Either specify a \fI<rid>\fR or specify \fI<width>\fR and \fI<height>\fR.
424 \fI<fps>\fR is frames per second.
425 .TP
426 \fB\-\-list\-established\-timings\fR
427 List all known Established Timings.
428 .TP
429 \fB\-\-list\-dmts\fR
430 List all known DMTs.
431 .TP
432 \fB\-\-list\-vics\fR
433 List all known VICs.
434 .TP
435 \fB\-\-list\-hdmi\-vics\fR
436 List all known HDMI VICs.
437 .TP
438 \fB\-\-list\-rids\fR
439 List all known CTA-861 RIDs.
440 .TP
441 \fB\-\-list\-rid\-timings\fR \fI<rid>\fR
442 List all timings for the specified \fI<rid>\fR or all known RIDs if \fI<rid>\fR is 0.
443
444 .PP
445 .SH NOTES
446 Not all fields are decoded, or decoded completely.
447 .B edid-decode
448 does attempt to validate its input against the relevant standards, but its
449 opinions have not been double-checked with the relevant standards bodies,
450 so they may be wrong. Do not rely on the output format, as it will likely
451 change in future versions of the tool as additional fields and extensions are
452 added.
453 .SH "SEE ALSO"
454 Xorg(1), xrandr(1), cec-ctl(1), xorg.conf(5), fb.modes(5)
455 .SH AUTHORS
456 edid-decode was written by Adam Jackson, with contributions from Eric
457 Anholt, Damien Lespiau, Hans Verkuil and others.
458
459 Bug reports or questions about this utility should be sent to the [email protected]
460 mailinglist.