edid-decode: print hdmi 3d audio max channels same as SAT
[edid-decode.git] / edid-decode.1
blob2b073c267f47df5a1ff83b0ee63c0d785d3eaab2
1 .\" shorthand for double quote that works everywhere.
2 .ds q \N'34'
3 .TH edid-decode 1
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.
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.
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:
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
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.
106 Alternate formats for long timings can be chosen via the \fB\-\-xmodeline\fR or
107 \fB\-\-fbmode\fR options.
109 .SH STANDARDS
111 The following EDID standards are supported by edid-decode:
114 EDID 1.3: VESA Enhanced Extended Display Identication Data Standard, Release A, Revision 1
116 EDID 1.4: VESA Enhanced Extended Display Identication Data Standard, Release A, Revision 2
118 DisplayID 1.3: VESA Display Identification Data (DisplayID) Standard, Version 1.3
120 DisplayID 2.1: VESA DisplayID Standard, Version 2.1
122 DI-EXT: VESA Display Information Extension Block Standard, Release A
124 LS-EXT: VESA Enhanced EDID Localized String Extension Standard, Release A
126 VTB-EXT: VESA Video Timing Block Extension Data Standard, Release A
128 DTCDB: VESA Display Transfer Characteristics Data Block Standard, Version 1.0
130 DDDB: VESA Display Device Data Block (DDDB) Standard, Version 1
132 HDMI 1.4b: High-Definition Multimedia Interface, Version 1.4b
134 HDMI 2.1b: High-Definition Multimedia Interface, Version 2.1b
136 CTA-861-I: A DTV Profile for Uncompressed High Speed Digital Interfaces
138 SPWG Notebook Panel Specification, Version 3.5
140 EPI Embedded Panel Interface, Revision 1.0
142 Microsoft EDID extension for head-mounted and specialized monitors, Version 3
146 The following related standards are also used by edid-decode:
149 DMT 1.3: VESA and Industry Standards and Guidelines for Computer Display Monitor Timing (DMT), Version 1.0, Rev. 13
151 CVT 2.0: VESA Coordinated Video Timings (CVT) Standard, Version 2.0
153 CVT 1.2: VESA Coordinated Video Timings (CVT) Standard, Version 1.2
155 CVT 1.2: VESA CVT v1.2 Errata E2
157 GTF 1.1: VESA Generalized Timing Formula Standard, Version: 1.1
160 .SH OPTIONS
162 \fB\-h\fR, \fB\-\-help\fR
163 Prints the help message.
165 \fB\-o\fR, \fB\-\-output\-format\fR \fI<fmt>\fR
166 If [out] is specified, then write the EDID in format \fI<fmt>\fR.
168 The output format can be one of:
170 hex: hex numbers in ascii text (default for stdout)
172 raw: binary data (default unless writing to stdout)
174 carray: c-program struct
176 xml: XML data
178 \fB\-c\fR, \fB\-\-check\fR
179 Check if the EDID conforms to the standards. Warnings and failures are
180 reported at the end.
182 \fB\-C\fR, \fB\-\-check\-inline\fR
183 Check if the EDID conforms to the standards. Warnings and failures are
184 reported as they happen.
186 \fB\-n\fR, \fB\-\-native\-resolution\fR
187 Report the native resolution at the end. There may be multiple native resolution reports
188 depending on whether the Source only parses Block 0 (e.g. DVI outputs) or Block 0
189 and the CTA-861 Extension Blocks (HDMI), or just the DisplayID Extension Blocks
190 (typical for DisplayPort). If all blocks contain the same native resolution, then
191 only that resolution is reported. For older displays there may be two separate native
192 resolutions: progressive and interlaced.
194 \fB\-p\fR, \fB\-\-preferred\-timings\fR
195 Report the preferred timings at the end. There may be multiple preferred timing 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 Block 0 and the DisplayID Extension Blocks
198 (typical for DisplayPort).
200 \fB\-\-diagonal\fR \fI<inches>\fR
201 Specify the diagonal of the display in inches. This will enable additional checks
202 for the image size, checking if it corresponds to the diagonal. This assumes
203 square pixels.
205 \fB\-P\fR, \fB\-\-physical\-address\fR
206 Just report the HDMI Source Physical Address and nothing else. Reports f.f.f.f
207 if the EDID could not be parsed, or if there was no CTA-861 Vendor-Specific Data Block
208 with OUI 00-0C-03. Otherwise it reports the Source Physical Address as provided
209 in that Data Block. This can be used as input to HDMI CEC utilities such as the
210 linux cec-ctl(1) utility.
212 \fB\-S\fR, \fB\-\-short\-timings\fR
213 Report all video timings in a short format.
215 \fB\-L\fR, \fB\-\-long\-timings\fR
216 Report all video timings in a long format.
218 \fB\-N\fR, \fB\-\-ntsc\fR
219 Report the video timings with values suitable for NTSC-based video.
220 E.g., this will show refresh rates of 29.97 Hz instead of 30 Hz.
221 This is only done for timings with refresh rates that are a multiple of 6.
223 \fB\-X\fR, \fB\-\-xmodeline\fR
224 Report all long video timings in the ModeLine format as defined in xorg.conf(5).
225 This ModeLine can be used in the xorg.conf file or passed to xrandr(1) with the
226 xrandr \fB\-\-newmode\fR option.
228 \fB\-F\fR, \fB\-\-fbmode\fR
229 Report all long video timings in the video mode format as defined in fb.modes(5).
231 \fB\-V\fR, \fB\-\-v4l2\-timings\fR
232 Report all long video timings in the video mode format as defined in the linux header v4l2-dv-timings.h
233 for use with the V4L2 VIDIOC_S_DV_TIMINGS ioctl.
235 \fB\-s\fR, \fB\-\-skip\-hex\-dump\fR
236 Skip the initial hex dump of the EDID.
238 \fB\-H\fR, \fB\-\-only\-hex\-dump\fR
239 Only show the hex dump of the EDID, then exit.
241 \fB\-\-skip\-sha\fR
242 Don't show the SHA hash. Normally edid-decode will show the SHA, i.e. the
243 hash of the git commit used to compile edid-decode. This uniquely identifies
244 the version of edid-decode that is used to generate the warnings and
245 failures. But it will also change the output of edid-decode for every new commit
246 in the git repository, even if nothing else changed in the edid-decode output.
247 Use this option to avoid including the SHA in the edid-decode output.
249 \fB\-\-hide\-serial\-numbers\fR
250 Hide any serial numbers in the human readable output by '...'.
251 Note that they are still easily extracted from the EDID hex dump at
252 the start.
254 \fB\-\-replace\-unique\-ids\fR
255 Replaces any unique IDs in the EDID by fixed values. Serial numbers will be
256 replaced by '123456', Container IDs by all zeroes and the 'Made in' date by
257 the year 2000. This will also update any checksums in the EDID and update
258 the EDID hex dump at the start of the output. Note that since this will
259 update checksums, any checksum errors present in the original EDID will
260 no longer be detected.
262 Serial numbers can appear in the Base Block, CTA-861 Extension Blocks,
263 DisplayID Extension Blocks and Localized String Extension Blocks.
264 Container IDs can appear in the DisplayID and CTA-861 Extension Blocks.
266 The 'Made in' date appears in the Base Block.
268 \fB\-\-version\fR
269 Show the SHA hash and the last commit date.
271 .SH TIMING OPTIONS
272 The following options report the timings for DMT, VIC and HDMI VIC codes and
273 calculate the timings for CVT or GTF timings, based on the given parameters.
274 The EDID will not be shown, although it can be used with the \fB\-\-gtf\fR
275 option in order to read the secondary curve parameters.
277 \fB\-\-std\fR \fI<byte1>\fR,\fI<byte2>\fR
278 Show the standard timing represented by these two bytes.
280 \fB\-\-dmt\fR \fI<dmt>\fR
281 Show the timings for the DMT with the given DMT ID.
283 \fB\-\-vic\fR \fI<vic>\fR
284 Show the timings for this VIC.
286 \fB\-\-hdmi\-vic\fR \fI<hdmivic>\fR
287 Show the timings for this HDMI VIC.
289 \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]
290 [,\fBalt\fR][,\fBhblank\fR=\fI<hblank>\fR][,\fBvblank\fR=\fI<vblank>\fR][,\fBearly\-vsync\fR]
292 Calculate the CVT timings for the given format.
294 \fI<width>\fR is the width in pixels, \fI<height>\fR is the frame (not field!) height in lines.
296 \fI<fps>\fR is frames per second for progressive timings and fields per second for interlaced timings.
298 \fI<rb>\fR can be 0 (no reduced blanking, default), or 1-3 for the reduced blanking version.
300 If \fBinterlaced\fR is given, then this is an interlaced format.
302 If \fBoverscan\fR is given, then this is an overscanned format. I.e., margins are required.
304 If \fBalt\fR is given and \fI<rb>\fR=2, then report the timings
305 optimized for video: 1000 / 1001 * \fI<fps>\fR.
307 If \fBalt\fR is given and \fI<rb>\fR=3, then the horizontal blanking
308 is 160 instead of 80 pixels.
310 If \fBhblank\fR is given and \fI<rb>\fR=3, then the horizontal blanking
311 is \fI<hblank>\fR pixels (range of 80-200 and divisible by 8), overriding \fBalt\fR.
313 If \fBvblank\fR is given and \fI<rb>\fR=3, then the vertical blanking time
314 is \fI<vblank>\fR microseconds (460 minimum, values > 705 might not be supported by
315 all RBv3 timings compliant source devices.
317 If \fBearly\-vsync\fR is given and \fI<rb>\fR=3, then select an early vsync timing.
319 \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]
320 [,\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]
322 Calculate the GTF timings for the given format.
324 \fI<width>\fR is the width in pixels, \fI<height>\fR is the frame (not field!) height in lines.
326 \fI<fps>\fR is frames per second for progressive timings and fields per second for interlaced timings.
328 \fI<horfreq>\fR is the horizontal frequency in kHz.
330 \fI<pixclk>\fR is the pixel clock frequency in MHz.
331 Only one of \fBfps\fR, \fBhorfreq\fR or \fBpixclk\fR must be given.
333 If \fBinterlaced\fR is given, then this is an interlaced format.
335 If \fBoverscan\fR is given, then this is an overscanned format. I.e., margins are required.
337 If \fBsecondary\fR is given, then the secondary GTF is used for
338 reduced blanking, where \fI<c>\fR, \fI<m>\fR, \fI<k>\fR and \fI<j>\fR are parameters
339 for the secondary curve.  If none of the secondary curve parameters
340 were set, and an EDID file is passed as command line option, then the
341 secondary curve parameters are read from that EDID.
343 The default secondary curve parameters are 40 for \fI<c>\fR, 600 for \fI<m>\fR,
344 128 for \fI<k>\fR and 20 for \fI<j>\fR.
345 These values correspond to the normal curve that GTF uses.
347 \fB\-\-ovt\fR (\fBrid\fR=\fI<rid>\fR|\fBw\fR=\fI<width>\fR,\fBh\fR=\fI<height>\fR),\fBfps\fR=\fI<fps>\fR
348 Calculate the OVT timings for the given format.
349 Either specify a \fI<rid>\fR or specify \fI<width>\fR and \fI<height>\fR.
350 \fI<fps>\fR is frames per second.
352 \fB\-\-list\-established\-timings\fR
353 List all known Established Timings.
355 \fB\-\-list\-dmts\fR
356 List all known DMTs.
358 \fB\-\-list\-vics\fR
359 List all known VICs.
361 \fB\-\-list\-hdmi\-vics\fR
362 List all known HDMI VICs.
364 \fB\-\-list\-rids\fR
365 List all known CTA-861 RIDs.
367 \fB\-\-list\-rid\-timings\fR \fI<rid>\fR
368 List all timings for the specified \fI<rid>\fR or all known RIDs if \fI<rid>\fR is 0.
371 .SH NOTES
372 Not all fields are decoded, or decoded completely.
373 .B edid-decode
374 does attempt to validate its input against the relevant standards, but its
375 opinions have not been double-checked with the relevant standards bodies,
376 so they may be wrong.  Do not rely on the output format, as it will likely
377 change in future versions of the tool as additional fields and extensions are
378 added.
379 .SH "SEE ALSO"
380 Xorg(1), xrandr(1), cec-ctl(1), xorg.conf(5), fb.modes(5)
381 .SH AUTHORS
382 edid-decode was written by Adam Jackson, with contributions from Eric
383 Anholt, Damien Lespiau, Hans Verkuil and others.  For complete history and the
384 latest version, see
385 .B http://git.linuxtv.org/cgit.cgi/edid-decode.git