Jump to content
vit9696

AppleALC — dynamic AppleHDA patching

4,879 posts in this topic

Recommended Posts

 
I mean, is this laptop refurbished or new? The report of that OEM Revision i give to you, proof that it was updated too many times by DELL not others. DELL updated the ACPI tables of your laptop many times, not only one or two or three times!
And i told to you to try updating  your bios and see if it can solve your problem, i'm sure you didn't do that. As I told to you, in the same way, after updating the bios, and if not worked, rollback to the first one, and see if problem is solved, then if not, do a flash with the second revision, and continue like that, until we hope bios one can fix it. You have nothing to loose, if you really, like you said "I would like to solve the CPU issue first", would you be mind to try it?
I would love to try it. This laptop is new. But I don't understand how can you know by "you gave to me" OEM revision report…

Sent from my MHA-AL00 using Tapatalk

Share this post


Link to post
Share on other sites
Advertisement
59 minutes ago, twsps said:

I would love to try it. This laptop is new. But I don't understand how can you know by "you gave to me" OEM revision report…

 

I think you don't read all my posts, anyway:

 

Your DSDT laptop

 

Spoiler

500505899_ScreenShot2018-07-11at5_02_01PM.thumb.png.30c6930efece8a7ef8ee280d205f169b.png

 

 

DSDT of my Z97M-DS3H_F7 revision of the latest bios

 

Spoiler

1579353130_ScreenShot2018-07-11at5_11_48PM.thumb.png.4a368a34539258fff0da6b0e4b8947b3.png

 

Now my original Latitude DSDT

 

Spoiler

320966460_ScreenShot2018-07-11at5_41_42PM.thumb.png.ead84988405e15468b2c61aade35a4d5.png

 

 

Edited by ammoune78

Share this post


Link to post
Share on other sites

For your own infos about what i mean here for ACPI-OEM Revision:

 

Spoiler

307529522_ScreenShot2018-07-11at6_14_54PM.png.b322ba1f2b2ff22b38726c10df1dea96.png

 

485717452_ScreenShot2018-07-11at6_16_26PM.png.4eec7ff1d04da44a2111c55d63203aa2.png

 

Share this post


Link to post
Share on other sites

Anyone can tell me why I don't have HDMI working since 10.13.4? I need to rollback to 10.13.3 AppleHDA.kext to get it working.

Share this post


Link to post
Share on other sites
On 7/11/2018 at 11:12 PM, ammoune78 said:

 

Did you tried CodecCommander.kext in \L\E? In my case, if i don't use it, i'll hear to much scratchy noisy sound also.

 

oh! thankyou! headphone slot is no more noise! but internal speaker not working... any idea?

Share this post


Link to post
Share on other sites
42 minutes ago, guliano2 said:

oh! thankyou! headphone slot is no more noise! but internal speaker not working... any idea?

 

In AppleALC info.plist there's a list of supported codec by this kext, and for each one of them, a list of supported layout ids, this can help you try others, if sadly, one doesn't work. In the other side, and in the case of my DELL notebook, I had same problem, you can see that in previous posts, that some patches do things different than others, and @chris1111 suggested to me to try @RehabMan patches, and it worked but with a specific layout id. I'm personally, one from users who like always patching ACPI, if I can do something that will let hardware work by just patching ACPI, i'll go for. In your case maybe not, so try first other layout ids supported by your codec, and check the difference, if good enough go, if not, try updating kexts with the latest, AppleALC and Lilu, i already posted them updated few posts a go. Then if not try patching DSDT or put External HDEF _DSM-SSDT with different layout until you find the matched one.

 

The patch that i use, and for what i give a like, came from @davidm71. One of the favorite thing, you know, is sharing, for me here is one of the good sharing, i always use that patch, so here's:

 

Spoiler

196235352_ScreenShot2018-07-12at5_13_18PM.thumb.png.b9361bde01447683e684254466a72de4.png

 

On 7/9/2018 at 5:24 PM, ammoune78 said:

Here's the latest build of AppleALC 1.3.0 and Lilu 1.2.5:

 

 

AppleALC 1.3.0.zip

Lilu 1.2.5.zip

 

Hhhh, :hysterical: I forgot to say why this patch. For some reason, in some cases and for some codecs, it's better to write the name of the codec id in that patch, why i don't know, but sure in some cases it work for better.

Edited by ammoune78

Share this post


Link to post
Share on other sites
39 minutes ago, davidm71 said:

@ammoune78  What patch? I don't remember!  

 

1 hour ago, ammoune78 said:

 

  Reveal hidden contents

196235352_ScreenShot2018-07-12at5_13_18PM.thumb.png.b9361bde01447683e684254466a72de4.png

 

 

The HDEF patch that you use for your GA-Z87X-UD5H, years a go from PM, we discussed about ACPI, can you remember that? ^_^, I'm still young, i can remember :ihw_wow: :P 

Edited by ammoune78

Share this post


Link to post
Share on other sites
On 7/12/2018 at 1:19 AM, ammoune78 said:

For your own infos about what i mean here for ACPI-OEM Revision:

 

  Reveal hidden contents

307529522_ScreenShot2018-07-11at6_14_54PM.png.b322ba1f2b2ff22b38726c10df1dea96.png

 

485717452_ScreenShot2018-07-11at6_16_26PM.png.4eec7ff1d04da44a2111c55d63203aa2.png

 

Sorry for the late reply,

I tried installing the latest High Sierra 10.13.6 on my Dell Inspiron 13 laptop. Here I attached my Intel Power Gadget and ioreg. I didn't do HDAS->HDEF (doesn't change the situation here).

AppleALC id 28.png

AppleALC id 13.png

AppleALC with id 1(wrong id:no sound).png

Dell Inspiron 13 ioreg.ioreg

Share this post


Link to post
Share on other sites
Spoiler
4 hours ago, twsps said:

@ammoune78 I have updated my BIOS to the latest version. But same issue. Here I attached Power Gadget and ioreg.

ioreg BIOS Updated.ioreg

Updated BIOS (id=13).png

 

 

Man, do a linux dump of your codec, and post it here, IF CHANCE IS WITH YOU, @vandroiy2012 can integrate it in AppleALC!

Edited by ammoune78

Share this post


Link to post
Share on other sites
Spoiler  
 
Man, do a linux dump of your codec, and post it here, IF CHANCE IS WITH YOU, [mention=1069282]vandroiy2012[/mention] can integrate it in AppleALC!
No problem, I'll be glad to do it! Is there a direct guide for me to follow? I don't want to dump something that might not be what the genius here wants!

Thanks

Sent from my Mate 9 using Tapatalk

Share this post


Link to post
Share on other sites
On 2/9/2018 at 8:19 AM, MacPeet said:

 

The first step in a new codec is getting a codec_dump from a Linux live.
Then convert the codec_dump with codecgraph.
Then take the values from verbs.txt and create the PinConfig with PinConfigurator.
Then from codec_dump_dec.txt and codec_dump_dec.txt.svg find the nodes chains and create the files layout??.xml.zlib and Platforms??.xml.zlib.
?? = free layoutID found in AppleALC for your chip type.
 
Take a look at my old german manual!
 
These are just examples, not a solution for everything.
All apps (PinConfigurator, codecgraph,...) can be found there in Tool_Paket_patch_AppleHDA.zip.
Some steps in the manual (binary patch, etc.) are no longer required for AppleALC.
I do not patch AppleHDA anymore. I add layout, Platforms and PinConfig only in AppleALC. My Thread patch AppleHDA is older, but the first steps are always the same.
 
If PinConfig is complete then insert the new entry in "AppleALC-master/Resources/PinConfigs.kext/Contents/Info.plist".
The finished layout??.xml.zlib and Platforms??.xml.zlib you copy into the respective ALC folder in "AppleALC-master/Resources/Folder??".
In this folder edit the "Info.plist" and add new entries for Files/Layouts and Files/Platforms.
 

 

Then compile AppleALC with xcode and try ...

 

Share this post


Link to post
Share on other sites
 

So… the original guide is in German?

Do I follow the below code and upload those generated files here?

cat / proc / asound / card0 / codec # 1> ~ / Desktop / codec_dump.txt or cat / proc / asound / card0 / codec # 0> ~ / Desktop / codec_dump.txt or cat / proc / asound / card1 / codec # 0> ~ / Desktop / codec_dump.txt

 

Sent from my Mate 9 using Tapatalk

 

 

 

 

Share this post


Link to post
Share on other sites
Spoiler
7 minutes ago, twsps said:

So… the original guide is in German?

Do I follow the below code and upload those generated files here?

 



cat / proc / asound / card0 / codec # 1> ~ / Desktop / codec_dump.txt or cat / proc / asound / card0 / codec # 0> ~ / Desktop / codec_dump.txt or cat / proc / asound / card1 / codec # 0> ~ / Desktop / codec_dump.txt
 

 

 

Sent from my Mate 9 using Tapatalk

 

 

 

 

 

 

I think you still need steps until PinConfig, then upload them!

Share this post


Link to post
Share on other sites
On July 7, 2018 at 4:14 PM, Babiloe said:

Hello

i am in Asus U36SD Sandy Bridge using El Capitan in Enoch Bootloader MBR. The sound card is ALC269VB and HDMI audio cougar. With ioreg i saw the layout id is 0c 00 00 00 aka 12. DSDT untouched.

No support for layout id 12 for this ALC269, right. linuxdump in below

 

Usually AppleALC can be used with Clover boot loader with Lilu kext and hdaenabler and layoutid in clover config.

1. Is there any experience using this AppleALC with Enoch boot loader?

   I guess it still need Lilu.kext

   and have Layout id like this? Any add on kext others except AppleALC and lilu?

   

   in com.chameleon.Boot.plist 


	<key>HDAEnabler</key>
	<string>Yes</string>
	<key>HDEFLayoutID</key>
	<string>0c000000</string

 is it needed to also ? kext-dev=1


	<key>Kernel Flags</key>
	<string>-v -f kext-dev-mode=1</string>       
    <key>CsrActiveConfig</key>  
       <string>3</string>

   Any thoughts ?

codec0_dump.txt

codec0_dump3.txt

lspci.txt

 

Its worked with mbr enoch boot loader!

layout 3 by dsdt patches with irq fix, direct layouid to 3 in HDEF.

 

 

 

 

 

 

dsdt.aml

org.chameleon.Boot.plist

Share this post


Link to post
Share on other sites
8 hours ago, ammoune78 said:

 

I finished Step 1 in the German guide (with translate). It seems like the guide is compiling everything, so I'm not sure if I need to do step 2 or not (I'll continue to try). Here I'll first attach my results from step 1.

Thanks.

codecgraph.zip

CodecDump.zip

Share this post


Link to post
Share on other sites

Actually I tried with Step 2, but I'm stuck at binpatch with HDA Wizard 2.0, I don't know what to put in there for my ALC3254 codec. 

p.s. ALC295 is the same as ALC3254.. I believe 

Share this post


Link to post
Share on other sites
44 minutes ago, twsps said:

I finished Step 1 in the German guide (with translate). It seems like the guide is compiling everything, so I'm not sure if I need to do step 2 or not (I'll continue to try). Here I'll first attach my results from step 1.

Thanks.

codecgraph.zip

CodecDump.zip

 

31 minutes ago, twsps said:

Actually I tried with Step 2, but I'm stuck at binpatch with HDA Wizard 2.0, I don't know what to put in there for my ALC3254 codec. 

p.s. ALC295 is the same as ALC3254.. I believe 

 

Ok good, but don't quote me with that. I'm only simple user that love to help you and others, with a little knowledge that i have since years, compared to developers and coders and other advanced users, i don't want to start playing writing their names, it's nothing. But instead, write a gentle request for @vandroiy2012, to add this codecs info into AppleALC, because he do too much work, by maintaining the database up to date. So hoping if he can do it, and if these infos will help you.

Edited by ammoune78

Share this post


Link to post
Share on other sites
On 7/13/2018 at 1:22 AM, ammoune78 said:

 

In AppleALC info.plist there's a list of supported codec by this kext, and for each one of them, a list of supported layout ids, this can help you try others, if sadly, one doesn't work.In the other side, and in the case of my DELL notebook, I had same problem, you can see that in previous posts, that some patches do things different than others, and @chris1111 suggested to me to try @RehabMan patches, and it worked but with a specific layout id. I'm personally, one from users who like always patching ACPI, if I can do something that will let hardware work by just patching ACPI, i'll go for. In your case maybe not, so try first other layout ids supported by your codec, and check the difference, if good enough go, if not, try updating kexts with the latest, AppleALC and Lilu, i already posted them updated few posts a go. Then if not try patching DSDT or put External HDEF _DSM-SSDT with different layout until you find the matched one.

 

The patch that i use, and for what i give a like, came from @davidm71. One of the favorite thing, you know, is sharing, for me here is one of the good sharing, i always use that patch, so here's:

 

  Hide contents

196235352_ScreenShot2018-07-12at5_13_18PM.thumb.png.b9361bde01447683e684254466a72de4.png

 

 

Hhhh, :hysterical: I forgot to say why this patch. For some reason, in some cases and for some codecs, it's better to write the name of the codec id in that patch, why i don't know, but sure in some cases it work for better.

 

Thank you for your answer.

I tried all layout-id in alc298 found in applealc.kext. But all numbers except 29 and 30 do not work. Even so, internal speakers do not work.

here is my ioreg information and generated info.plist by Codec-info.command. (clover config > layout-id > Blank)

 

720s.zip

Share this post


Link to post
Share on other sites
41 minutes ago, guliano2 said:

 

Thank you for your answer.

I tried all layout-id in alc298 found in applealc.kext. But all numbers except 29 and 30 do not work. Even so, internal speakers do not work.

here is my ioreg information and generated info.plist by Codec-info.command. (clover config > layout-id > Blank)

 

720s.zip

 

Your HDEF device here doesn't get loaded at all, because and why posting ioreg with null layout id, it doesn't make sense!

Try this SSDT with the latest AppleALC and Lilu and CodecCommander, and see if it makes differences, if not, then in the SSDT change 1D with 1E (29 to 30) in both layout id and alc layout id. If it doesn't work, you may have to make same thing here like the case of @twsps

I used only MaciASL 1.4 from source forge, the original one, since your laptop support only ACPI 5.0 i believe, if it's Skylake and up, you may have to use RehabMan version ACPI 6.0 or up according to what Manufacturer already used in your laptop!

HDEF-SSDT.aml

HDEF-SSDT.dsl

Edited by ammoune78

Share this post


Link to post
Share on other sites



 
Ok good, but don't quote me with that. I'm only simple user that love to help you and others, with a little knowledge that i have since years, compared to developers and coders and other advanced users, i don't want to start playing writing their names, it's nothing. But instead, write a gentle request for [mention=1069282]vandroiy2012[/mention], to add this codecs info into AppleALC, because he do too much work, by maintaining the database up to date. So hoping if he can do it, and if these infos will help you.


Is AppleHDA Patch(manual) the same as AppleHDA Patcher(the app)?
I need to get this fixed(this is the last problem for my Dell), so I'll try some methods on my own. @vandroiy2012, would you mind to investigate my issue?
Thank you

Sent from my Mate 9 using Tapatalk

Share this post


Link to post
Share on other sites
11 hours ago, ammoune78 said:

 

 

Ok good, but don't quote me with that. I'm only simple user that love to help you and others, with a little knowledge that i have since years, compared to developers and coders and other advanced users, i don't want to start playing writing their names, it's nothing. But instead, write a gentle request for @vandroiy2012, to add this codecs info into AppleALC, because he do too much work, by maintaining the database up to date. So hoping if he can do it, and if these infos will help you.

It seems like I found some hint here.. So I tried with AppleHDA Patcher, and I found out it couldn't recognize my audio chipset (I mean ALC295/3254). So would it be that AppleALC couldn't recognize it's ALC295/3254, so it forced it to load by inject id and that causes high CPU usage from the system? 

These are all my guessing, but I hope to find out some hint here.

AppleHDA Patcher Jarvis.png

Edited by twsps

Share this post


Link to post
Share on other sites
6 hours ago, ammoune78 said:

 

Your HDEF device here doesn't get loaded at all, because and why posting ioreg with null layout id, it doesn't make sense!

Try this SSDT with the latest AppleALC and Lilu and CodecCommander, and see if it makes differences, if not, then in the SSDT change 1D with 1E (29 to 30) in both layout id and alc layout id. If it doesn't work, you may have to make same thing here like the case of @twsps

I used only MaciASL 1.4 from source forge, the original one, since your laptop support only ACPI 5.0 i believe, if it's Skylake and up, you may have to use RehabMan version ACPI 6.0 or up according to what Manufacturer already used in your laptop!

HDEF-SSDT.aml

HDEF-SSDT.dsl

 

sorry about that. i attached ioreg layout-id 30

720s_layout_30.ioreg.zip

Share this post


Link to post
Share on other sites

After using AppleHDA Patcher, I chose to use AppleHDA with Inject id =3 and HDAS to HDEF in order to make it work. Besides there's no sound just like AppleALC with id=3, it also has the same issue as high CPU usage/temp. 

I wonder if manual patch AppleHDA is the same technique as AppleHDA Patcher App.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   1 member

×