jingyi's blog

起源

没有吐槽 M1 Mac 外接显示器输出的只能是 YCbCr? - V2EX

M1 会认为一切外接的除自家 XDR/LG UltraFine 5K 以外的屏幕都是电视

basic info:

显示器 型号
DELL SE2417HG

解决方案

通过修改配置文件强制 [[M1]] 输出 RGB 1

locate the preference file for display:

p1=/Library/Preferences/com.apple.windowserver.displays.plist
cp $p1 ~/Downloads

p2=~/Downloads/com.apple.windowserver.displays.plist
plutil -convert xml1 $p2

vim $p2

Edit PixelEncoding and Range to the following state:

<key>PixelEncoding</key>
<integer>0</integer>
<key>Range</key>
<integer>1</integer>

then convert back (to binary format):

plutil -convert binary1 $p2
plutil -lint $p2

replace the original one:

sudo mv $p2 $p1

delete another displays.plist as well:

rm -f ~/Library/Preferences/ByHost/com.apple.windowserver.displays.*.plist

finally, reboot.