Skip to content

Instantly share code, notes, and snippets.

@d4h0
d4h0 / get-edid.py
Created December 4, 2019 12:14 — forked from mvollrath/get-edid.py
Using xrandr CLI to write EDID from a connected monitor to stdout
#!/usr/bin/env python
import re
import subprocess
def get_edid_for_output(connector: str) -> bytes:
xrandr = subprocess.run(
['xrandr', '--props'],
check=True,