Contribute
Register

Rehabmans CodecCommander.

Status
Not open for further replies.
patch_hda.sh is in many of my github repos.



You need to be in the parent directory of Extract_ALC887...

I have put patch.hda.sh in Extract_ALC887 but I'm getting errors.
 
The idea would be to generate a new kext using those files.
Easy to do:
Code:
cp -R Extract_ALC887 Resources_ALC887
# assuming you have patch_hda.sh in the current directory
./patch_hda.sh ALC887
# result is AppleHDA_ALC887.kext

Right sorry about this mate. I figured it out now :) This it the output now. Two kexts have been made AppleHDA_ALC887.kext, AppleHDAHCD_ALC887.kext and a folder called AppleHDA_ALC887_Resources. Here are the files if you want to check it out.

Code:
Violets-Speedy-Hack:~ JackBamford$ cp -R Extract_ALC887 Resources_ALC887
Violets-Speedy-Hack:~ JackBamford$ ./patch_hda.sh ALC887
Creating AppleHDA_ALC887.kext..../patch_hda.sh: line 31: ./tools/zlib: No such file or directory
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
./patch_hda.sh: line 44: ./tools/zlib: No such file or directory
./patch_hda.sh: line 44: ./tools/zlib: No such file or directory
./patch_hda.sh: line 44: ./tools/zlib: No such file or directory
./patch_hda.sh: line 44: ./tools/zlib: No such file or directory
./patch_hda.sh: line 52: ./tools/zlib: No such file or directory
./patch_hda.sh: line 52: ./tools/zlib: No such file or directory
./patch_hda.sh: line 52: ./tools/zlib: No such file or directory
./patch_hda.sh: line 52: ./tools/zlib: No such file or directory
Done.
Creating AppleHDAHCD_ALC887.kext... Done.
./patch_hda.sh: line 93: ./tools/zlib: No such file or directory
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
./patch_hda.sh: line 103: ./tools/zlib: No such file or directory
./patch_hda.sh: line 103: ./tools/zlib: No such file or directory
./patch_hda.sh: line 103: ./tools/zlib: No such file or directory
./patch_hda.sh: line 103: ./tools/zlib: No such file or directory
Violets-Speedy-Hack:~ JackBamford$
 

Attachments

  • Archive.zip
    5.5 KB · Views: 55
It really depends on whether that data works for you or not.
With this extracted data, you can generate a full AppleHDA injector with patch_hda.sh or you can create the Pinconfig SSDT needed for CodecCommander with gen_ahhcd.sh.

I just installed AppleHDAHCD_ALC887.kext and it appears to be working.
 
I have put patch.hda.sh in Extract_ALC887 but I'm getting errors.

patch_hda.sh should be in the parent of Extract_ALC887.

Right sorry about this mate. I figured it out now :) This it the output now. Two kexts have been made AppleHDA_ALC887.kext, AppleHDAHCD_ALC887.kext and a folder called AppleHDA_ALC887_Resources. Here are the files if you want to check it out.

Code:
Violets-Speedy-Hack:~ JackBamford$ cp -R Extract_ALC887 Resources_ALC887
Violets-Speedy-Hack:~ JackBamford$ ./patch_hda.sh ALC887
Creating AppleHDA_ALC887.kext..../patch_hda.sh: line 31: ./tools/zlib: No such file or directory
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
./patch_hda.sh: line 44: ./tools/zlib: No such file or directory
./patch_hda.sh: line 44: ./tools/zlib: No such file or directory
./patch_hda.sh: line 44: ./tools/zlib: No such file or directory
./patch_hda.sh: line 44: ./tools/zlib: No such file or directory
./patch_hda.sh: line 52: ./tools/zlib: No such file or directory
./patch_hda.sh: line 52: ./tools/zlib: No such file or directory
./patch_hda.sh: line 52: ./tools/zlib: No such file or directory
./patch_hda.sh: line 52: ./tools/zlib: No such file or directory
Done.
Creating AppleHDAHCD_ALC887.kext... Done.
./patch_hda.sh: line 93: ./tools/zlib: No such file or directory
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
./patch_hda.sh: line 103: ./tools/zlib: No such file or directory
./patch_hda.sh: line 103: ./tools/zlib: No such file or directory
./patch_hda.sh: line 103: ./tools/zlib: No such file or directory
./patch_hda.sh: line 103: ./tools/zlib: No such file or directory
Violets-Speedy-Hack:~ JackBamford$

patch_hda.sh script requires zlib to be in a subdirectory named tools.
You really should read a tutorial on the Unix shell...
 
I just installed AppleHDAHCD_ALC887.kext and it appears to be working.

FYI: By using AppleHDAHCD_ALC887.kext, you're only testing the pinconfigs (AppleHDAHardwareConfigDriver.kext data). You are not testing the Platforms/layout XML. AppleHDAHCD_ALC887.kext is a partial injector (only pinconfigs) much like realtekALC.kext. If you were to generate/test AppleHDA_ALC887.kext it would be a full injector test (must restore AppleHDA to vanilla, remove xml/zml patch from config.plist).

And by "working", you mean that the problem you mentioned after sleep is no longer?
 
FYI: By using AppleHDAHCD_ALC887.kext, you're only testing the pinconfigs (AppleHDAHardwareConfigDriver.kext data). You are not testing the Platforms/layout XML.

And by "working", you mean that the problem you mentioned after sleep is no longer?

I removed realtekALC and installed AppleHDAHCD_ALC887.kext to L/E rebooted Audio still works but that No Audio out of sleep has come back when waking up there is no audio but it comes and goes its like the Sound card is taking awhile to wake up if that makes sense?
 
I removed realtekALC and installed AppleHDAHCD_ALC887.kext to L/E rebooted Audio still works

It is because you still have *.zml.zlib files in /S/L/E/AppleHDA.kext/Contents/Resources.
You should test the other XML files... (eg. test AppleHDA_ALC887.kext).
 
It is because you still have *.zml.zlib files in /S/L/E/AppleHDA.kext/Contents/Resources.
You should test the other XML files... (eg. test AppleHDA_ALC887.kext).

Ive tried that too but no Audio. I wondered if that could be because of KextToPatch?
 
patch_hda.sh should be in the parent of Extract_ALC887.



patch_hda.sh script requires zlib to be in a subdirectory named tools.
You really should read a tutorial on the Unix shell...

I have just created ./tools and now I'm getting no errors i am getting this output.

Code:
Violets-Speedy-Hack:~ JackBamford$ cp -R Extract_ALC887 Resources_ALC887
Violets-Speedy-Hack:~ JackBamford$ ./patch_hda.sh ALC887
Creating AppleHDA_ALC887.kext... Done.
Creating AppleHDAHCD_ALC887.kext... Done.
Violets-Speedy-Hack:~ JackBamford$
 
Ive tried that too but no Audio. I wondered if that could be because of KextToPatch?

Keep in mind to use a pure AppleHDA injector, you must remove the xml/zml patch.
(because the files in Resources are *.xml.zlib, not *.zml.zlib).
I'm pretty sure I already mentioned this...

I have just created ./tools and now I'm getting no errors i am getting this output.

Code:
Violets-Speedy-Hack:~ JackBamford$ cp -R Extract_ALC887 Resources_ALC887
Violets-Speedy-Hack:~ JackBamford$ ./patch_hda.sh ALC887
Creating AppleHDA_ALC887.kext... Done.
Creating AppleHDAHCD_ALC887.kext... Done.
Violets-Speedy-Hack:~ JackBamford$

Success.
 
Status
Not open for further replies.
Back
Top