# Fix HDMI Audio

B1: Tải [gfxutil](https://github.com/acidanthera/gfxutil/releases) và nhập code sau vào terminal `patch to gfxutil -f HDEF`

![](https://lh5.googleusercontent.com/2AnHbqNDrwEeOVMONErYSRehzJyZQvfb4bKd4DUobxhKvWsfb6MzL5qy3YIsYG5RLpJZsIldYy1NcEcbzhLKTN2avgVZdKgMfbkCWpDlbmz3iBUIBQaKxFp1XgJzFxNPFpU-KyZZ=s0)

B2: Lấy mục vừa được dump từ Terminal

> Ở đây của mình là `PciRoot(0)/Pci(0x1f,3)`&#x20;

B3: Add vào mục `device properties`&#x20;

B4: Tiếp add các patch sau dưới dòng vừa tạo `hda-gfx | STRING | onboard-1`&#x20;

> Đối với clover thì add như hình

![](https://everythingforhackintosher.files.wordpress.com/2021/09/cleanshot-2021-09-11-at-12.30.08.png?w=1024)

B5: Xác định `conX` liên kết với cổng hdmi (xem [tại đây](/connector/patch-connect-type-force-rgb-inject-edid.md#patch-connect-type))

B6: Các bạn mở  `config.plist ⇒ Devices Properties ⇒ PciRoot(0)/Pci(0x02,0)` và add như sau:&#x20;

```
framebuffer-patch-enable | data | 01000000
framebuffer-conX-enable |data | 01000000
framebuffer-conX-type | data | 00080000
framebuffer-conX-pipe | data|12000000
```

> Chỉ add patch `framebuffer-conX-pipe` nếu như  máy của bạn bị restart sau khi được cắm thiết bị `HDMI` vào máy, bạn cần thay đổi giá trị pipe của đầu nối HDMI thành `12` sẽ giúp bạn giải quyết vấn đề này

> Nếu các bạn dùng các cổng kết nối khác thì thay đổi vault của mục framebuffer-conX-type theo bảng sau

![Screen Shot 2021-08-02 at 10.58.50.png](https://raw.githubusercontent.com/king-dragon/image/main/2022/09/03-11-02-35-Screen%20Shot%202021-08-02%20at%2010.58.50.png)

> Các bạn thay chữ `X` thành index của con liên kết với cổng kết nối của các bạn như của mình là `con1`

B7: Save lại và Reboot.&#x20;

> Các source tham khảo: [Cài driver âm thanh, đừng để Hackintosh của bạn im lặng mãi!!!](https://hackintosh.vn/driver-audio#hdmisound) | [Fixing audio with AppleALC | OpenCore Post-Install (dortania.github.io)](https://dortania.github.io/OpenCore-Post-Install/universal/audio.html#making-layout-id-more-permanent) | [Các loại đầu nối vá lỗi | OpenCore Sau cài đặt (dortania.github.io)](https://dortania.github.io/OpenCore-Post-Install/gpu-patching/intel-patching/connector.html)


---

# 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://advance.heavietnam.com/connector/fix-hdmi-audio.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.
