具体需要在链接里面生成显示器的配置文件,已经很傻瓜化了,希望对大家有用。
链接:https://comsysto.github.io/Display-Override-PropertyList-File-Parser-and-Generator-with-HiDPI-Support-For-Scaled-Resolutions/
How to use Scale ResolutionsFollow the steps below to learn how to use Scale Resolutions. See the awesome tonymacx86.com forum for more details. This tool is provided without warranty. Comsysto Reply is not responsible for damages to your system. It is heavily discouraged to edit files in /System/ directory. You are doing it at your own risk.
Enable HiDPI ModeOpen your terminal and copy/paste the following command to enable HiDPI mode: [size=0.9]sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
Detect your DisplayTo detect your display copy/paste the following command into your terminal: [size=0.9]ioreg -lw0 | grep IODisplayPrefsKey
The output on a Mac should look like so: [size=0.9]"IODisplayPrefsKey" = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@0/display0/AppleBacklightDisplay-610-a019"
"IODisplayPrefsKey" = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@2/display0/AppleDisplay-10ac-d06e"
All external monitors are identified by AppleDisplay and internal monitors by AppleBacklightDisplay. So if you want to set scale resolutions for your external monitor you will need to look at the second line. Identify at the end of the line your DisplayVendorId as 10ac and your DisplayProductID as d06e and note these values. Now insert them into the corresponding input fields on the top left and the generator will generate a basic plist file for you. Customize your ResolutionsNow you can customize the Scale Resolutions. For example you could enter 2560x1440 and enable HiDPI. Be aware that the generator does not do any sanity checks for you, what you enter is just getting encoded. Please be aware that depending on your monitor and internal mac-checkups during startup some resolutions might not work.
Download plist and copy to System folderOnce you have configured all your resolutions click the download button. A file called DisplayProductID-*.plist will download. Now copy this file to the destination that has been calculated on the top right under Display PropertyList Filename. Example for a DELL Monitor: [size=0.9]sudo cp ~/Downloads/DisplayProductID-d06e.plist /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-10ac/DisplayProductID-d06e
NOTE: That you might need to disable System Integrity Protection (at your own risk) to copy files to /System/. NOTE: On Mac OS Catalina systems, the /System/ folder is mounted read-only, so you may need to temporarily remount the file system as writable before copying the downloaded file as follows: sudo mount -uw /. This lasts until the next reboot. Restart Mac and use ResolutionsNow you can change your resolution to the ones you entered (if macOS did not disable them during boot check-ups) A very handy tool to enable resolutions is RDM.
If you are more into commandline tools you might like screenresolutions.
And if you are willing to pay a small amount SwitchResX is also a great tool.
|