mirror of
https://github.com/xzhih/one-key-hidpi.git
synced 2026-04-13 01:13:42 +08:00
Modify the recovery method and optimize the code structure
This commit is contained in:
29
README.md
29
README.md
@@ -44,26 +44,31 @@ There are two ways to close it. It is recommended to choose the first one
|
||||
|
||||
```bash
|
||||
ls /Volumes/
|
||||
cd /Volumes/"Your System Disk Part"/System/Library/Displays/Contents/Resources/Overrides/HIDPI
|
||||
```
|
||||
|
||||
./disable
|
||||
you can see all Disk.
|
||||
|
||||
```bash
|
||||
cd /Volumes/"Your System Disk Part"/Users/
|
||||
|
||||
ls
|
||||
```
|
||||
|
||||
you can see user home directory.
|
||||
|
||||
```bash
|
||||
cd "user name"
|
||||
|
||||
./.hidpi-disable
|
||||
```
|
||||
|
||||
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:
|
||||
Remove all injected display's DisplayVendorID folder under `Library/Displays/Contents/Resources/Overrides`
|
||||
|
||||
```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/* ./
|
||||
rm -rf /Volumes/"Your System Disk Part"/Library/Displays/Contents/Resources/Overrides
|
||||
```
|
||||
|
||||
## Inspired
|
||||
|
||||
Reference in New Issue
Block a user