diff --git a/Patches.xcodeproj/project.pbxproj b/Patches.xcodeproj/project.pbxproj
index 0f0bfaa..34dcdb3 100644
--- a/Patches.xcodeproj/project.pbxproj
+++ b/Patches.xcodeproj/project.pbxproj
@@ -126,6 +126,7 @@
ED824E1F1CCFC46D00EFDDF2 /* config_ZBook_G0.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = config_ZBook_G0.plist; path = config/config_ZBook_G0.plist; sourceTree = "<group>"; };
ED841A011ED636A800A0B6BB /* xhc_pmee.asl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = xhc_pmee.asl; path = hotpatch/include/xhc_pmee.asl; sourceTree = "<group>"; };
ED841A021ED637AB00A0B6BB /* SSDT-RMCF.asl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "SSDT-RMCF.asl"; path = "hotpatch/SSDT-RMCF.asl"; sourceTree = "<group>"; };
+ ED89CD261F393FDC00D752F9 /* config_Kabylake_hdmi_audio.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = config_Kabylake_hdmi_audio.plist; path = config_parts/config_Kabylake_hdmi_audio.plist; sourceTree = "<group>"; };
ED8D01121E18596D009A8C63 /* SSDT-USB-ZBook-G3.asl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "SSDT-USB-ZBook-G3.asl"; path = "hotpatch/SSDT-USB-ZBook-G3.asl"; sourceTree = "<group>"; };
ED8D01131E185D62009A8C63 /* SSDT-ZBook-G3-Skylake.dsl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "SSDT-ZBook-G3-Skylake.dsl"; path = "hotpatch/SSDT-ZBook-G3-Skylake.dsl"; sourceTree = "<group>"; };
ED8D4ED41E9C39C700F87978 /* SSDT-IGPU.dsl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "SSDT-IGPU.dsl"; path = "hotpatch/SSDT-IGPU.dsl"; sourceTree = "<group>"; };
@@ -496,8 +497,9 @@
ED97E9211CC755BE006C757A /* config_Broadwell.plist */,
ED407DA61CF4FC8B00A03010 /* config_Broadwell_hdmi_audio.plist */,
ED97E9251CC755BE006C757A /* config_Skylake.plist */,
- 84F681FD1E74D52C0097D85D /* config_Kabylake.plist */,
ED407DA51CF4FC8B00A03010 /* config_Skylake_hdmi_audio.plist */,
+ 84F681FD1E74D52C0097D85D /* config_Kabylake.plist */,
+ ED89CD261F393FDC00D752F9 /* config_Kabylake_hdmi_audio.plist */,
ED97E9261CC755BE006C757A /* config_CX20724.plist */,
84F681FE1E74D62A0097D85D /* config_CX8200.plist */,
ED97E9271CC755BE006C757A /* config_ALC280.plist */,
diff --git a/config_parts/config_Kabylake.plist b/config_parts/config_Kabylake.plist
index 8b5fcc8..82fece4 100644
--- a/config_parts/config_Kabylake.plist
+++ b/config_parts/config_Kabylake.plist
@@ -4,9 +4,9 @@
<dict>
<key>KernelAndKextPatches</key>
<dict>
- <key>#Kaby Lake-Comment</key>
+ <key>#SKL spoof-Comment</key>
<string>Kaby Lake CPU supportable by using CPUID from Skylake</string>
- <key>FakeCPUID</key>
+ <key>#FakeCPUID</key>
<string>0x0506e3</string>
</dict>
</dict>
diff --git a/config_parts/config_Kabylake_hdmi_audio.plist b/config_parts/config_Kabylake_hdmi_audio.plist
new file mode 100755
index 0000000..016c188
--- /dev/null
+++ b/config_parts/config_Kabylake_hdmi_audio.plist
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>KernelAndKextPatches</key>
+ <dict>
+ <key>KextsToPatch</key>
+ <array>
+ <dict>
+ <key>Comment</key>
+ <string>HDMI-audio, port 0105, 0x59160000</string>
+ <key>Disabled</key>
+ <false/>
+ <key>Name</key>
+ <string>com.apple.driver.AppleIntelKBLGraphicsFramebuffer</string>
+ <key>Find</key>
+ <data>AQUJAAAEAACHAQAA</data>
+ <key>Replace</key>
+ <data>AQUJAAAIAACHAQAA</data>
+ </dict>
+ <dict>
+ <key>Comment</key>
+ <string>HDMI-audio, port 0204, 0x59160000</string>
+ <key>Disabled</key>
+ <true/>
+ <key>Name</key>
+ <string>com.apple.driver.AppleIntelKBLGraphicsFramebuffer</string>
+ <key>Find</key>
+ <data>AgQKAAAEAACHAQAA</data>
+ <key>Replace</key>
+ <data>AgQKAAAIAACHAQAA</data>
+ </dict>
+ </array>
+ </dict>
+</dict>
+</plist>
diff --git a/hotpatch/SSDT-IGPU.dsl b/hotpatch/SSDT-IGPU.dsl
index 8d88361..3c2ea97 100644
--- a/hotpatch/SSDT-IGPU.dsl
+++ b/hotpatch/SSDT-IGPU.dsl
@@ -128,19 +128,23 @@ DefinitionBlock ("", "SSDT", 2, "hack", "igpu", 0)
0x5916, 0, Package()
{
"model", Buffer() { "Intel HD Graphics 620" },
- "device-id", Buffer() { 0x1b, 0x19, 0x00, 0x00 },
- //"hda-gfx", Buffer() { "onboard-1" },
- "AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x1b, 0x19 },
- "AAPL,GfxYTile", Buffer() { 1, 0, 0, 0 },
+ //SKL spoof: "device-id", Buffer() { 0x1b, 0x19, 0x00, 0x00 },
+ //"device-id", Buffer() { 0x16, 0x59, 0x00, 0x00 },
+ "hda-gfx", Buffer() { "onboard-1" },
+ //SKL spoof: "AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x1b, 0x19 },
+ "AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x16, 0x59 },
+ //SKL spoof: "AAPL,GfxYTile", Buffer() { 1, 0, 0, 0 },
},
// Kaby Lake/HD630
0x5912, 0x591b, 0, Package()
{
"model", Buffer() { "Intel HD Graphics 630" },
- "device-id", Buffer() { 0x1b, 0x19, 0x00, 0x00 },
- //"hda-gfx", Buffer() { "onboard-1" },
- "AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x1b, 0x19 },
- "AAPL,GfxYTile", Buffer() { 1, 0, 0, 0 },
+ //SKL spoof: "device-id", Buffer() { 0x1b, 0x19, 0x00, 0x00 },
+ //"device-id", Buffer() { 0x1b, 0x59, 0x00, 0x00 },
+ "hda-gfx", Buffer() { "onboard-1" },
+ //SKL spoof: "AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x1b, 0x19 },
+ "AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x16, 0x59 },
+ //SKL spoof: "AAPL,GfxYTile", Buffer() { 1, 0, 0, 0 },
},
})
diff --git a/hotpatch/include/layout20_HDEF.asl b/hotpatch/include/layout20_HDEF.asl
index b5450ab..105a6ae 100644
--- a/hotpatch/include/layout20_HDEF.asl
+++ b/hotpatch/include/layout20_HDEF.asl
@@ -9,6 +9,7 @@
"layout-id", Buffer(4) { 20, 0, 0, 0 },
"hda-gfx", Buffer() { "onboard-1" },
"PinConfigurations", Buffer() { },
+ "RM,disable_FakePCIID", 1, //SKL spoof: remove or set zero
})
}
diff --git a/make_config.sh b/make_config.sh
index e280891..5d9064b 100755
--- a/make_config.sh
+++ b/make_config.sh
@@ -210,5 +210,6 @@ cp config_parts/config_master.plist config/config_4x0s_G4_Kabylake.plist
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" config_parts/config_Skylake.plist config/config_4x0s_G4_Kabylake.plist
./merge_plist.sh "KernelAndKextPatches:KernelToPatch" config_parts/config_Skylake.plist config/config_4x0s_G4_Kabylake.plist
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" config_parts/config_Skylake_hdmi_audio.plist config/config_4x0s_G4_Kabylake.plist
+./merge_plist.sh "KernelAndKextPatches:KextsToPatch" config_parts/config_Kabylake_hdmi_audio.plist config/config_4x0s_G4_Kabylake.plist
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" config_parts/config_CX8200.plist config/config_4x0s_G4_Kabylake.plist
printf "\n"
diff --git a/makefile b/makefile
index 5d87bcb..c14beae 100644
--- a/makefile
+++ b/makefile
@@ -488,8 +488,8 @@ config/config_1040_G3_Skylake.plist : $(PARTS)/config_master.plist $(PARTS)/conf
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" $(PARTS)/config_CX20724.plist $@
@printf "\n"
-# ProBook_4x0s_G4_Kabylake is CX8200, Kabylake (Skylake graphics spoofed), HDMI
-config/config_4x0s_G4_Kabylake.plist : $(PARTS)/config_master.plist $(PARTS)/config_CX20724.plist $(PARTS)/config_Skylake.plist $(PARTS)/config_Skylake_hdmi_audio.plist
+# ProBook_4x0s_G4_Kabylake is CX8200, Kabylake (or spoofed Skylake), HDMI
+config/config_4x0s_G4_Kabylake.plist : $(PARTS)/config_master.plist $(PARTS)/config_CX20724.plist $(PARTS)/config_Skylake.plist $(PARTS)/config_Kabylake.plist $(PARTS)/config_Kabylake_hdmi_audio.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AsusAICPUPM false" $@
@@ -498,6 +498,7 @@ config/config_4x0s_G4_Kabylake.plist : $(PARTS)/config_master.plist $(PARTS)/con
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" $(PARTS)/config_Skylake.plist $@
./merge_plist.sh "KernelAndKextPatches:KernelToPatch" $(PARTS)/config_Skylake.plist $@
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" $(PARTS)/config_Skylake_hdmi_audio.plist $@
+ ./merge_plist.sh "KernelAndKextPatches:KextsToPatch" $(PARTS)/config_Kabylake_hdmi_audio.plist $@
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" $(PARTS)/config_CX8200.plist $@
@printf "\n"