Contribute
Register

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

Status
Not open for further replies.
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.

Audio layout-id injection is done by way of SSDT in this guide, not config.plist.
Please follow as written (easy to change the layout-id in the .asl).
If you have an issue, attach PR files, as per FAQ.
 
Finished Mojave upgrade on the 4340s...after running the Atheros kext tool even wifi is working :)

I have a question: i´m thinking in getting a SSD upgrade, should i clone the OSX instalation to it (current drive is dual boot windows 10 and MacOS), or make a fresh install?. Also, should i install the SSD as main drive or in the DVD place? And will clover find the new drive automatically?
 
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.

Note: The guide does not install the FakeSMC sensors by default (they are inefficient). You can install them manually, or use the provided script in tools:
Code:
./tools/install_sensors.sh

The 15 sec delay for sleep is per Apple design. Also, any assertions (check with pmset -g assertions) must be clear.

You will need to describe "Fn keys not working properly" more clearly.

Problem reporting files added.

About "Fn keys not working properly" - when i press Fn + F3 (increase brightness - nothing happens). Fn keys work well for audio (+,-,mute). Also Fn key = alt key (alt key behaves like Fn key, Fn key on keyboard at the moment don't do anything).
 

Attachments

  • debug_29176.zip
    2.2 MB · Views: 50
@RehabMan, your guide is awesome! Mojave works without any problem on 440 G5 (Using with applealc branch). The only thing that it's not working it's brightness (and the trackpad's right click but I suppose this is happening because I didn't choose i2c branch). What files do you need to provide you to fix the brightness?

*I made a clean Mojave install and after that I used your guide, I didn't make any changes.
 
Finished Mojave upgrade on the 4340s...after running the Atheros kext tool even wifi is working :)

I have a question: i´m thinking in getting a SSD upgrade, should i clone the OSX instalation to it (current drive is dual boot windows 10 and MacOS), or make a fresh install?. Also, should i install the SSD as main drive or in the DVD place? And will clover find the new drive automatically?

I would install SSD in main SATA bay.
Fresh install or clone, either will work, your choice.
 
@RehabMan, your guide is awesome! Mojave works without any problem on 440 G5 (Using with applealc branch). The only thing that it's not working it's brightness (and the trackpad's right click but I suppose this is happening because I didn't choose i2c branch). What files do you need to provide you to fix the brightness?

*I made a clean Mojave install and after that I used your guide, I didn't make any changes.
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
Problem reporting files added.

Your current battery is at 98%, not charging, plugged in.
It is a normal condition.
The EC will not commence charging unless the battery level drops below ~92%.

About "Fn keys not working properly" - when i press Fn + F3 (increase brightness - nothing happens). Fn keys work well for audio (+,-,mute). Also Fn key = alt key (alt key behaves like Fn key, Fn key on keyboard at the moment don't do anything).

Alt key should do nothing by itself. It is the "Command" key.
Fn key does nothing by itself, it is used in combination with other keys only.
 
Your current battery is at 98%, not charging, plugged in.
It is a normal condition.
The EC will not commence charging unless the battery level drops below ~92%.



Alt key should do nothing by itself. It is the "Command" key.
Fn key does nothing by itself, it is used in combination with other keys only.

About battery - before updating to Mojave battery status reached 100% when it was fully charged.
But nevermind. What i really willing to fix - brightness adjustment with function keys.

Alt key should do nothing by itself. It is the "Command" key.
Yes, i know that. But now it behaves like Fn key

Fn key does nothing by itself, it is used in combination with other keys only.
Yes, i wasn't talking only about pressing only Fn key.

So, what i want to do:
• enable brightness adjustment with keys combination (function keys)
• remap Fn key on keyboard to behave like real function key (now alt + Fx keys behave like function key)

What i forgot to mention: every time after computer restart i need to redisable hibernation. Why ? :/
sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage
sudo mkdir /var/vm/sleepimage

Also, there is no way to enable sensors to show "real" data from cpu and etc?
 

Attachments

  • debug_6839.zip
    1 MB · Views: 54
Status
Not open for further replies.
Back
Top