From ee813c34e067b4a3cccb3688307d7abe7af98ded Mon Sep 17 00:00:00 2001 From: xzhih <842708096@qq.com> Date: Tue, 3 Apr 2018 05:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 4e7b8aa..0b70d29 100755 --- a/README.md +++ b/README.md @@ -20,3 +20,19 @@ MacOS的dpi机制和win下不一样,比如1080p的屏幕在win下有125%、150 $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)" ``` +![运行](https://i.loli.net/2018/04/03/5ac2963c7b26b.png) + +### 恢复 + +如果使用此脚本后,开机无法进入系统,请到恢复模式中,使用终端删除 `/System/Library/Displays/Contents/Resources/Overrides` 下删除显示器VendorID对应的文件夹,并把backup文件夹中的备份复制出来。 + +具体命令如下: +``` +$ cd /Volumes/你的系统盘/System/Library/Displays/Contents/Resources/Overrides +$ 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/* ./ +``` + +