Skip to content

Commit

Permalink
Update framebuffer-flags and layout-id in OC config, and officially a…
Browse files Browse the repository at this point in the history
…dd makefile thx @williambj1
  • Loading branch information
stevezhengshiqi committed Apr 22, 2020
1 parent c06c91e commit 40cb05d
Show file tree
Hide file tree
Showing 16 changed files with 549 additions and 830 deletions.
6 changes: 3 additions & 3 deletions BIOS/DVMT_and_0xE2_fix/README_CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 帧缓存和 0xE2 修复
# 动态显存 和 0xE2 修复

[English](README.md) | 中文

Expand All @@ -15,13 +15,13 @@

3. 在对BIOS做进一步修改之前运行 `bios_unlock.cmd`

4. 运行 `DVMT_set.cmd` 让帧缓存=64mb。你需要重启否则脚本将不会生效。你不能一股脑运行完所有脚本再重启,因为只有关机前最后一个脚本生效。
4. 运行 `DVMT_set.cmd` 让动态显存=64mb。你需要重启否则脚本将不会生效。你不能一股脑运行完所有脚本再重启,因为只有关机前最后一个脚本生效。

5. 运行 `CFG_unlock.cmd`,再次重启。

6. 运行 `bios_lock.cmd` 来给BIOS重新上锁,让电脑更安全。

7. 删除帧缓存补丁
7. 删除动态显存补丁

- <b>如果你是 Clover 或 OC 用户:</b>
- 打开 `/EFI/CLOVER (或者 OC)/config.plist`,删除以下代码:
Expand Down
2 changes: 1 addition & 1 deletion BIOS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ If unfortunately, this situation happens on you, you need to find Xiaomi stuff t
## How to unlock better performance

<b>MX150 Only.</b>
[FallenChromium](https://github.com/FallenChromium) and [Cyb](http://4pda.ru/forum/index.php?showuser=914121) created scripts for changing DVMT size from 32MB to 64MB, unlocking MSR 0xE2, and editing Embedded Controller(EC) firmware to reduce fan nosie. For more information, you can visit [#8](https://github.com/stevezhengshiqi/XiaoMi-Pro/issues/8) and [cybsuai's repository](https://github.com/cybsuai/Mi-Notebook-Pro-tweaks).
[FallenChromium](https://github.com/FallenChromium) and [Cyb](http://4pda.ru/forum/index.php?showuser=914121) created scripts for changing DVMT size from 32mb to 64mb, unlocking MSR 0xE2, and editing Embedded Controller(EC) firmware to reduce fan nosie. For more information, you can visit [#8](https://github.com/stevezhengshiqi/XiaoMi-Pro/issues/8) and [cybsuai's repository](https://github.com/cybsuai/Mi-Notebook-Pro-tweaks).

DVMT set and CFG unlock scripts are included in latest release.

Expand Down
4 changes: 2 additions & 2 deletions BIOS/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
## 怎么提升性能

<b>仅支持MX150。</b>
[FallenChromium](https://github.com/FallenChromium)[Cyb](http://4pda.ru/forum/index.php?showuser=914121) 制作了脚本用来扩大DVMT大小(从32MB扩大到64MB),解锁MSR 0xE2寄位器,和修改EC固件来减少风扇噪声。如果想获取更多的信息,你可以访问 [#8](https://github.com/stevezhengshiqi/XiaoMi-Pro/issues/8)[cybsuai的仓库](https://github.com/cybsuai/Mi-Notebook-Pro-tweaks)
[FallenChromium](https://github.com/FallenChromium)[Cyb](http://4pda.ru/forum/index.php?showuser=914121) 制作了脚本用来扩大动态显存大小(从32mb扩大到64mb),解锁MSR 0xE2寄位器,和修改EC固件来减少风扇噪声。如果想获取更多的信息,你可以访问 [#8](https://github.com/stevezhengshiqi/XiaoMi-Pro/issues/8)[cybsuai的仓库](https://github.com/cybsuai/Mi-Notebook-Pro-tweaks)

DVMT扩容脚本和解锁CFG脚本被囊括在了最新release里
动态显存扩容脚本和解锁CFG脚本被囊括在了最新release里


## 鸣谢
Expand Down
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ English | [中文](Changelog_CN.md)

### Update
- Update `SSDT-USB`
- Update `framebuffer-flags` property

### Add
- Add `UPC -> XUPC` rename
Expand Down
1 change: 1 addition & 0 deletions Changelog_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@

### 更新
* 更新 `SSDT-USB`
* 更新 `framebuffer-flags` 属性

### 新增
* 新增 `UPC -> XUPC` 重命名
Expand Down
12 changes: 12 additions & 0 deletions EFI/CLOVER/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,24 @@
<data>AQAAAA==</data>
<key>force-online-framebuffers</key>
<data>AAAAAAAAAAE=</data>
<key>framebuffer-con0-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con0-flags</key>
<data>mAQAAA==</data>
<key>framebuffer-con1-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con1-flags</key>
<data>xwMAAA==</data>
<key>framebuffer-con1-pipe</key>
<data>CgAAAA==</data>
<key>framebuffer-con1-type</key>
<data>AAgAAA==</data>
<key>framebuffer-con2-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con2-flags</key>
<data>xwMAAA==</data>
<key>framebuffer-con2-type</key>
<data>AAgAAA==</data>
<key>framebuffer-fbmem</key>
<data>AACQAA==</data>
<key>framebuffer-flags</key>
Expand Down
14 changes: 13 additions & 1 deletion EFI/OC/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,24 @@
<data>AQAAAA==</data>
<key>force-online-framebuffers</key>
<data>AAAAAAAAAAE=</data>
<key>framebuffer-con0-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con0-flags</key>
<data>mAQAAA==</data>
<key>framebuffer-con1-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con1-flags</key>
<data>xwMAAA==</data>
<key>framebuffer-con1-pipe</key>
<data>CgAAAA==</data>
<key>framebuffer-con1-type</key>
<data>AAgAAA==</data>
<key>framebuffer-con2-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con2-flags</key>
<data>xwMAAA==</data>
<key>framebuffer-con2-type</key>
<data>AAgAAA==</data>
<key>framebuffer-fbmem</key>
<data>AACQAA==</data>
<key>framebuffer-flags</key>
Expand Down Expand Up @@ -452,7 +464,7 @@
<key>hda-idle-support</key>
<string>1</string>
<key>layout-id</key>
<integer>99</integer>
<integer>30</integer>
<key>model</key>
<string>Intel Sunrise Point-LP HD Audio</string>
</dict>
Expand Down
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ macOS Catalina & Mojave & High Sierra on XiaoMi NoteBook Pro 2017 & 2018

English | [中文](README_CN.md)

## Contents

- [Configuration](#configuration)
- [Current Status in Clover](#current-status-in-clover)
- [Current Status in OpenCore](#current-status-in-opencore)
- [Improvements](#improvements)
- [Installation](#installation)
- [First-time installation](#first-time-installation)
- [Build](#build)
- [Upgrade](#upgrade)
- [FAQ](#faq)
- [Changelog](#changelog)
- [A reward](#a-reward)
- [Credits](#credits)
- [Support and discussion](#support-and-discussion)


## Configuration

| Specifications | Detail |
Expand Down Expand Up @@ -78,6 +95,19 @@ Need more testing...
<img src="img/donot_Clone_or_Download.jpg" width="300px" alt="donot_clone_or_download">
<img src="img/get_Release.jpg" width="300px" alt="get_release">

### Build

- Build the latest beta EFI by running the following command in Terminal:
```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/master/makefile.sh)"
```
- Or running the following command in Terminal:
```
git clone --depth=1 https://github.com/daliansky/XiaoMi-Pro-Hackintosh.git
cd XiaoMi-Pro-Hackintosh
./makefile.sh
```

### Upgrade

- A complete replacement of `BOOT` and `CLOVER`(or `OC`) folders is required. Delete these two folders and copy them from the [release pack](https://github.com/daliansky/XiaoMi-Pro/releases).
Expand Down
34 changes: 32 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@

[English](README.md) | 中文

## 目录

- [电脑配置](#电脑配置)
- [Clover版本的目前情况](#clover版本的目前情况)
- [OpenCore版本的目前情况](#opencore版本的目前情况)
- [改善体验](#改善体验)
- [安装](#安装)
- [首次安装](#首次安装)
- [构建](#构建)
- [更新](#更新)
- [常见问题解答](#常见问题解答)
- [更新日志](#更新日志)
- [关于打赏](#关于打赏)
- [鸣谢](#鸣谢)
- [支持与讨论](#支持与讨论)


## 电脑配置

| 规格 | 详细信息 |
Expand Down Expand Up @@ -54,10 +71,10 @@
## 改善体验

- 使用 [ALCPlugFix](ALCPlugFix) 来修复耳机重新插拔后无声
- 使用 [DVMT_and_0xE2_fix](BIOS/DVMT_and_0xE2_fix) 来把帧缓存设为64mb并解锁CFG
- 使用 [DVMT_and_0xE2_fix](BIOS/DVMT_and_0xE2_fix) 来把动态显存设为64mb并解锁CFG
- 使用 [xzhih](https://github.com/xzhih)[one-key-hidpi](https://github.com/xzhih/one-key-hidpi) 来提升系统UI质量
- 支持 1440x810 HiDPI 分辨率
- 如果 macOS 版本高于 10.13.6,要开启更高 HiDPI 分辨率 (<1600x900),请先使用 [DVMT_and_0xE2_fix](BIOS/DVMT_and_0xE2_fix) 来把帧缓存设为64mb
- 如果 macOS 版本高于 10.13.6,要开启更高 HiDPI 分辨率 (<1600x900),请先使用 [DVMT_and_0xE2_fix](BIOS/DVMT_and_0xE2_fix) 来把动态显存设为64mb
- 使用 [one-key-cpufriend](one-key-cpufriend) 来提升CPU性能


Expand All @@ -73,6 +90,19 @@
<img src="img/donot_Clone_or_Download.jpg" width="300px" alt="donot_clone_or_download">
<img src="img/get_Release.jpg" width="300px" alt="get_release">

### 构建

- 如果要构建最新测试版EFI,在终端输入以下命令:
```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/master/makefile.sh)"
```
- 或者在终端输入以下命令:
```
git clone --depth=1 https://github.com/daliansky/XiaoMi-Pro-Hackintosh.git
cd XiaoMi-Pro-Hackintosh
./makefile.sh
```

### 更新

- 完整替换 `BOOT``CLOVER`(或 `OC`)文件夹。首先删除他们,然后从[release 包里](https://github.com/daliansky/XiaoMi-Pro/releases)拷贝新的。
Expand Down
49 changes: 27 additions & 22 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -622,18 +622,19 @@ function main() {
echo "Your mainboard is ${MAINBOARD}"
echo '========================================================================='
echo -e "${BOLD}(1) Update EFI${OFF}"
echo "(2) Change Bluetooth mode (Only support the latest release)"
echo "(3) General audio fix (credits Menchen)"
echo "(4) Add color profile"
echo "(5) Update power management"
echo "(6) Modify TDP and CPU voltage (credits Pasi-Studio)"
echo "(7) Enable HiDPI"
echo "(8) Set DVMT to 64mb (for 4K screen) and unlock 0xE2 MSR (credit Menchen)"
echo "(9) Fix Windows boot (Only support the latest release)"
echo "(10) Fix Apple services"
echo "(11) Problem report"
echo "(12) Exit"
echo -e "${BOLD}Which option you want to choose? (1/2/3/4/5/6/7/8/9/10/11/12)${OFF}"
echo "(2) Build beta EFI"
echo "(3) Change Bluetooth mode (Only support the latest release)"
echo "(4) General audio fix (credits Menchen)"
echo "(5) Add color profile"
echo "(6) Update power management"
echo "(7) Modify TDP and CPU voltage (credits Pasi-Studio)"
echo "(8) Enable HiDPI"
echo "(9) Set DVMT to 64mb (for 4K screen) and unlock 0xE2 MSR (credit Menchen)"
echo "(10) Fix Windows boot (Only support the latest release)"
echo "(11) Fix Apple services"
echo "(12) Problem report"
echo "(13) Exit"
echo -e "${BOLD}Which option you want to choose? (1/2/3/4/5/6/7/8/9/10/11/12/13)${OFF}"
read -rp ":" xm_selection
case ${xm_selection} in
1)
Expand All @@ -642,56 +643,60 @@ function main() {
;;

2)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/master/makefile.sh)"
returnMenu

3)
changeBT
returnMenu
;;

3)
4)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/master/ALCPlugFix/one-key-alcplugfix.sh)"
returnMenu
;;

4)
5)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/master/ColorProfile/one-key-colorprofile.sh)"
returnMenu
;;

5)
6)
bash -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/master/one-key-cpufriend/one-key-cpufriend.sh)"
returnMenu
;;

6)
7)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Pasi-Studio/mpcpu/master/mpcpu.sh)"
returnMenu
;;

7)
8)
bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)"
returnMenu
;;

8)
9)
removeDVMTMSR
returnMenu
;;

9)
10)
fixWindows
returnMenu
;;

10)
11)
fixAppleService
returnMenu
;;

11)
12)
reportProblem
returnMenu
;;

12)
13)
clean
echo
echo "Wish you have a good day! Bye"
Expand Down
Loading

0 comments on commit 40cb05d

Please sign in to comment.