生活随笔
收集整理的這篇文章主要介紹了
macOS如何正确驱动集成显卡HDMI(包括视频和音频)
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
聊聊如何正確驅(qū)動(dòng)集成顯卡HDMI(包括視頻和音頻) 必備條件: 1、必須使用AppleHDA驅(qū)動(dòng)聲卡(仿冒、clover、applealc都可以的),使用voodoo驅(qū)動(dòng)聲卡應(yīng)該不行的。 2、dsdt或者ssdt中關(guān)于集成顯卡的gfx0改為IGPU。
#Maintained by: RehabMan for: Laptop Patches#graphics_Rename-GFX0.txt # Note: Most DSDT/SSDTs use GFX0 for the integrated graphics device,# but there are few renegades that use VID or AGP1.# If your DSDT uses VID or AGP1 instead of GFX0, see the # alternate patch "Rename VID/AGP1 to IGPU" # sometimes there is already IGPU used for other thingsinto_all all code_regex IGPU, replaceall_matched begin IGFX, end; # rename GFX0 -> IGPU for better power managementinto_all all code_regex GFX0\. replaceall_matched begin IGPU. end;into_all all code_regex \.GFX0 replaceall_matched begin .IGPU end;into_all all code_regex \sGFX0, replaceall_matched begin IGPU, end;into_all all code_regex \(GFX0 replaceall_matched begin (IGPU end;into_all all label GFX0 set_label begin IGPU end;into_all all label _SB.PCI0.GFX0 set_label begin _SB.PCI0.IGPU end;into_all all label \_SB.PCI0.GFX0 set_label begin \_SB.PCI0.IGPU end;into_all all label _SB.PCI0.GFX0.DD02 set_label begin _SB.PCI0.IGPU.DD02 end;into_all all label \_SB.PCI0.GFX0.DD02 set_label begin \_SB.PCI0.IGPU.DD02 end;into_all all label ^^^GFX0 set_label begin ^^^IGPU end;into_all all label ^^GFX0 set_label begin ^^IGPU end;into_all all label ^GFX0 set_label begin ^IGPU end; 復(fù)制代碼
3、對(duì)于Haswell/Broadwell集成顯卡:dsdt需要打入補(bǔ)丁 renaming B0D3 to HDAU (device at 0x00030000)
#Maintained by: RehabMan for: Laptop Patches #graphics_Rename-B0D3.txt # for DSDT into method label _WAK code_regex B0D3 replaceall_matched begin HDAU end; into definitionblock code_regex B0D3 replaceall_matched begin HDAU end; # for GFX0 SSDT # Note: Change your layout ID if you need something different # inject "hda-gfx"="onboard-1" into IGPU (GFX0 originally) into method label _DSM parent_adr 0x00020000 remove_entry; into device name_adr 0x00020000 insert begin Method (_DSM, 4, NotSerialized)\n {\n If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n Return (Package()\n {\n "hda-gfx", Buffer() { "onboard-1" },\n })\n }\n end; # inject "hda-gfx"="onboard-1" into HDAU (B0D3 originally) into method label _DSM parent_adr 0x00030000 remove_entry; into device name_adr 0x00030000 insert begin Method (_DSM, 4, NotSerialized)\n {\n If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n Return (Package()\n {\n "layout-id", Buffer() { 12, 0x00, 0x00, 0x00 },\n "hda-gfx", Buffer() { "onboard-1" },\n })\n }\n end; into device label B0D3 set_label begin HDAU end; into method label SBCB code_regex B0D3 replaceall_matched begin HDAU end; 復(fù)制代碼
4、dsdt中,對(duì)于HDAU、IGPU、HDEF三個(gè)裝備注入相同的"hda-gfx" = "onboard-1" or= “onboard-2” 5、對(duì)于Haswell/Broadwell集成顯卡,dsdt中HDAU和HDEF注入的layout id要一致。 6、對(duì)于Haswell集成顯卡還要安裝rehabman的FakePCIID.kext和FakePCIID_Intel_HDMI_Audio.kext 7、最重要的一點(diǎn)是要對(duì)fb(kext)打入恰當(dāng)?shù)难a(bǔ)丁,即要修改連接類(lèi)型(00 04 00 00)為(00 08 00 00)匹配物理連接,此處修改fb結(jié)合自己的ig-platform-id。蘋(píng)果的設(shè)備大多采用DP連接(00 04 00 00),我們大多數(shù)筆記本采用HDMI(00 08 00 00)連接,如果你的是DP連接無(wú)需修改fb。 ig-platform-id:集成顯卡注入的此屬性有以下對(duì)應(yīng)關(guān)系 0x01660003: HD4000 1366x768 0x01660004: HD4000 1600x900, 1920x1080 0x01660008: HD4000 1600x900, 1920x1080 0x01660009: HD4000 1600x900, 1920x1080 0x0a260006: HD4400/HD4600/HD5000 根據(jù)自己集成顯卡注入的ig-platform-id結(jié)合以下信息,選擇正確的補(bǔ)丁打入clover或者二進(jìn)制文件
<key>KextsToPatch</key> <array> <dict> <key>Comment</key> <string>HDMI-audio, port 0105(12), 0x0a2e0008, 0x0a16000c, 0x0a2e000d, 0x0a26000d</string> <key>Disabled</key> <true/> <key>Find</key> <data> AQUJAAAEAAAHAQAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AQUSAAAIAAAHAQAA </data> </dict> <dict> <key>Comment</key> <string>HDMI-audio, port 0204, 0x0d220003, 0x0a2e000a, 0x0a26000a</string> <key>Disabled</key> <true/> <key>Find</key> <data> AgQKAAAEAACHAAAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AgQKAAAIAACHAAAA </data> </dict> <dict> <key>Comment</key> <string>HDMI-audio, port 0204, 0x0a2e0008, 0x0a16000c, 0x0a2e000d, 0x0a26000d</string> <key>Disabled</key> <true/> <key>Find</key> <data> AgQJAAAEAAAHAQAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AgQJAAAIAAAHAQAA </data> </dict> <dict> <key>Comment</key> <string>HDMI-audio, port 0105, 0x0a2e0008, 0x0a16000c, 0x0a2e000d, 0x0a26000d</string> <key>Disabled</key> <true/> <key>Find</key> <data> AQUJAAAEAAAHAQAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AQUJAAAIAAAHAQAA </data> </dict> <dict> <key>Comment</key> <string>HDMI-audio, port 0204(12), 0x0d220003, 0x0a2e000a, 0x0a26000a</string> <key>Disabled</key> <true/> <key>Find</key> <data> AgQKAAAEAACHAAAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AgQSAAAIAACHAAAA </data> </dict> <dict> <key>Comment</key> <string>HDMI-audio, port 0204, 0x0a260005 0x0a260006</string> <key>Disabled</key> <true/> <key>Find</key> <data> AgQJAAAEAACHAAAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AgQJAAAIAACHAAAA </data> </dict> <dict> <key>Comment</key> <string>HDMI-audio, port 0105(12), 0x0a260005 0x0a260006, 0x0d220003, 0x0a2e000a, 0x0a26000a</string> <key>Disabled</key> <true/> <key>Find</key> <data> AQUJAAAEAACHAAAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AQUSAAAIAACHAAAA </data> </dict> <dict> <key>Comment</key> <string>HDMI-audio, port 0204(12), 0x0a260005 0x0a260006</string> <key>Disabled</key> <true/> <key>Find</key> <data> AgQJAAAEAACHAAAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AgQSAAAIAACHAAAA </data> </dict> <dict> <key>Comment</key> <string>HDMI-audio, port 0105, 0x0a260005 0x0a260006, 0x0d220003, 0x0a2e000a, 0x0a26000a</string> <key>Disabled</key> <true/> <key>Find</key> <data> AQUJAAAEAACHAAAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AQUJAAAIAACHAAAA </data> </dict> <dict> <key>Comment</key> <string>HDMI-audio, port 0204(12), 0x0a2e0008, 0x0a16000c, 0x0a2e000d, 0x0a26000d</string> <key>Disabled</key> <true/> <key>Find</key> <data> AgQJAAAEAAAHAQAA </data> <key>Name</key> <string>AppleIntelFramebufferAzul</string> <key>Replace</key> <data> AgQSAAAIAAAHAQAA </data> </dict> </array> 復(fù)制代碼
此文來(lái)源于rehabman大神,原帖參考:[guide]Intel IGPU HDMI/DP audio:http://www.tonymacx86.com/threads/guide-intel-igpu-hdmi-dp-audio-sandy-ivy-haswell-broadwell.189495/
轉(zhuǎn)載于:https://www.cnblogs.com/motoyang/p/6226174.html
總結(jié)
以上是生活随笔 為你收集整理的macOS如何正确驱动集成显卡HDMI(包括视频和音频) 的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
如果覺(jué)得生活随笔 網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔 推薦給好友。