Skip to content

Instantly share code, notes, and snippets.

View Caldis's full-sized avatar
🎯
    ¯\_(ミ)_/¯   

Caldis_Chen Caldis

🎯
    ¯\_(ミ)_/¯   
View GitHub Profile
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -r -c AppleDisplay`
edid_hex=data.match(/IODisplayEDID.*?<([a-z0-9]+)>/i)[1]
vendorid=data.match(/DisplayVendorID.*?([0-9]+)/i)[1].to_i
@Caldis
Caldis / 解决OSX外接显示器模糊的问题.md
Last active May 9, 2020 02:25
解决OSX外接显示器模糊的问题

##解决OSX外接显示器模糊的问题

由于OSX无法识别一部分外接显示器的EDID信息, 默认以TV模式进行输出, 因此会导致外接显示器时文字渲染模糊
可以在关于本机>系统报告>硬件>图形卡/显示器中查看, 如果外接显示器显示了[电视 - 是], 即符合症状

在 EL Capitan 版本, 增加了一个叫做 System Integrity Protection (簡稱 SIP ,或稱 rootless, 在 iOS 9 裡面也有) 的保護機制,SIP 最主要功能就是防止對系統程式的 code injection,還有使用未被 Apple 認可的 kext。 如果要获取读写权限, 需要开机的时候按住 CMD+R 然后在终端输入 csrutil disable, 在重启就可以关闭 SIP 了。

  1. 复制以下代码为 patch-edid.rb 文件 (来源: https://embdev.net/topic/284710) https://gist.github.com/Caldis/cacb62a1e0426049255acb9cea503153