one-key-hidpi/README.md

74 lines
1.9 KiB
Markdown
Raw Normal View History

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
2019-02-17 06:52:19 -06:00
![Preferences](./img/hidpi.gif)
2019-01-31 10:21:38 -06:00
2018-06-10 11:03:20 -05:00
## Usage
2020-04-17 04:36:57 -05:00
1.Remote Mode: Run this script in Terminal
2018-04-02 13:59:50 -05:00
2019-01-23 12:53:19 -06:00
```bash
2019-11-18 14:59:55 -06:00
bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/dev/hidpi.sh)"
2018-04-02 13:59:50 -05:00
```
2020-04-17 04:58:39 -05:00
2.Local Mode: Download ZIP, decompressing it, and double click `hidpi.command` to run
2020-04-17 04:36:57 -05:00
2018-06-10 11:03:20 -05:00
![RUN](./img/run.jpg)
## Recovery
2018-04-02 16:13:30 -05:00
2019-01-23 12:53:19 -06:00
### Normal
2018-04-02 16:13:30 -05:00
2019-01-23 12:53:19 -06:00
Still running the script in the terminal, but choose option 3
### Recovery mode
If you cant boot into system, or get any another issues, you can boot into macOS Recovery mode, and use the Terminal.app
There are two ways to close it. It is recommended to choose the first one
1.
```bash
ls /Volumes/
cd /Volumes/"Your System Disk Part"/System/Library/Displays/Contents/Resources/Overrides/HIDPI
2018-04-02 16:13:30 -05:00
2019-01-23 12:53:19 -06:00
./disable
2018-04-02 16:13:30 -05:00
```
2019-01-23 12:53:19 -06:00
2.
Remove your display's DisplayVendorID folder under `/System/Library/Displays/Contents/Resources/Overrides` , and move backup files
Please use the single display to execute the following commands. If it is a laptop, turn off the internal monitor when turning off the HIDPI of the external monitor.
In Terminal:
```bash
ls /Volumes/
cd /Volumes/"Your System Disk Part"/System/Library/Displays/Contents/Resources/Overrides
EDID=($(ioreg -lw0 | grep -i "IODisplayEDID" | sed -e "/[^<]*</s///" -e "s/\>//"))
Vid=($(echo $EDID | cut -c18-20))
rm -rf ./DisplayVendorID-$Vid
cp -r ./HIDPI/backup/* ./
2018-04-02 16:13:30 -05:00
```
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