Contribute
Register

[Guide] HP ProBook/EliteBook/Zbook using Clover UEFI hotpatch (10.11)

Status
Not open for further replies.
Thank you, but I prefer to use the headphones rather than playing with installs and reinstalls.

I guess you'll have to wait for someone else willing to put forth an effort.
 
I did not lose the sound going from El Capitan to Sierra, I clean installed Sierra and had functional sound till last update.

Go back to previous Sierra version to verify.
You could also try 10.13 just to see if it is corrected later, or broken there too.
Probably something is not quite right with the XML.
It is for those with the laptop to investigate a fix.
 
Hi RehabMan in OS-X-Clover-Laptop-Config-master there are two config-plist files for HD620, which one should I use when installing OS X ?
 
Hi RehabMan in OS-X-Clover-Laptop-Config-master there are two config-plist files for HD620, which one should I use when installing OS X ?

Open the file in a plist editor.
Read the comment at the top.
 
Open the file in a plist editor.
Read the comment at the top.
Used spoof.plist though final config.plist am still getting the old plist
 
Used spoof.plist though final config.plist am still getting the old plist

I have not made any changes to the ProBook repo for native KBL support in 10.12.6+.
Such changes need to be made manually, as you already did.

If I remember right, the changes needed would be:
Code:
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"

Essentially:
- FakeCPUID not needed
- inject KabyLake ig-platform-id 0x59160000
- don't inject fake IGPU device-id
- enable HDMI audio with "hda-gfx" and patch for 0105 port

That would make the KabyLake support in this github/guide specific to 10.12.6+... which I'm not opposed to.
It would mean someone that wanted anything prior to 10.12.6 (including 10.11.x) to re-instate the SKL spoofing.

For install, you can use 'spoof' or non-spoof... it really doesn't matter as both will get you to the installer.
 
Last edited:
I have not made any changes to the ProBook repo for native KBL support in 10.12.6+.
Such changes need to be made manually, as you already did.

If I remember right, the changes needed would be:


For install, you can use 'spoof' or non-spoof... it really doesn't matter as both will get you to the installer.
Thanks did it manually and all is well
 
Thanks did it manually and all is well

By "did it manually", you mean you applied the changes I mentioned, then followed post #1?

I have that ready to commit, I guess I could commit to 'beta' branch and make a note in post #1 regarding, "SKL spoof" in master (for now) and "native KBL" in beta.
 
@RehabMan: There are the files as requested. You know, noticed such messages on my desktop too. You know, most people won't ever see those, because unlike them, I use the -v flag constantly (I like the see the verbose output). Even with those messages, I haven't seen any suspicious behavior so far, everything seems to work fine, at least on my desktop.
Removed the EFI/Apple folder too, presuming you won't need it as well (16MB of firmware-related files).
 

Attachments

  • ProBook430G3_data.zip
    1.6 MB · Views: 58
Status
Not open for further replies.
Back
Top