Modify the recovery method and optimize the code structure

This commit is contained in:
xzhih
2020-11-16 08:50:08 +08:00
parent 84e35ead60
commit fa0e36f68a
3 changed files with 248 additions and 228 deletions

View File

@@ -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