Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

1 hour ago, momenmahmoud7 said:

is there any tutorial or steps ?

 

 

1. Get Xcode

2. Go to Xcode -> Preferences -> Locations

3. Set Derived Data to Relative like in the screenshot below. This will create a DerivedData folder inside your kext source folder and will make it easier to find the resulting kext file after compiling.

 

1918699431_Screenshot2018-10-21at23_36_35.png.1f179d4c7942f218ad6406be395a0c64.png

 

4. Download BOTH Lilu sources and AppleALC sources, unzip them and place them somewhere handy (Desktop for example).

5. Compile Lilu first (double click the Lilu.xcodeproj file from Lilu-master folder to load it in Xcode, and click the Play button on the top panel to start compiling).

Make sure there are no errors and the build is completed successfully.

 

424783973_Screenshot2018-10-21at23_46_37.thumb.png.2e90632039fe3c7fd6a80c18f9f89e28.png

 

6. Go to /Lilu-master/DerivedData/Lilu/Build/Products/Debug

7. Rename the existing Lilu.kext into anything else you want, such as Lilu_release.kext

8. Unzip the 1.2.x (DEBUG).zip file

9. Copy-paste the resulting debug kext into the root of the AppleALC-master folder

10. Compile AppleALC (the same way you compiled Lilu)

11. Go to /AppleALC-master/DerivedData/AppleALC/Build/Products/Debug

12. Copy-paste the AppleALC.kext (NOT debug) into /Clover/kexts/Other alongside Lilu_release.kext from point 7 (you can rename it to Lilu.kext if you want).

 

Reboot and enjoy.

 

 

Edited by arsradu
  • Like 2
Link to comment
Share on other sites

54 minutes ago, arsradu said:

 

1. Get Xcode

2. Go to Xcode -> Preferences -> Locations

3. Set Derived Data to Relative like in the screenshot below. This will create a DerivedData folder inside your kext source folder and will make it easier to find the resulting kext file after compiling.

 

1918699431_Screenshot2018-10-21at23_36_35.png.1f179d4c7942f218ad6406be395a0c64.png

 

4. Download BOTH Lilu sources and AppleALC sources, unzip them and place them somewhere handy (Desktop for example).

5. Compile Lilu first (double click the Lilu.xcodeproj file from Lilu-master folder to load it in Xcode, and click the Play button on the top panel to start compiling).

Make sure there are no errors and the build is completed successfully.

 

424783973_Screenshot2018-10-21at23_46_37.thumb.png.2e90632039fe3c7fd6a80c18f9f89e28.png

 

6. Go to /Lilu-master/DerivedData/Lilu/Build/Products/Debug

7. Rename the existing Lilu.kext into anything else you want, such as Lilu_release.kext

8. Unzip the 1.2.x (DEBUG).zip file

9. Copy-paste the resulting debug kext into the root of the AppleALC-master folder

10. Compile AppleALC (the same way you compiled Lilu)

11. Go to /AppleALC-master/DerivedData/AppleALC/Build/Products/Debug

12. Copy-paste the AppleALC.kext (NOT debug) into /Clover/kexts/Other alongside Lilu_release.kext from point 7 (you can rename it to Lilu.kext if you want).

 

Reboot and enjoy.

 

 

thank you very much it works 

  • Like 1
Link to comment
Share on other sites

So I upgraded to Mojave from a working High Sierra install on my laptop, a Dell Inspiron 11 3153  As far as audio, I have working headphones, working internal mic but the internal speakers are not outputting any sound.  Newest AppleALC.kext and Lilu.kext were installed, Layout 3 injected in config.plist.  I tried adding CodecCommander.kext as well but still not working.  Any ideas on what I can do next?  I attached problem reporting files to assist.  Audio is Conexant CX20722.

debug_4841.zip

 

 

I did notice this, but it doesnt make sense to me or if its relevant

cat /Users/brian/Desktop/16408/debug_16408/kernel_log.txt | grep "ALC"

2018-10-22 12:10:09.049261-0700 0x429 Default 0x0 0 0 kernel: (Lilu) AppleALC: alc @ invalid CodecID 0 or LayoutID 0 at entry 107, pinconfigs are broken

Edited by thesuffering
Link to comment
Share on other sites

My notebook is Lenovo Y430P 1920*1080P i7 HD 4600, sound card ALC282, APPLEALC all layout-id have been tried, can not be used normally, so I extracted codec, analyze pathmap, make layout myself, although the last The sound can be used normally, but there is still a little flaw, that is, when the machine is turned on, turned off, and hibernated, the machine will always emit a short noise, and the sound is quite loud, so ask for help here, see what the big brothers are helping.

 

this my add applealc layout pinconfig

 

https://github.com/loverto/AppleALC

Link to comment
Share on other sites

On 9/27/2018 at 4:35 PM, Ravenstein said:

Problem: Audio on mute, symbol on menubar not correct for ALC285 (should be speaker only, w/o brackets), although mute (use Fn) does display mute on-screen. It seems mute key not working for the menu bar symbol, but it did mute sound.

 

Reporting:

1. Laptop model/Motherboard model    : X1 Carbon 6th 
2. Codec name                                 :  ALC285 (Rover Realtek ALC285 for X1C6th)
3. Layout used                                  :  11 
4. OS X versions you tried                  :  10.13.2
5. Autogenerated Info.plist                 :  (attached)

 

Thanks for your support! 

Info.plist

 

@insanelyDeepak, @MacPeet, @jaymonkey

Could anyone help? thank!

 

@insanelyDeepak, @MacPeet, @jaymonkey

Could anyone help? thank! 

if any further info needed to debug, please let me know.

Link to comment
Share on other sites

Hi, I have Conexant CX20642 which is not working.

 

Reporting:

1. Laptop model/Motherboard model   : FUJITSU Celcius W410 - MB: D3062
2. Codec name                                  : Conexant CX20642
3. Layout used                                  : ?
4. OS X versions you tried                  : 10.13.6
5. Autogenerated Info.plist                 : (attached)

 

Any other info needed?

Info.plist

 

In the boot.log I go following message:

 

AppleALC:    alc  @ alc-layout-id was not provided by controller at HDEF

 

(Perhaps my DSDT is faulty?)

Edited by big bartl
Link to comment
Share on other sites

On 10/17/2018 at 1:21 AM, vit9696 said:

@insanelyDeepak, from the screen it is obvious that your DSDT (?) is absolutely insane, as you inject a mad amount of unneeded properties to your HDMI audio device instead of your GPU device. So it is literally genuine garbage, and borked bootup is expected. Please fix your GPU setup accordingly to properly written manuals (e.g. the ones on applelife).

Hi yes

DSDT Patches were created by PJALM and exist in it repo too, can you link me to there , im not on apple life forum 

On 10/25/2018 at 2:21 PM, Ravenstein said:

 

@insanelyDeepak, @MacPeet, @jaymonkey

Could anyone help? thank! 

if any further info needed to debug, please let me know.

post codec dump 

Link to comment
Share on other sites

@insanelyDeepak With ALC256 (Combo jack), I'm having the following problem with AppleALC and CodecCommander using layout-id 13 and SSDT-InsanelyDeepak from the CodecCommander repo:

Quote

Audio doesn't work after waking up from sleep. I have to re-insert headphones to get the audio output working. However, audio input doesn't work unless I reboot.

 

I also have some other minor issues, but this one is most severe. I've tried modifying the SSDT but it doesn't work.

codec_dump.txt

Link to comment
Share on other sites

4 hours ago, insanelyDeepak said:

Hi yes

DSDT Patches were created by PJALM and exist in it repo too, can you link me to there , im not on apple life forum 

post codec dump 

Ugh, noticed that you have GT 210, while the issue still holds, I do not think there is an up to date manual for anything below Kepler on applelife.

Furthermore, I am not sure whether GT 210 works without injecting properties, so it is the matter of either reverting the GPU patches entirely (you would have done that for Kepler and newer) and leaving the things to NVIDIA drivers and WhateverGreen, or actually fixing up them.

 

I believe what you could try first is booting without without the GPU patches, and if it fails, using Clover's NVIDIA Inject might work best for this hardware.

Link to comment
Share on other sites

20 hours ago, vit9696 said:

Ugh, noticed that you have GT 210, while the issue still holds, I do not think there is an up to date manual for anything below Kepler on applelife.

Furthermore, I am not sure whether GT 210 works without injecting properties, so it is the matter of either reverting the GPU patches entirely (you would have done that for Kepler and newer) and leaving the things to NVIDIA drivers and WhateverGreen, or actually fixing up them.

 

I believe what you could try first is booting without without the GPU patches, and if it fails, using Clover's NVIDIA Inject might work best for this hardware.

i see, leave it , it's most cheapest card for hackintosh and don't work in Mojave so better to stay off 

Quote

I believe what you could try first is booting without without the GPU patches, and if it fails, using Clover's NVIDIA Inject might work best for this hardware.


no extra workaround is required just inject Nvidia works OOB for this card 

 

Thank you 

Link to comment
Share on other sites

23 hours ago, Muntashir said:

@insanelyDeepak With ALC256 (Combo jack), I'm having the following problem with AppleALC and CodecCommander using layout-id 13 and SSDT-InsanelyDeepak from the CodecCommander repo:

I also have some other minor issues, but this one is most severe. I've tried modifying the SSDT but it doesn't work.

codec_dump.txt

will look 

  • Like 1
Link to comment
Share on other sites

I'm on macOS Mojave right now. ALC283 - Laptop (Dell 7537)
I'm currently using AppleALC.kext inside Clover->Kexts->Others
Inside Clover->config.plist I have tried various layout IDs using alcid=*whatever the layout id is*. However, there is an issue which is as follows.
 
With layout-id 3/11/66, both, internal speakers and headphones work. However, through headphones, the audio sounds like an echo with mostly music and hardly any vocals. Internal speakers work fine though.
 
With layout-id 1/2- Headphones sound perfect (without any echo like sound or distortion). however, internal speakers (my laptop speakers) don't work at all. And sound properties inside System->Preferences shows Headphones even after I unplug them. Basically internal speakers output device doesn't show at all.
 
What should I do?
Edited by JoeMaya
Link to comment
Share on other sites

@insanelyDeepak  

I'm on macOS Mojave right now using Acer Swift 3 with Realtek ALC256. i have tried using AppleALC kext by inject layout it 11,13 & 56 but my device is not being detected. both applealc and codec commander kext are loaded successfully but still no device detected .can you please check the attached code dump and tell me if my layout is different from the Dell laptops? if so, what do i have to do get it working.
Thanks.

CodecDump.zip

Link to comment
Share on other sites

2 minutes ago, etch04 said:

@insanelyDeepak  

I'm on macOS Mojave right now using Acer Swift 3 with Realtek ALC256. i have tried using AppleALC kext by inject layout it 11,13 & 56 but my device is not being detected. both applealc and codec commander kext are loaded successfully but still no device detected .can you please check the attached code dump and tell me if my layout is different from the Dell laptops? if so, what do i have to do get it working.
Thanks.

CodecDump.zip

 

What your method to inject layout id??? DSDT or config.plist ones?

Link to comment
Share on other sites

Hi,

isit possible to add support for ALC 271X on Mojave? It worked till High Sierra, but layout 7 and 31 have been removed from AppleHDA.

Is it possible to readd them?

I’m running an ACER Aspire V3 771G (Mali). 

 

Edited by ppzoid
Link to comment
Share on other sites

On 10/30/2018 at 6:49 AM, JoeMaya said:
I'm on macOS Mojave right now. ALC283 - Laptop (Dell 7537)
I'm currently using AppleALC.kext inside Clover->Kexts->Others
Inside Clover->config.plist I have tried various layout IDs using alcid=*whatever the layout id is*. However, there is an issue which is as follows.
 
With layout-id 3/11/66, both, internal speakers and headphones work. However, through headphones, the audio sounds like an echo with mostly music and hardly any vocals. Internal speakers work fine though.
 
With layout-id 1/2- Headphones sound perfect (without any echo like sound or distortion). however, internal speakers (my laptop speakers) don't work at all. And sound properties inside System->Preferences shows Headphones even after I unplug them. Basically internal speakers output device doesn't show at all.
 
What should I do?

Can someone help me?

Link to comment
Share on other sites

3 hours ago, JoeMaya said:

Can someone help me?

 

Try to use this,,, put it at your external SSDT or modify it to your DSDT.. I get it from Rehabman's codec commander repository at Github. Don't forget to install CodecCommander at Library/Extensions

 

DefinitionBlock ("", "SSDT", 1, "hack", "ALC283", 0)
{
    External(_SB.PCI0.HDEF, DeviceObj)
    Name(_SB.PCI0.HDEF.RMCF, Package()
    {
        "CodecCommander", Package()
        {
            "Custom Commands", Package()
            {
                Package(){}, // signifies Array instead of Dictionary
                Package()
                {
                    // 0x19 SET_PIN_WIDGET_CONTROL 0x25
                    "Command", Buffer() { 0x01, 0x97, 0x07, 0x25 },
                    "On Init", ">y",
                    "On Sleep", ">n",
                    "On Wake", ">y",
                },
                Package()
                {
                    // 0x21 SET_UNSOLICITED_ENABLE 0x83
                    "Command", Buffer() { 0x02, 0x17, 0x08, 0x83 },
                    "On Init", ">y",
                    "On Sleep", ">n",
                    "On Wake", ">y",
                },
            },
            "Perform Reset", ">n",
            "Perform Reset on External Wake", ">n",
            "Send Delay", 10,
            "Sleep Nodes", ">n",
        },
    })
}

 

Edited by Andres ZeroCross
  • Thanks 1
Link to comment
Share on other sites

2 hours ago, Andres ZeroCross said:

Worked like a charm! :O

Try to use this,,, put it at your external SSDT or modify it to your DSDT.. I get it from Rehabman's codec commander repository at Github. Don't forget to install CodecCommander at Library/Extensions

 


DefinitionBlock ("", "SSDT", 1, "hack", "ALC283", 0)
{
    External(_SB.PCI0.HDEF, DeviceObj)
    Name(_SB.PCI0.HDEF.RMCF, Package()
    {
        "CodecCommander", Package()
        {
            "Custom Commands", Package()
            {
                Package(){}, // signifies Array instead of Dictionary
                Package()
                {
                    // 0x19 SET_PIN_WIDGET_CONTROL 0x25
                    "Command", Buffer() { 0x01, 0x97, 0x07, 0x25 },
                    "On Init", ">y",
                    "On Sleep", ">n",
                    "On Wake", ">y",
                },
                Package()
                {
                    // 0x21 SET_UNSOLICITED_ENABLE 0x83
                    "Command", Buffer() { 0x02, 0x17, 0x08, 0x83 },
                    "On Init", ">y",
                    "On Sleep", ">n",
                    "On Wake", ">y",
                },
            },
            "Perform Reset", ">n",
            "Perform Reset on External Wake", ">n",
            "Send Delay", 10,
            "Sleep Nodes", ">n",
        },
    })
}

 

 

Link to comment
Share on other sites

×
×
  • Create New...