Contribute
Register

Lenovo T560 Post Installation

Status
Not open for further replies.
Okay I tried to use your script without success

My script requires uncompressed plist files.
If you have xml.zlib files, you need to extract the raw xml (as plist) from them.
You can use the zlib script to do it (the zlib script is in my project files).
An understanding of the AppleHDA patching basics is required.

so I tried to used Mirone AppleHDA Patcher with the data that I've extracted from the AppleALC project (Layout29.xml.zlib, Platforms.xml.zlib and Info.plist (attached)) without success. The application fails to create the aDummyAppleHDA.kext. A binpatch file and a hdaconfig file are missing, but I don't know how to create them.

You should refer to Mirone's instructions.
I have never used it.
 
My script requires uncompressed plist files.
If you have xml.zlib files, you need to extract the raw xml (as plist) from them.
You can use the zlib script to do it (the zlib script is in my project files).
An understanding of the AppleHDA patching basics is required.

I will stick with your script. Still one file is missing, how am I supposed to create an 'ahhcd.plist'?
Do you know any guide or how it is supposed to be created?
 
I will stick with your script. Still one file is missing, how am I supposed to create an 'ahhcd.plist'?
Do you know any guide or how it is supposed to be created?

Look at the example ahhcd.plist files in the various github projects.
It is data from patched AppleHDAHardwareConfigDriver.kext/Content/Info.plist.
 
Look at the example ahhcd.plist files in the various github projects.
It is data from patched AppleHDAHardwareConfigDriver.kext/Content/Info.plist.
I'm not sure to understand.. So in order to get to patch my AppleHDA I need to fill an ahhcd.plist?
But the data from ahhcd.plist comes from a patched AppleHDAHardwareConfigDriver.kext (which is in AppleHDA.kext/Content/Plugins)

I must be missing something
 
I'm not sure to understand.. So in order to get to patch my AppleHDA I need to fill an ahhcd.plist?
But the data from ahhcd.plist comes from a patched AppleHDAHardwareConfigDriver.kext (which is in AppleHDA.kext/Content/Plugins)

I must be missing something

AppleHDAHardwareConfigDriver.kext/Contents/Info.plist is patched so it contains the patched pinconfig data required by your audio codec. The script expects to find that data in ahhcd.plist so it can properly create the Info.plist with the pinconfig data.

If you're trying to borrow data from AppleALC, look at PinConfigs.kext/Contents/Info.plist for the required data.
 
AppleHDAHardwareConfigDriver.kext/Contents/Info.plist is patched so it contains the patched pinconfig data required by your audio codec. The script expects to find that data in ahhcd.plist so it can properly create the Info.plist with the pinconfig data.

If you're trying to borrow data from AppleALC, look at PinConfigs.kext/Contents/Info.plist for the required data.
Alright I could generate my AppleHDA_ALC293.kext but I am not sure of what to do next! I installed the kext in S/L/E and changed my layout to 29 using a DSDT patch. I do need to change something in my config.plist is this right ?
 
Alright I could generate my AppleHDA_ALC293.kext but I am not sure of what to do next! I installed the kext in S/L/E and changed my layout to 29 using a DSDT patch. I do need to change something in my config.plist is this right ?

You also need the appropriate KextsToPatch entries for AppleHDA in your config.plist.
 
You also need the appropriate KextsToPatch entries for AppleHDA in your config.plist.
How to know what entries do I need to add? Can I get them from what I extracted from AppleALC?
 
How to know what entries do I need to add? Can I get them from what I extracted from AppleALC?

It depends on which patch codec you're planning to use.
I use patch-hda.pl.
Say you were using patch codec 0x11d41984:
Code:
NUC6i7KYK:patch-hda rehabman$ ./patch-hda.pl -x 0x10ec0293 0x11d41984
OSX version 10.13.1 detected
Default target codec: 10ec0233 detected.
Patching AppleHDA codec 11d41984 with 10ec0293
1 codec range comparison(s) to patch
<?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>Name</key>
                <string>AppleHDA</string>
                <key>Comment</key>
                <string>Expect 2 matches; 0x10ec0885 to 0x00000000</string>
                <key>Find</key>
                <data>hQjsEA==</data>
                <key>Replace</key>
                <data>AAAAAA==</data>
            </dict>
            <dict>
                <key>Name</key>
                <string>AppleHDA</string>
                <key>Comment</key>
                <string>Expect 2 matches; 0x11d41984 to 0x10ec0293</string>
                <key>Find</key>
                <data>hBnUEQ==</data>
                <key>Replace</key>
                <data>kwLsEA==</data>
            </dict>
        </array>
    </dict>
</dict>
</plist>
 
It depends on which patch codec you're planning to use.
I use patch-hda.pl.
How do I get to choose the best codec patch? Where can I find the 'real' patch-hda.pl? (I'm not sure this is the one, and the link in the script is dead)

Say you were using patch codec 0x11d41984:
Code:
NUC6i7KYK:patch-hda rehabman$ ./patch-hda.pl -x 0x10ec0293 0x11d41984
OSX version 10.13.1 detected
Default target codec: 10ec0233 detected.
Patching AppleHDA codec 11d41984 with 10ec0293
1 codec range comparison(s) to patch
<?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>Name</key>
                <string>AppleHDA</string>
                <key>Comment</key>
                <string>Expect 2 matches; 0x10ec0885 to 0x00000000</string>
                <key>Find</key>
                <data>hQjsEA==</data>
                <key>Replace</key>
                <data>AAAAAA==</data>
            </dict>
            <dict>
                <key>Name</key>
                <string>AppleHDA</string>
                <key>Comment</key>
                <string>Expect 2 matches; 0x11d41984 to 0x10ec0293</string>
                <key>Find</key>
                <data>hBnUEQ==</data>
                <key>Replace</key>
                <data>kwLsEA==</data>
            </dict>
        </array>
    </dict>
</dict>
</plist>
So I tried with what this, and it works! However I'm not sure the sound quality (speakers) is as good as before, but I do believe that this is because of the codec patch (correct me if I'm wrong)! Thanks for the help
 
Status
Not open for further replies.
Back
Top