## patch-edid.rb A script to fix EDID problems on external monitors in macOS. ### Instructions 1. Connect only the problem display. 1. Create this directory structure (if it doesn't already exist): ```shell sudo mkdir -p /Library/Displays/Contents/Resources/Overrides ``` 1. Download this ruby script in that directory: ```shell cd /Library/Displays/Contents/Resources/Overrides sudo curl -O https://gist.github.com/ejdyksen/8302862/raw/patch-edid.rb ``` *Note: You may want to use [adaugherity's version](https://gist.github.com/adaugherity/7435890) of the script instead.* 1. Run the script we just downloaded (as root again). This creates a new display override plist file. ```shell cd /Library/Displays/Contents/Resources/Overrides sudo ruby patch-edid.rb ``` 1. Unplug and replug in the problem display. ### Additional reading/acknowledgements * [The original forum thread](http://embdev.net/topic/284710) * An improved version of the script [by adaugherity](https://gist.github.com/adaugherity/7435890) * [An explaination of the problem](https://spin.atomicobject.com/2018/08/24/macbook-pro-external-monitor-display-problem/) from Atomic Object's blog * Thanks so much to @stackrainbow for [pointing out](https://gist.github.com/ejdyksen/8302862#gistcomment-3460110) that this can be done without disabling SIP. * This version appears to work in Catalina and Big Sur. See earlier revisions for what worked (with disabling SIP) in earlier versions of macOS, which require the override plist to be in a different directory.