This script uses i2c-tools to flash a new edid to a display (if the EEPROM storing the edid is not write-protected)
#!/usr/bin/env python3 | |
import subprocess | |
import time | |
i2cbus = 3 #This is important. Check which bus your DDC is on with i2cdetect. | |
offset = 0x00 #Where to start writing | |
data = [0x00, 0xFF, 0xFF, 0xFF, 0xFF,...] #Your EDID Goes here | |
for value in data: | |
print("value", hex(value), "offset", hex(offset)) #for debuging | |
print(subprocess.check_output(["i2cset", "-y", str(i2cbus), "0x50", str(hex(offset)), str(hex(value))])) | |
time.sleep(0.1) #Makes sure we finish before moving on | |
offset += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment