作者:matrix 被围观: 8,685 次 发布时间:2019-02-13 分类:零零星星 | 6 条评论 »
这是一个创建于 1296 天前的主题,其中的信息可能已经有所发展或是发生改变。
macOs外接一台2K显示器用1920*2080分辨率满屏显示的情况下会发现字体微模糊的情况。原因在于没有开启HIDPI,使用RDM软件切换分辨率就会发现没有闪电⚡️图标。
测试: 笔记本MACOS Mojave 10.14.3 (18D109) 外接 MAYA U2717H 27英寸2K显示器
重启电脑并按住Command+R
进入恢复模式 顶部的菜单中找到终端
工具,输入 csrutil disable; reboot
。禁用system系统文件保护。
下面按照comsysto.github.io工具的五个步骤操作
$ sudo cp -R /System/Library/Displays /Library/
将保存路径修改为/Library/Displays/Contents/Resources/Overrides/
例如:
$ sudo cp ~/Downloads/DisplayProductID-ccd.plist /Library/Displays/Contents/Resources/Overrides/DisplayVendorID-5e3/DisplayProductID-ccd
$ sudo mount -uw / #Catalina 10.15+以上的系统需要把系统分区重新挂载为可写。重启后失效
$ sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
终端执行ioreg -lw0 | grep IODisplayPrefsKey
笔记本电脑外接MAYA U2717H显示器的信息是第二个IODisplayPrefsKey
:
IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@2/display0/AppleDisplay-3721-2717
其中DisplayVendorId
为3721,DisplayProductID
为2717,都是16进制值。
使用ioreg -l | grep "DisplayVendorID"
命令获取的为10进制数值。
这两个显示器的相关参数需要在comsysto.github.io工具
配置中使用。
注意修改对应的DisplayProductID
和DisplayVendorID
值。
DisplayProductName
显示器名称可以填写上去。下面Scale Resolutions
中需要确保有自己使用的分辨率的且开启hidpi
。我这里是想用1920*2080分辨率
也就可以将就他的配置,只是需要修改显示器id参数。
之后点击框框下方的DisplayProductID-XXXX
按钮下载plist文件DisplayProductID-2717.plist
#3721为显示器的DisplayVendorId
#2717为显示器的DisplayProductID
cd /System/Library/Displays/Contents/Resources/Overrides
mkdir DisplayVendorID-3721 #创建显示器名称的目录
sudo cp ~/Downloads/DisplayProductID-2717.plist /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-3721/DisplayProductID-2717
重启后使用RDM选择对应的分辨率,会看到1920*2080分辨率有闪电⚡️图标
切换之后就可以马上看到效果了
RDM下载:http://avi.alkalay.net/software/RDM/
显示器配置文件plist:
MAYA U2717H:DisplayProductID-2717.plist
显示器欺骗器5e3-ccd:DisplayProductID-ccd.plist
参考:
https://developer.apple.com/forums/thread/649832?answerId=646352022#646352022
https://bbs.feng.com/read-htm-tid-12512988.html
https://zhuanlan.zhihu.com/p/20684620
https://comsysto.github.io/Display-Override-PropertyList-File-Parser-and-Generator-with-[HIDPI](https://www.hhtjim.com/tag/hidpi)-Support-For-Scaled-Resolutions/
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有