Bug 1391504 - edid-decode fails to decode EDID data provided in ASCII text
Summary: edid-decode fails to decode EDID data provided in ASCII text
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: xorg-x11-utils
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Adam Jackson
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On: 1391502
Blocks: 1298243 1394840
TreeView+ depends on / blocked
 
Reported: 2016-11-03 12:54 UTC by Deepu K S
Modified: 2020-09-10 09:55 UTC (History)
8 users (show)

Fixed In Version: xorg-x11-utils-7.5-22.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1391502
Environment:
Last Closed: 2017-08-01 20:54:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
edid data in ASCII text (264 bytes, text/plain)
2016-11-03 13:00 UTC, Deepu K S
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2030 0 normal SHIPPED_LIVE Xorg utilities bug fix update 2017-08-01 18:34:12 UTC

Description Deepu K S 2016-11-03 12:54:43 UTC
+++ This bug was initially created as a clone of Bug #1391502 +++

Description of problem:
edid-decode fails to decode EDID data provided in ASCII text

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 7.2
xorg-x11-utils-7.5-13.1.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. # edid-decode <input file>
2.
3.

Actual results:
$ edid-decode yyy
Extracted contents:
header:          00 ff ff ff ff ff ff 00
serial number:   22 f0 57 30 01 01 01 01 05 19
version:         01 03
basic params:    80 30 1b 78 2e
chroma info:     ad 45 a3 57 52 a1 27 0d 50 54
established:     a1 08 00
standard:        d1 c0 81 c0 a9 c0 b3 00 95 00 81 80 01 01 01 01
descriptor 1:    02 3a 80 18 71 38 2d 40 58 2c 45 00 dc 0c 11 00 00 1e
descriptor 2:    00 00 00 fd 00 32 4c 18 5e 11 00 0a 20 20 20 20 20 20
descriptor 3:    00 00 00 fc 00 48 50 20 50 32 32 31 0a 20 20 20 20 20
descriptor 4:    00 00 00 ff 00 33 43 51 35 30 35 30 31 4b 5a 0a 20 20
extensions:      00
checksum:        65
 
Manufacturer: HWP Model 3057 Serial Number 16843009
Made week 5 of 2015
EDID version: 1.3
Digital display
Maximum image size: 48 cm x 27 cm
Gamma: 2.20
DPMS levels: Off
Supported color formats: RGB 4:4:4, YCrCb 4:2:2
Default (sRGB) color space is primary color space
First detailed timing is preferred timing
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  800x600@60Hz
  1024x768@60Hz
Standard timings supported:
  1920x1080@60Hz
  1280x720@60Hz
  1600x900@60Hz
  1680x1050@60Hz
  1440x900@60Hz
  1280x1024@60Hz
Detailed mode: Clock 148.500 MHz, 476 mm x 268 mm
               1920 2008 2052 2200 hborder 0
               1080 1084 1089 1125 vborder 0
               +hsync +vsync
Monitor ranges (GTF): 50-76Hz V, 24-94kHz H, max dotclock 170MHz
Monitor name: HP
Serial number: 3CQ50501KZ
Checksum: 0x65 (valid)
EDID block does NOT conform to EDID 1.3!
        Detailed block string not properly terminated
$ echo $?
1
$

Expected results:
Don't expect it to fail.
EDID block does NOT conform to EDID 1.3!
        Detailed block string not properly terminated
$ echo $?
1
$

Additional info:

Comment 1 Deepu K S 2016-11-03 13:00:09 UTC
Created attachment 1216966 [details]
edid data in ASCII text

Comment 4 Bohdan Milar 2017-06-07 13:07:46 UTC
Tested on all archs using xorg-x11-utils-7.5-22.el7

Result:
Output ends with "Checksum: 0x65 (valid)".
No fail message shown (i.e. no "EDID block does NOT conform to EDID 1.3!
"...)
$ echo $?
0

Comment 5 Loye Young 2017-07-13 18:07:41 UTC
I can confirm, on Fedora 26.

As a result, Xorg does not set up resolution correctly on HDMI-connected Dell P2415Q, and after reboot does not remember modeline added via xrandr: 

$ edid-decode /sys/class/drm/card1-HDMI-A-1/edid 
Extracted contents:
header:          00 ff ff ff ff ff ff 00
serial number:   10 ac c0 a0 42 4b 45 30 05 1b
version:         01 03
basic params:    80 35 1e 78 ea
chroma info:     e2 45 a8 55 4d a3 26 0b 50 54
established:     a5 4b 00
standard:        71 4f 81 80 a9 c0 a9 40 d1 c0 e1 00 01 01 01 01
descriptor 1:    a3 66 00 a0 f0 70 1f 80 30 20 35 00 0f 28 21 00 00 1a
descriptor 2:    00 00 00 ff 00 47 33 44 37 46 37 32 33 30 45 4b 42 0a
descriptor 3:    00 00 00 fc 00 44 45 4c 4c 20 50 32 34 31 35 51 0a 20
descriptor 4:    00 00 00 fd 00 1d 4c 1e 8c 1e 00 0a 20 20 20 20 20 20
extensions:      01
checksum:        df

Manufacturer: DEL Model a0c0 Serial Number 809847618
Made week 5 of 2017
EDID version: 1.3
Digital display
Maximum image size: 53 cm x 30 cm
Gamma: 2.20
DPMS levels: Standby Suspend Off
Supported color formats: RGB 4:4:4, YCrCb 4:2:2
First detailed timing is preferred timing
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@75Hz
  800x600@60Hz
  800x600@75Hz
  1024x768@60Hz
  1024x768@75Hz
  1280x1024@75Hz
Standard timings supported:
  1152x864@75Hz
  1280x1024@60Hz
  1600x900@60Hz
  1600x1200@60Hz
  1920x1080@60Hz
  2048x1280@60Hz
Detailed mode: Clock 262.750 MHz, 527 mm x 296 mm
               3840 3888 3920 4000 hborder 0
               2160 2163 2168 2191 vborder 0
               +hsync -vsync 
Serial number: G3D7F7230EKB
Monitor name: DELL
Monitor ranges (GTF): 29-76Hz V, 30-140kHz H, max dotclock 300MHz
Has 1 extension blocks
Checksum: 0xdf (valid)

CEA extension block
Extension version: 3
42 bytes of CEA data
  Video data block
    VIC 16 1920x1080@60Hz (native)
    VIC 05 1920x1080i@60Hz 
    VIC 04 1280x720@60Hz 
    VIC 02 720x480@60Hz 
    VIC 07 1440x480i@60Hz 
    VIC 22 1440x576i@50Hz 
    VIC 01 640x480@60Hz 
    VIC 20 1920x1080i@50Hz 
    VIC 31 1920x1080@50Hz 
    VIC 18 720x576@50Hz 
    VIC 19 1280x720@50Hz 
    VIC 39 1920x1080i@50Hz 
    VIC 32 1920x1080@24Hz 
    VIC 33 1920x1080@25Hz 
    VIC 34 1920x1080@30Hz 
    VIC 03 720x480@60Hz 
    VIC 06 1440x480i@60Hz 
    VIC 17 720x576@50Hz 
    VIC 21 1440x576i@50Hz 
  Audio data block
    Linear PCM, max channels 1
    Supported sample rates (kHz): 96 88.2 48 44.1 32
    Supported sample sizes (bits): 24 20 16
  Speaker allocation data block
  Vendor-specific data block, OUI 000c03 (HDMI)
    Source physical address 1.0.0.0
    Maximum TMDS clock: 300MHz
    Extended HDMI video details:
      HDMI VIC 2 3840x2160@24Hz
      HDMI VIC 1 3840x2160@25Hz
      HDMI VIC 0 3840x2160@30Hz
Underscans PC formats by default
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
1 native detailed modes
Detailed mode: Clock 148.500 MHz, 527 mm x 296 mm
               1920 2008 2052 2200 hborder 0
               1080 1082 1087 1125 vborder 0
               +hsync +vsync 
Detailed mode: Clock 74.250 MHz, 527 mm x 296 mm
               1920 2008 2052 2200 hborder 0
                540  542  547  562 vborder 0
               +hsync +vsync interlaced 
Detailed mode: Clock 297.000 MHz, 527 mm x 296 mm
               3840 4016 4104 4400 hborder 0
               2160 2168 2178 2250 vborder 0
               +hsync +vsync 
Detailed mode: Clock 241.500 MHz, 527 mm x 296 mm
               2560 2608 2640 2720 hborder 0
               1440 1443 1448 1481 vborder 0
               +hsync -vsync 
Checksum: 0x8a (valid)

EDID block does NOT conform to EDID 1.3!
	Detailed block string not properly terminated

$ xrandr
Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1366x768      60.02*+  48.04  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*   60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94    50.00  
   1600x1200     60.00  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
VGA-1-2 disconnected (normal left inverted right x axis y axis)

$ xrandr --newmode "3840x2160" 262.75 3840 3888 3920 4000 2160 2163 2168 2191 -hsync +vsync
$ xrandr --addmode HDMI-1 "3840x2160"
$ xrandr --newmode "2560x1440" 241.5 2560 2608 2640 2720 1440 1443 1448 1481 -hsync +vsync
$ xrandr --addmode HDMI-1 "2560x1440"
$ xrandr
Screen 0: minimum 320 x 200, current 5206 x 2460, maximum 8192 x 8192
eDP-1 connected primary 1366x768+0+1692 (normal left inverted right x axis y axis) 344mm x 193mm
   1366x768      60.02*+  48.04  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected 3840x2160+1366+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00    60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94    50.00  
   1600x1200     60.00  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
   3840x2160     29.98* 
   2560x1440     59.95  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
VGA-1-2 disconnected (normal left inverted right x axis y axis)
$ reboot

<snip>

$ xrandr
Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1366x768      60.02*+  48.04  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*   60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94    50.00  
   1600x1200     60.00  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
VGA-1-2 disconnected (normal left inverted right x axis y axis)
q

Comment 6 errata-xmlrpc 2017-08-01 20:54:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2030


Note You need to log in before you can comment on or make changes to this bug.