Skip to content

Instantly share code, notes, and snippets.

@mzyy94
Last active May 12, 2020
Embed
What would you like to do?
pi@raspberrypi:/tmp $ edidparser edid.bin
Enabling fuzzy format match...
Parsing edid.bin...
HDMI:EDID version 1.3, 1 extensions, screen size 128x72 cm
HDMI:EDID features - videodef 0x80 !standby !suspend !active off; colour encoding:RGB444|YCbCr422; sRGB is not default colourspace; preferred format is native; does not support GTF
HDMI:EDID found monitor name descriptor tag 0xfc
HDMI:EDID monitor name is TV-monitor
HDMI:EDID found monitor range descriptor tag 0xfd
HDMI:EDID monitor range offsets: V min=0, V max=0, H min=0, H max=0
HDMI:EDID monitor range: vertical is 23-61 Hz, horizontal is 15-136 kHz, max pixel clock is 600 MHz
HDMI:EDID monitor range does not support GTF
HDMI:EDID found preferred CEA detail timing format: 3840x2160p @ 60 Hz (97)
HDMI:EDID found CEA detail timing format: 1920x1080p @ 60 Hz (16)
HDMI:EDID established timing I/II bytes are 20 08 00
HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II
HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/II
HDMI:EDID standard timings block x 8: 0x3140 6140 0101 0101 0101 0101 0101 0101
HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz (4:3) in standard timing 0
HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz (4:3) in standard timing 1
HDMI:EDID parsing v3 CEA extension 0
HDMI:EDID monitor support - underscan IT formats:yes, basic audio:yes, yuv444:yes, yuv422:yes, #native DTD:0
HDMI:EDID found DMT detail timing format: 1366x768p @ 60 Hz (81)
HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz
HDMI:EDID found CEA format: code 31, 1920x1080p @ 50Hz
HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz
HDMI:EDID found CEA format: code 20, 1920x1080i @ 50Hz
HDMI:EDID found CEA format: code 32, 1920x1080p @ 24Hz
HDMI:EDID found CEA format: code 33, 1920x1080p @ 25Hz
HDMI:EDID found CEA format: code 34, 1920x1080p @ 30Hz
HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz
HDMI:EDID found CEA format: code 19, 1280x720p @ 50Hz
HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz
HDMI:EDID found CEA format: code 18, 720x576p @ 50Hz
HDMI:EDID found CEA format: code 7, 1440x480i @ 60Hz
HDMI:EDID found CEA format: code 22, 1440x576i @ 50Hz
HDMI:EDID found CEA format: code 93, 3840x2160p @ 24Hz
HDMI:EDID found CEA format: code 94, 3840x2160p @ 25Hz
HDMI:EDID found CEA format: code 95, 3840x2160p @ 30Hz
HDMI:EDID found CEA format: code 98, 4096x2160p @ 24Hz
HDMI:EDID found CEA format: code 99, 4096x2160p @ 25Hz
HDMI:EDID found CEA format: code 100, 4096x2160p @ 30Hz
HDMI:EDID found CEA format: code 97, 3840x2160p @ 60Hz
HDMI:EDID found CEA format: code 96, 3840x2160p @ 50Hz
HDMI:EDID found CEA format: code 102, 4096x2160p @ 60Hz
HDMI:EDID found CEA format: code 101, 4096x2160p @ 50Hz
HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48 kHz, sample size: 16 bits
HDMI:EDID found HDMI VSDB length 14
HDMI:EDID HDMI VSDB has physical address 1.0.0.0
HDMI:EDID HDMI VSDB supports AI:no, dual link DVI:no
HDMI:EDID HDMI VSDB deep colour support - 48-bit:no 36-bit:yes 30-bit:yes DC_yuv444:yes
HDMI:EDID HDMI VSDB max TMDS clock 300 MHz
HDMI:EDID HDMI VSDB content type support: game|cinema|photo|text
HDMI:EDID HDMI VSDB supports extended resolutions 1,2,3,4
HDMI:EDID ignoring non HDMI VSDB with IEEE reg 0xc45dd8
HDMI:EDID found Video Capability DB length 2
HDMI:EDID video capability: CE:1 IT:2 PT:0 QS:3
HDMI:EDID extended data block tag 0x05 length 3 not supported
HDMI:EDID extended data block YCbCr420CapMap - length 4
HDMI:EDID extended data block tag 0x06 length 3 not supported
HDMI:EDID adding mandatory support for CEA (1) 640x480p @ 60Hz
HDMI:EDID adding mandatory support for CEA (2) 720x480p @ 60Hz
HDMI:EDID adding mandatory support for CEA (17) 720x576p @ 50Hz
HDMI:EDID filtering formats with pixel clock unlimited MHz or h. blanking unlimited
HDMI:EDID best score mode initialised to CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 0)
HDMI:EDID best score mode is now CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 61864)
HDMI:EDID best score mode is now CEA (2) 720x480p @ 60 Hz with pixel clock 27 MHz (score 66472)
HDMI:EDID CEA mode (3) 720x480p @ 60 Hz with pixel clock 27 MHz has a score of 66472
HDMI:EDID best score mode is now CEA (4) 1280x720p @ 60 Hz with pixel clock 74 MHz (score 135592)
HDMI:EDID DMT mode (4) 640x480p @ 60 Hz with pixel clock 25 MHz has a score of 43432
HDMI:EDID best score mode is now CEA (5) 1920x1080i @ 60 Hz with pixel clock 74 MHz (score 149416)
HDMI:EDID CEA mode (7) 1440x480i @ 60 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID best score mode is now CEA (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz (score 4773832)
HDMI:EDID DMT mode (16) 1024x768p @ 60 Hz with pixel clock 65 MHz has a score of 72185
HDMI:EDID CEA mode (17) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 66472
HDMI:EDID CEA mode (18) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 66472
HDMI:EDID CEA mode (19) 1280x720p @ 50 Hz with pixel clock 74 MHz has a score of 117160
HDMI:EDID CEA mode (20) 1920x1080i @ 50 Hz with pixel clock 74 MHz has a score of 128680
HDMI:EDID CEA mode (22) 1440x576i @ 50 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID CEA mode (31) 1920x1080p @ 50 Hz with pixel clock 148 MHz has a score of 232360
HDMI:EDID CEA mode (32) 1920x1080p @ 24 Hz with pixel clock 74 MHz has a score of 124532
HDMI:EDID CEA mode (33) 1920x1080p @ 25 Hz with pixel clock 74 MHz has a score of 128680
HDMI:EDID CEA mode (34) 1920x1080p @ 30 Hz with pixel clock 74 MHz has a score of 149416
HDMI:EDID DMT mode (81) 1366x768p @ 60 Hz with pixel clock 85 MHz has a score of 4062945
HDMI:EDID CEA mode (93) 3840x2160p @ 24 Hz with pixel clock 297 MHz has a score of 423130
HDMI:EDID CEA mode (94) 3840x2160p @ 25 Hz with pixel clock 297 MHz has a score of 439720
HDMI:EDID CEA mode (95) 3840x2160p @ 30 Hz with pixel clock 297 MHz has a score of 522664
HDMI:EDID CEA mode (96) 3840x2160p @ 50 Hz with pixel clock 594 MHz has a score of 356776
HDMI:EDID best score mode is now CEA (97) 3840x2160p @ 60 Hz with pixel clock 594 MHz (score 5622196)
HDMI:EDID CEA mode (98) 4096x2160p @ 24 Hz with pixel clock 297 MHz has a score of 224065
HDMI:EDID CEA mode (99) 4096x2160p @ 25 Hz with pixel clock 297 MHz has a score of 232360
HDMI:EDID CEA mode (100) 4096x2160p @ 30 Hz with pixel clock 297 MHz has a score of 273831
HDMI:EDID CEA mode (101) 4096x2160p @ 50 Hz with pixel clock 594 MHz has a score of 190888
HDMI:EDID CEA mode (102) 4096x2160p @ 60 Hz with pixel clock 594 MHz has a score of 224065
HDMI0:EDID preferred mode remained as CEA (97) 3840x2160p @ 60 Hz with pixel clock 594 MHz
HDMI:EDID has HDMI support and audio support
edidparser exited with code 0
pi@raspberrypi:/tmp $
pi@raspberrypi:/tmp $ file edid.bin
edid.bin: EDID data, version 1.3
pi@raspberrypi:/tmp $ tvservice -d edid.bin
Written 256 bytes to edid.bin
pi@raspberrypi:/tmp $ tvservice -h
Usage: tvservice [OPTION]...
-p, --preferred Power on HDMI with preferred settings
-e, --explicit="GROUP MODE DRIVE" Power on HDMI with explicit GROUP (CEA, DMT, CEA_3D_SBS, CEA_3D_TB, CEA_3D_FP, CEA_3D_FS)
MODE (see --modes) and DRIVE (HDMI, DVI)
-t, --ntsc Use NTSC frequency for HDMI mode (e.g. 59.94Hz rather than 60Hz)
-c, --sdtvon="MODE ASPECT [P]" Power on SDTV with MODE (PAL or NTSC) and ASPECT (4:3 14:9 or 16:9) Add P for progressive
-o, --off Power off the display
-m, --modes=GROUP Get supported modes for GROUP (CEA, DMT)
-M, --monitor Monitor HDMI events
-s, --status Get HDMI status
-a, --audio Get supported audio information
-d, --dumpedid <filename> Dump EDID information to file
-j, --json Use JSON format for --modes output
-n, --name Print the device ID from EDID
-l, --list List all attached devices
-v, --device Specify the device to use (see --list)
-h, --help Print this information
pi@raspberrypi:/tmp $ xxd edid.bin
00000000: 00ff ffff ffff ff00 4d79 2900 0101 0101 ........My).....
00000010: 301b 0103 8080 4878 0ada ffa3 584a a229 0.....Hx....XJ.)
00000020: 1749 4b20 0800 3140 6140 0101 0101 0101 .IK ..1@a@......
00000030: 0101 0101 0101 08e8 0030 f270 5a80 b058 .........0.pZ..X
00000040: 8a00 ba88 2100 001e 023a 8018 7138 2d40 ....!....:..q8-@
00000050: 582c 4500 ba88 2100 001e 0000 00fc 0054 X,E...!........T
00000060: 562d 6d6f 6e69 746f 720a 2020 0000 00fd V-monitor. ....
00000070: 0017 3d0f 883c 000a 2020 2020 2020 0169 ..=..<.. .i
00000080: 0203 47f0 5710 1f05 1420 2122 0413 0312 ..G.W.... !"....
00000090: 0716 5d5e 5f62 6364 6160 6665 2309 0701 ..]^_bcda`fe#...
000000a0: 6e03 0c00 1000 383c 2f00 8001 0203 0467 n.....8</......g
000000b0: d85d c401 7880 03e2 00c9 e305 e000 e40f .]..x...........
000000c0: 0000 78e3 0607 0166 2156 aa51 001e 3046 ..x....f!V.Q..0F
000000d0: 8f33 00ba 8821 0000 1e00 0000 0000 0000 .3...!..........
000000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
000000f0: 0000 0000 0000 0000 0000 0000 0000 00e2 ................
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment