I found a workaround. When I tried before to override the EDID, it did not work because override EDID is only applied when the monitor is replugged.
documentation:
- Kernel mode setting - ArchWiki
- How to override the EDID data of a monitor under Linux | foosel.net
- RepairEDID - Debian Wiki for the bravest
The workaround is as follows as root:
cat/path/to/your.edid >/sys/kernel/debug/dri/1/DP-2/edid_override
echo 1 > /sys/kernel/debug/dri/1/DP-2/trigger_hotplug
changing DP-2
depending on where you plugged the monitor.
There is also a trick to enable it on boot via the kernel command-line, but I prefer to keep the control of that.
I’ll have to see if in another computer I have this EDID error in dmesg too. To know if it comes from the monitor which got a corrupted EDID or if is a problem with the GPU driver.