A script to fix EDID problems on external monitors in Mac OS.
-
Connect the problem monitor.
-
Download this script into your
/System/Library/Displays/Overrides(note: this file is only writeable by root, so some commands requiresudo).
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # vim:fenc=utf-8 | |
| # | |
| # Copyright © 2018 beebird | |
| # | |
| # Distributed under terms of the MIT license. | |
| """ |
| function adb_toggle_airplane_mode { | |
| # Open airplane mode settings | |
| adb shell am start -a android.settings.AIRPLANE_MODE_SETTINGS | |
| # Key UP to focus on the first switch = toggle airplane mode, then sleep 100ms | |
| adb shell input keyevent 19 ; sleep 0.1 | |
| # Key CENTER to toggle the first switch, then sleep 100ms | |
| adb shell input keyevent 23 ; sleep 0.1 |