macOS 10.15 open HiDPI

Common display, connected MacBook find that the resolution provided in the original 2K small font display, 1080P resolution display and replaced by special fuzzy. Here MacBook break open HiDPI.

What is HiDPI

It uses two physical vertical and horizontal pixels is four physical pixels to display each pixel region, the result is obtained by doubling the image detail, clearer, smoother edges.

Take 13-inch MacBook Pro, for example, its physical screen resolution is 2560 x 1600, so HiDPI native resolution is 1280x800. A higher resolution file 1440x900 HiDPI scale, it is a virtual resolution of 2880x1800, then soft-scaled input. So you can find Apple computer always has a high resolution.

Well, since your screen is 1080p, the pixel itself is not so much to synthetic HiDPI, if displaying the calculation native, 1080p resolution this screen you should be 960x540, so low resolution you are not using.

The function of this script is the virtual higher than the physical resolution of your screen resolution is fake ...... If you want to turn on HiDPI resolution of 1080p, it is a virtual fake resolution of 3840 x 2160, and then use the four pixels macOS to display a pixel area, which is the same as your physical resolution of 1080p resolution.

Manual configuration HiDPI

This tutorial test environment:

  • Notebook: MacBook Pro (Retina, 15-inch, Mid 2015)
  • Display: Dell P2416D
  • Operating systems: MacOS Catalina (Version 10.15.1)

0. installation RDM

I believe many people have had installed this tool, which is used to modify the display resolution, if not installed, install it on the download page RDM.

1. Turn off the SIP macOS

SIP called the "System Integrity Protection" that is, "to protect the integrity of the system," Apple to prevent tampering protection mechanisms you casually file system used, please follow the steps below to turn it off, so that subsequent operations:

  1. Shutdown (preferably a mobile phone to take a picture recorded in this step 4)
  2. Press the command(⌘)+ R+电源键power on, automatically enter recovery mode
  3. Select the top menu bar 实用工具in终端
  4. input the commandcsrutil disable

Finally, the terminal displays "Successfully ......" and other paperwork to show that you succeeded. You can enter rebootrestart. Once all of the following settings are completed, if you want to restore the SIP, to repeat steps 1 through 3, in step 4 input csrutil enablejust fine.

2. Open macOS of HiDPI options

After reboot again into the system, the input terminal is opened

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

3. Query your external monitor number

This step is important, first introduced two commands

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

These two commands to query your monitor vendor ID  DisplayVendorID and product ID  DisplayProductID. Then you have to find your monitor corresponding DisplayVendorIDand DisplayProductID:

  1. Or unplug the display DP HDMI cable
  2. After two commands are input return(↩), each command will return results with a number. That figure is the MacBook default DisplayVendorIDand DisplayProductIDthe
  3. Access monitor
  4. Then the two are input commands, each command returns two results with numbers, respectively. Just compare MacBook default result, and the other is your digital display DisplayVendorIDand DisplayProductIDthe
  5. These two figures were converted into the corresponding hexadecimal, binary conversion using this tool.

Now, back to the desktop, create a new folder named DisplayVendorID-[你刚才查到的DisplayVendorID的16进制数], for example DisplayVendorID-10ac.

After the increase in this newly built folder a file named DisplayProductID-[你刚才查到的DisplayProductID的16进制数], for example DisplayProductID-a0c3.

4. Generate plist file for your monitor

Enter in the empty left side of the display in each model, DisplayProductID and DisplayVendorID, pay attention to fill in hexadecimal numbers, and check back next decimal numbers are not consistent and you just found the command. If you need to add your own additional resolution, a resolution to build a new configuration directly in the bottom line. Finally, copy the right to generate XML-formatted text, just paste it into the new file. (You can also download files directly from the site, remove the file name suffix  .plist )

XML is similar to the text below this:





 DisplayProductID
 41155
 DisplayVendorID
 4268
 scale-resolutions
 
 AAAKAAAABaAAAAABACAAAA==
 AAAFAAAAAtAAAAABACAAAA==
 AAAPAAAACHAAAAABACAAAA==
 AAAHgAAABDgAAAABACAAAA==
 AAAMgAAABwgAAAABACAAAA==
 AAAGQAAAA4QAAAABACAAAA==
 AAAKAgAABaAAAAABACAAAA==
 AAAKrAAABgAAAAABACAAAA==
 AAAFVgAAAwAAAAABACAAAA==
 

4. Copy plist configuration file to the configuration directory

This step is to copy just the new configuration file to your system directory, you will usually prompt you to directly copy the system directory is "read-only" and does not allow you to misbehave. So you must first execute the following command in a terminal:

sudo mount -uw /

This way, you can be copied to the system folder. (This command after the restart failure)

Next, open the System folder /System/Library/Displays/Contents/Resources/Overrides/, you'll find a lot of just folder named with your similar directory. Put your new folder lost in, and they are mixed together, pretend it is one of the original one. Restart.

5. Modify Resolution

After the restart and enter the system, open the RDM, you will see it in the menu bar:

M AI the n-Display and Display 2 are on your MacBook display and external display resolution setting (position possible swap, try it yourself). Resolution with ⚡️ symbol of the settings is added after opening HiDPI out. If you, like me, are 24-inch 2K display, you can choose to display 1920x1080⚡️the configuration.

Is greater clarity than the native resolution of the UI and fonts?

Guess you like

Origin www.cnblogs.com/macjb/p/11988359.html