iugo / blog

https://iugo.github.io/blog
3 stars 0 forks source link

RDM #29

Open iugo opened 6 years ago

iugo commented 6 years ago

https://github.com/avibrazil/RDM

自定义显示

sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES

ioreg -l | grep "DisplayVendorID"
ioreg -l | grep "DisplayProductID"

"DisplayVendorID" = 4268 "DisplayProductID" = 53358

/System/Library/Displays/Contents/Resources/Overrides/ 显示器配置文件存放目录

配置文件 / 配置文件的内容 / 如何设置配置文件

key: scale-resolutions value: array

显示器配置 plist 大概格式 Array scale-resolutions Data 16进制, 8位, <00000640 00000384 00000001 00200000>

数组内的值为 data 类型, 16bytes 分辨率占 8bytes, 后补 00000001 00200000

数组内给两个值, 想要转成 HiDPI 的分辨率, 和该分辨率的两倍.

推荐使用配置工具: https://comsysto.github.io/Display-Override-PropertyList-File-Parser-and-Generator-with-HiDPI-Support-For-Scaled-Resolutions/

修改过配置文件后记得重启。

其他

想要修改系统配置需要先进入维护模式:

重启电脑,按住 Command + R 进入维护模式,打开维护模式的终端, 并输入 csrutil disable 关闭系统保护

iugo commented 4 years ago

http://x220.mcdonnelltech.com/enable-scaled-resolutions/