# 更换 4K 屏幕后无法进入系统的解决方案

配置文件默认支持 1080p 的屏幕。如果自行更换了 4K 屏幕，则需要对 `config.plist` 进行相应的修改，否则将会遇到无法进入系统，卡在 **`IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0 now`** 的错误。

具体修改方式如下：

1. 首先注入 `ig-platform-id`  **0x12345678** 进入系统，此时显卡应为未驱动状态。
2. 修改 `config.plist`，在设备设置 `(Devices)` => 属性 `(Properties)` 中，找到 `PciRoot(0x0)/Pci(0x2,0x0)` 一项：

![PciRoot(0x0)/Pci(0x2,0x0)](/files/-LzoVnSGEhH1a3D9Jtij)

3\. 在原有属性的基础上，修改或添加以下属性：

| 属性键 (key)                              | 属性值 (value)                | 值类型 (type) |
| -------------------------------------- | -------------------------- | ---------- |
| AAPL,GfxYTile                          | 01000000                   | DATA       |
| AAPL,slot-name                         | Built-in                   | STRING     |
| device\_type                           | Display Controller         | STRING     |
| dpcd-max-link-rate                     | 14000000                   | DATA       |
| enable-dpcd-max-link-rate-fix          | 01000000                   | DATA       |
| enable-hdmi20                          | 01000000                   | DATA       |
| enable-lspcon-support                  | 01000000                   | DATA       |
| framebuffer-con1-alldata               | 01050900 00040000 87010000 | DATA       |
| framebuffer-con2-alldata               | 03040A00 00080000 87010000 | DATA       |
| framebuffer-con2-has-lspcon            | 01000000                   | DATA       |
| framebuffer-con2-preferred-lspcon-mode | 01000000                   | DATA       |
| framebuffer-portcount                  | 04000000                   | DATA       |
| framebuffer-unifiedmem                 | 000000C0                   | DATA       |

4\. 删除以下属性：

| 属性键                     |
| ----------------------- |
| framebuffer-con0-enable |
| framebuffer-con0-pipe   |
| framebuffer-con1-pipe   |
| framebuffer-con2-pipe   |

完成后，应该像这样：

![](/files/-Lzoc0T1K8VIJEzFWOE3)

5\. 添加引导参数 `-cdfon` .

解决方案来自：<https://github.com/kirainmoe/hasee-tongfang-macos/issues/33>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hackintosh.kirainmoe.com/ying-jian-xiang-guan/geng-huan-4k-ping-mu-hou-wu-fa-jin-ru-xi-tong-de-jie-jue-fang-an.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
