本文将记录EDID的相关notes。

1. What is EDID ?

Extended Display Identification Data (EDID) is a metadata format for display devices to describe their capabilities to a video source (e.g Monitor/ TV panels). The data format is defined by a standard published by the Video Electronics Standards Association (VESA).

  • Specific to a dispaly
  • Stores a list of capabilities for the display
  • Includes vendor and product information, display parameters, times, preferences, gamma, colorimetry, audio capabilities, extension blocks

EDID is implemented for DVI, HDMI, and DisplayPort. Some very cheap monitors still (for cost saving) do not implement EDID standard (in which case VBT entries for such monitors are required).

2. How to dump EDID in Linux?

Linux i915 graphics driver has capability to do it.

2.1 To Locate

You need to find for which display connector you want to dump EDID.

1
2
3
$ find /sys/devices/pci0000:00/0000:00:02.0 | grep -i edid
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-2/edid
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1/edid

2.2 To Dump

1
$ cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1/edid > edid-dump

3. Decode in human readable

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
$edid-decode < edid-dump
Extracted contents:
header: 00 ff ff ff ff ff ff 00
serial number: 4a 8b 32 bc 01 01 01 01 30 1c
version: 01 03
basic params: 80 00 00 78 3e
chroma info: ee 91 a3 54 4c 99 26 0f 50 54
established: 21 08 00
standard: d1 c0 a9 c0 8b c0 81 c0 61 c0 59 c0 4b c0 3b c0
descriptor 1: 02 3a 80 18 71 38 2d 40 58 2c 25 00 58 c3 10 00 00 1e
descriptor 2: 00 00 00 fc 00 52 54 4b 20 46 48 44 20 48 44 52 0a 20
descriptor 3: 00 00 00 ff 00 64 65 6d 6f 73 65 74 2d 31 0a 20 30 20
descriptor 4: 00 00 00 fd 00 32 41 22 54 13 01 0a 20 20 20 20 20 20
extensions: 01
checksum: 26

Manufacturer: RTK Model bc32 Serial Number 16843009
Made week 48 of 2018
EDID version: 1.3
Digital display
Image size is variable
Gamma: 2.20
DPMS levels: Off
Supported color formats: RGB 4:4:4, YCrCb 4:4:4, YCrCb 4:2:2
Default (sRGB) color space is primary color space
First detailed timing is preferred timing
Established timings supported:
640x480@60Hz
800x600@60Hz
1024x768@60Hz
Standard timings supported:
1920x1080@60Hz
1600x900@60Hz
1360x765@60Hz
1280x720@60Hz
1024x576@60Hz
960x540@60Hz
848x477@60Hz
720x405@60Hz
Detailed mode: Clock 148.500 MHz, 344 mm x 195 mm
1920 2008 2052 2200 hborder 0
1080 1082 1087 1125 vborder 0
+hsync +vsync
Monitor name: RTK
Serial number: demoset-1
Monitor ranges (bare limits): 50-65Hz V, 34-84kHz H, max dotclock 190MHz
Has 1 extension blocks
Checksum: 0x26 (valid)

CEA extension block
Extension version: 3
39 bytes of CEA data
Video data block
VIC 3 720x480@60Hz
VIC 62 1280x720@30Hz
VIC 19 1280x720@50Hz
VIC 4 1280x720@60Hz
VIC 15 1440x480@60Hz
VIC 34 1920x1080@30Hz
VIC 31 1920x1080@50Hz
VIC 16 1920x1080@60Hz
Extended tag: video capability data block
YCbCr quantization: Selectable (via AVI YQ) (1)
RGB quantization: Selectable (via AVI Q) (1)
PT scan behaviour: Always Overscannned (1)
IT scan behaviour: Always Overscannned (1)
CE scan behaviour: Always Overscannned (1)
Extended tag: Colorimetry data block
xvYCC601
xvYCC709
sYCC601
AdobeYCC601
AdobeRGB
BT2020cYCC
BT2020YCC
BT2020RGB
Audio data block
Linear PCM, max channels 2
Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 32
Supported sample sizes (bits): 24 20 16
Speaker allocation data block
Speaker map: FL/FR
Vendor-specific data block, OUI 000c03 (HDMI)
Source physical address 1.0.0.0
DC_36bit
DC_30bit
DC_Y444
Maximum TMDS clock: 300MHz
Extended tag: HDR static metadata data block
Electro optical transfer functions:
Traditional gamma - SDR luminance range
Traditional gamma - HDR luminance range
SMPTE ST2084
Supported static metadata descriptors:
Static metadata type 1
Desired content max luminance: 105
Desired content max frame-average luminance: 105
Desired content min luminance: 79
Underscans PC formats by default
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
2 native detailed modes
Detailed mode: Clock 108.000 MHz, 344 mm x 195 mm
1600 1624 1704 1800 hborder 0
900 901 904 1000 vborder 0
+hsync +vsync
Detailed mode: Clock 85.500 MHz, 344 mm x 195 mm
1366 1436 1579 1792 hborder 0
768 771 774 798 vborder 0
+hsync +vsync
Detailed mode: Clock 74.250 MHz, 344 mm x 195 mm
1280 1390 1430 1650 hborder 0
720 725 730 750 vborder 0
+hsync +vsync
Checksum: 0x4 (valid)

EDID block does NOT conform to EDID 1.3!
Detailed block string not properly terminated
EDID block does not conform at all!
Detailed blocks filled with garbage
Range descriptor contains garbage

参考资料:

  1. VESA ENHANCED EXTENDED DISPLAY IDENTIFICATION DATA STANDARD
  2. Understanding EDID - Extended Display Identification Data
  3. What is EDID? (Extended Display Identification Data)