2018-06-10 11:03:20 -05:00
# Enable macOS HiDPI
2018-04-02 13:59:50 -05:00
2018-06-10 11:03:20 -05:00
## Explanation
2018-04-02 13:59:50 -05:00
2018-06-10 11:03:20 -05:00
[English ](README.md ) | [中文 ](README-zh.md )
2018-04-02 13:59:50 -05:00
2018-06-10 11:03:20 -05:00
This script can simulate macOS HiDPI on a non-retina display, and have a "Native" Scaled in System Preferences.
2018-04-02 13:59:50 -05:00
2018-06-10 11:03:20 -05:00
Some device have wake-up issue, script's second option may help, it inject a patched EDID, but another problem may exists here.
2018-04-02 15:30:49 -05:00
2018-06-10 11:03:20 -05:00
Logo scaling up may not be resolved, cuz the higher resolution is faked.
2018-04-02 13:59:50 -05:00
2018-06-10 11:03:20 -05:00
System Preferences
2018-04-02 13:59:50 -05:00
2018-06-10 11:03:20 -05:00
![Preferences ](./img/preferences.jpg )
2018-04-02 13:59:50 -05:00
2018-06-10 11:03:20 -05:00
## Usage
Run script in Terminal
2018-04-02 13:59:50 -05:00
```
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)"
```
2018-06-10 11:03:20 -05:00
![RUN ](./img/run.jpg )
## Recovery
2018-04-02 16:13:30 -05:00
2018-06-10 11:03:20 -05:00
If you cant boot into system, or get any another issues, you can use clover `-x ` reboot or into Recovery mode, remove your display's DisplayVendorID folder under `/System/Library/Displays/Contents/Resources/Overrides` , and move backup files
2018-04-02 16:13:30 -05:00
2018-06-10 11:03:20 -05:00
In Terminal:
2018-04-02 16:13:30 -05:00
```
2018-06-10 11:03:20 -05:00
$ cd /Volumes/"Your System Disk Part"/System/Library/Displays/Contents/Resources/Overrides
2018-04-02 16:13:30 -05:00
$ VendorID=$(ioreg -l | grep "DisplayVendorID" | awk '{print $8}')
$ Vid=$(echo "obase=16;$VendorID" | bc | tr 'A-Z' 'a-z')
$ rm -rf ./DisplayVendorID-$Vid
$ cp -r ./backup/* ./
```
2018-06-10 11:03:20 -05:00
## Inspired
https://www.tonymacx86.com/threads/solved-black-screen-with-gtx-1070-lg-ultrafine-5k-sierra-10-12-4.219872/page-4#post-1644805
2018-04-02 16:13:30 -05:00
2018-06-10 11:03:20 -05:00
https://github.com/syscl/Enable-HiDPI-OSX