Contribute
Register

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

Status
Not open for further replies.
@RehabMan fixed the config.plist, like you said, and the installer worked...however now when i reboot, Clover only shows Windows10, the MacOS entries disappeared...


Edit: figured out i needed apfs.efi from Mojave instalation on drivers64UEFI
 
Last edited:
Although you can use AppleALC with the applealc branch, for the 4x40 (and any other laptop using IDT 76d9) require a version of AppleALC.kext that is not released yet (I fixed a bug in it, it has been accepted, but the prebuilt is not on github yet, and I don't know when a build will appear). You would need to build it from sources.

So, your tasks:
...

And...
- build current AppleALC.kext and install it
OR
- switch to the master branch

I have attached a build of AppleALC.kext that contains the fix for IDT 76d9 to post #1.
 
So I updated my master (been on master this whole time) and noticed 3 files removed from the tools subfolder that your scripts are still utilizing. I did the usual git pull first, then I downloaded all the kexts with ./download.sh next, then when I ran ./install_downloads.sh and that's when the errors started.

When you're switching branches like that, you have to fix the tools directory, because git will remove files from tools that used to be in the repo.
Code:
cd ~/Projects/probook.git/tools
git reset --hard origin/master
cd ..
./download.sh
./install_downloads.sh

Or you can simply remove the tools and run ./download.sh again:
Code:
rm -r tools
./download.sh
./install_downloads.sh

I will probably change the scripts to use _tools instead of tools to avoid this problem.
 
When you're switching branches like that, you have to fix the tools directory, because git will remove files from tools that used to be in the repo.
Code:
cd ~/Projects/probook.git/tools
git reset --hard origin/master
cd ..
./download.sh
./install_downloads.sh

Or you can simply remove the tools and run ./download.sh again:
Code:
rm -r tools
./download.sh
./install_downloads.sh

I will probably change the scripts to use _tools instead of tools to avoid this problem.
Well, that was weird. Much appreciated, now everything's executing without error! :)
 
It is already supported.
Note:
Code:
NUC6i7KYK:probook.git rehabman$ ./install_acpi.sh help|grep -y 4x0.*kabylake-r
install_4x0g5_kabylake-r
NUC6i7KYK:probook.git rehabman$ ls -l config|grep -y 4x0.*kabylake-r
-rwxr-xr-x@ 1 rehabman  staff  13787 Sep 25 16:42 config_4x0_G5_Kabylake-R.plist
Thanks I didn't notice that.
Which branch is the right for my laptop? I think trackpad needs the I2C kext, but you saying the i2c branch is lacking in Mojave support.(I want to put Mojave)
 
Thanks I didn't notice that.
Which branch is the right for my laptop? I think trackpad needs the I2C kext, but you saying the i2c branch is lacking in Mojave support.(I want to put Mojave)

I may try to merge I2C later, but not now (two branches is enough to maintain right now).
So, your choice: go with master or applealc (or test both).
 
I may try to merge I2C later, but not now (two branches is enough to maintain right now).
So, your choice: go with master or applealc (or test both).

Ok, Thank you very much!
 
I will probably change the scripts to use _tools instead of tools to avoid this problem.

Hi, I think that when you did that, you missed a few renames.

In hack-tools/_install_subs.sh at line 21, there is still a reference to the tag command in tools, not in _tools
In the HP-ProBook-4x30s-DSDT-Patch repo, the symlink to mount_efi.sh still points to tools, not to _tools

And an unrelated problem, in the applealc branch the list of essential kexts in install_downloads.sh is unquoted, so only the first kext gets saved to the variable.

When I have fixed these three things in the downloaded repo, everything seems to be going alright so far.
 
Hi, I think that when you did that, you missed a few renames.

In hack-tools/_install_subs.sh at line 21, there is still a reference to the tag command in tools, not in _tools
In the HP-ProBook-4x30s-DSDT-Patch repo, the symlink to mount_efi.sh still points to tools, not to _tools

And an unrelated problem, in the applealc branch the list of essential kexts in install_downloads.sh is unquoted, so only the first kext gets saved to the variable.

When I have fixed these three things in the downloaded repo, everything seems to be going alright so far.

I wasn't quite done, got interrupted...
And I don't have time to visit each project right now and fix, so I backed the change out.
 
No ioreg in your debug zip. Please read "Problem Reporting" carefully and make sure all requested data is in the archive before posting.

Try alternate layout 13 (as per Resources_ProBook/README.txt).

Hey, RehabMan, I changed the layout-id to 13, according to your suggestion, I am at CX20724_HDEF.asl:
Code:
// Mirone version
#define LAYOUT_MIRONE 3

// InsanelyDeepak version
#define LAYOUT_INSANELYDEEPAK 13

#define LAYOUTID 3

// inject properties for audio

    External(_SB.PCI0.HDEF, DeviceObj)
    Method(_SB.PCI0.HDEF._DSM, 4)
    {
        If (!Arg2) { Return (Buffer() { 0x13 } ) }
        Return(Package()
        {
            "layout-id", Buffer(4) { LAYOUTID, 0, 0, 0 },
            "hda-gfx", Buffer() { "onboard-1" },
            "PinConfigurations", Buffer() { },
            "RM,disable_FakePCIID", 1,
        })
    }

// CodecCommander configuration

    Name(_SB.PCI0.HDEF.RMCF, Package()
    {
        "//CodecCommanderProbeInit", Package()
        {
            "Version", 0x020600,
            "14f1_50f4", Package()
            {
                "PinConfigDefault", Package()
                {
                    Package(){},
                    Package()   // alternate Mirone version
                    {
                        "LayoutID", LAYOUT_MIRONE,
                        "PinConfigs", Package()
                        {
                            Package(){},
                            0x16, 0x02211010,
                            0x17, 0x91170020,
                            0x19, 0x02811030,
                            0x1a, 0x90a60040,
                        },
                    },
                    Package()   // InsanelyDeepak version
                    {
                        "LayoutID", LAYOUT_INSANELYDEEPAK,
                        "PinConfigs", Package()
                        {
                            Package(){},
                            0x17, 0x91170110,
                            0x19, 0x048b1030,
                            0x1a, 0x95a00120,
                            0x1d, 0x042b1040,
                        },
                    },
                },
            },
        },
    })

//EOF

Then execute ./build.sh, rebuild aml. Then execute install_acpi.sh, restart the cache and restart to find that the sound card is not able to drive properly. I can't confirm if I modified it correctly, I modify SSDT-8x0G3s.dsl:
Code:
// SSDT for EliteBook 8x0 G3 (Skylake)

DefinitionBlock("", "SSDT", 2, "hack", "_8x0G3s", 0)
{
    #define OVERRIDE_XPEE 1
    #include "SSDT-RMCF.asl"
    #include "SSDT-RP05_PEGP_RDSS.asl"
    #include "SSDT-HACK.asl"
    #include "include/disable_HECI.asl"
    #include "include/key86_PS2K.asl"
    #include "SSDT-KEY102.asl"
    #include "SSDT-USB-8x0-G3.asl"
    #include "SSDT-XHC.asl"
    #include "SSDT-BATT-G4.asl" //REVIEW: using SSDT-BATT-G4 instead of SSDT-BATT-G3
    #include "SSDT-USBX.asl"
    #include "SSDT-USWE.asl"
}
//EOF

Deleted CX20724_HDEF.asl, after rebuilding aml, in config.plist/Devices/Audio/inject=13, then restart the computer. After the test, the speaker and headphone sounds working normally. I can confirm that the layout-id of the 840g3 sound card cx20724 is working properly. 13, I will give you this result and attach my ioreg file, thank you again.
 

Attachments

  • debug_12197.zip
    2 MB · Views: 84
  • ningnan的MacBook Pro.ioreg
    8.5 MB · Views: 148
Status
Not open for further replies.
Back
Top