Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

7 minutes ago, Andres ZeroCross said:

 

Let me know that you do it right. 

1. Set layout ID = 3 with your method (config.plist + alcid=layout) then send the output of your IOREG (use IORegistryExplorer 2.1)
2. Set layout ID = 8 with your method (config.plist + alcid=layout) then send the output of your IOREG (use IORegistryExplorer 2.1)

I need to check,, you make right step or not. 

 

I have attached both dumps from IORegistryExplorer, I had a check under HDEF and it does look like the layout-id is being changed between them. 

 

Thanks again, 

Jamie 

Layout 3 IOREG.ioreg

Layout 7 IOREG.ioreg

Screenshot 2018-11-08 at 11.10.53.png

Screenshot 2018-11-08 at 11.13.28.png

Link to comment
Share on other sites

20 minutes ago, MacPeet said:

 

try AppleALC with current Lilu release
sorry, I have not used the latest source code AppleALC / Lilu yet

 

Thats no problem at all, I set the layout back to 17 from the previous tests and updated to Lilu.kext. However still "No output devices found". 
This is proving to be a stubborn little machine! It would be great for people though if we can get this working, I am speaking with a well know Youtuber too who is going to release a tutorial video as well. 

 

Thanks for all your help so far. 

 

Jamie 

Link to comment
Share on other sites

1 minute ago, jamiec said:

 

Thats no problem at all, I set the layout back to 17 from the previous tests and updated to Lilu.kext. However still "No output devices found". 
This is proving to be a stubborn little machine! It would be great for people though if we can get this working, I am speaking with a well know Youtuber too who is going to release a tutorial video as well. 

 

Thanks for all your help so far. 

 

Jamie 

 

 Did you upload 2 IOREG output with different layout-id that i asked for??? I need to check your configuration

Edited by Andres ZeroCross
Link to comment
Share on other sites

Just now, Andres ZeroCross said:

 

 Did you upload 2 IOREG output with different that i asked for??? I need to check your configuration

 

ZeroCross, I had uploaded the two IOReg dumps on the same post as the screenshots 

 

I quoted the message here for you. 

 

Thanks

Jamie 

 

15 minutes ago, jamiec said:

 

Link to comment
Share on other sites

4 hours ago, etch04 said:

i have tried as mentioned above but my audio devices still not detected. dpcimanager show only Realtek (Unknown). can you please check the attached ioreg dump and dpcimanager screenshot and help me out.

Mike’s MacBook Pro.ioreg

Screenshot 2018-11-08 at 6.44.03 AM.png

 

 

image.thumb.png.ef998fc984e03fb51f203ee7da1b11ad.png

 

I don't see "alc-layout-id" properties at your IOREG of HDEF. And i see Rm-device-id. For what?? It's rehabman hotpatch of SSDT,, it's related to your audio patch. You must remove it or modify it. Insert Alc-layout-id properties

Edited by Andres ZeroCross
Link to comment
Share on other sites

20 minutes ago, jamiec said:

 

ZeroCross, I had uploaded the two IOReg dumps on the same post as the screenshots 

 

I quoted the message here for you. 

 

Thanks

Jamie 

 

 

 

 

image.thumb.png.db71675802fbe2948a57cac00d1353e9.png

 

I don't see any "alc-layout-id" properties inside both of IOREG of HDEF.

Try to set layoutID =7 (because 3 is not anymore at AppleHDA.kext), then add boot argument "alcid=x", x = value at layoutid at Github resource. But always keep layoutid at config.plist = 7, just change alcid value.

Did you understand??? i never use alcid bootargument, i always use alc-layout-id and layout-id at DSDT/SSDT as properties of HDEF. I don't know if alcid boot-argument will make this properties too at HDEF. Maybe we must ask @vit9696

 

 

This is example of ALC283 properties with alc-layout-id = 11 for Acer from SSDT/DSDT. Just keep in mind, just use layout-id=7,, and then use alc-layout-id=x properties to use AppleALC.kext layout id
image.thumb.png.d2d55fae1f3552648c6646ddc61df208.png

Edited by Andres ZeroCross
Link to comment
Share on other sites

5 minutes ago, Andres ZeroCross said:

 

 

image.thumb.png.db71675802fbe2948a57cac00d1353e9.png

 

I don't see any "alc-layout-id" properties inside both of IOREG of HDEF.

Try to set layoutID =7 (because 3 is not anymore at AppleHDA.kext), then add boot argument "alcid=x", x = value at layoutid at Github resource. But always keep layoutid at config.plist = 7, just change alcid value.

Did you understand??? i never use alcid bootargument, i always use alc-layout-id and layout-id at DSDT/SSDT as properties of HDEF. I don't know if alcid boot-argument will make this properties too at HDEF. Maybe we must ask @vit9696

 

I understand, I didn't realise it would need to be alc-layout-id. 

Do you want me to set it to one and upload the IOReg? For example set layoutID=7 and set the bootflag alcid=11?

 

Thanks 

Jamie 

 

Edited by jamiec
Link to comment
Share on other sites

1 minute ago, jamiec said:

 

I understand, I didn't realise it would need to be alc-layout-id. 

Do you want me to set it to one and upload the IOReg? For example set layoutID=3 and set the bootflag alcid=11?

 

Thanks 

Jamie 

 

 

Great,, i am waiting. We will see about those properties. I am waiting. but use layout-id=7,, not 3. Because it's useless for 3. Because layoutid=3 is not anymore at AppleHDA.kext

Edited by Andres ZeroCross
Link to comment
Share on other sites

1 minute ago, jamiec said:

 

Okay, I have done that and attached the dump. 

Thanks again,

Clover Layout 7 alcid 11.ioreg

image.thumb.png.fbc3a450266e033154637f50ab41907f.png

 

There is no alc-layout-id,,, i don't know if alcid boot argument will make this properties or not,,, but for SSDT/DSDT method it will work. I don't know if alcid work from kernel or another method. Can you use SSDT / DSDT method?? Can you upload your CLOVER folder, and make sure there is no additional kext installed at S/L/E or L/E.

Link to comment
Share on other sites

Just now, Andres ZeroCross said:

image.thumb.png.fbc3a450266e033154637f50ab41907f.png

 

There is no alc-layout-id,,, i don't know if alcid boot argument will make this properties or not,,, but for SSDT/DSDT method it will work. I don't know if alcid work from kernel or another method. Can you use SSDT / DSDT method?? Can you upload your CLOVER folder, and make sure there is no additional kext installed at S/L/E or L/E.

 

Okay, I will go and create an SSDT/DSDT. I haven't created one for this machine yet. I will do this and add in alc-layout-id first. I don't have anything in S/L/E or L/E as I have just a clean vanilla install. 

I have attached my clover folder but I will now go and create a DSDT and add in the alc-layout-id that way now and report back. 

 

Thank you for your help, I really appreciate it. 

Jamie 

 

CLOVER-DUMP.zip

Link to comment
Share on other sites

25 minutes ago, jamiec said:

 

Okay, I will go and create an SSDT/DSDT. I haven't created one for this machine yet. I will do this and add in alc-layout-id first. I don't have anything in S/L/E or L/E as I have just a clean vanilla install. 

I have attached my clover folder but I will now go and create a DSDT and add in the alc-layout-id that way now and report back. 

 

Thank you for your help, I really appreciate it. 

Jamie 

 

CLOVER-DUMP.zip

 

Sorry, you need to dump OEM ACPI Table,,, Press F4 at CLOVER GUI. Then i can make configuration for your system (DSDT, SSDT, kext and config.plist). And write detail of your specifications

Link to comment
Share on other sites

1 hour ago, Andres ZeroCross said:

 

Sorry, you need to dump OEM ACPI Table,,, Press F4 at CLOVER GUI. Then i can make configuration for your system (DSDT, SSDT, kext and config.plist). And write detail of your specifications

 

Sorry I didn't notice your reply. I have dumped my ACPI table and patched the DSDT for alc-layout-id. I have tried a couple of layout but nothing seems to work yet. 
I have attached my ioreg dump and Clover Files. 
 

Thank you,

Jamie 

after dsdt.ioreg

LattePanda DSDT CLOVER.zip

  • Thanks 1
Link to comment
Share on other sites

18 hours ago, Andres ZeroCross said:

 

 

image.thumb.png.ef998fc984e03fb51f203ee7da1b11ad.png

 

I don't see "alc-layout-id" properties at your IOREG of HDEF. And i see Rm-device-id. For what?? It's rehabman hotpatch of SSDT,, it's related to your audio patch. You must remove it or modify it. Insert Alc-layout-id properties

yes i am using rehabman hotpatch for SSDT. i am not exactly sure which file i should edit. can you kindly look at the attached file and instruct me on this.

thanks

debug_8994.zip

Link to comment
Share on other sites

15 hours ago, etch04 said:

yes i am using rehabman hotpatch for SSDT. i am not exactly sure which file i should edit. can you kindly look at the attached file and instruct me on this.

thanks

debug_8994.zip

you must inject layout_id properly to get appleALC working 

you must check appleHDA is also loaded , use below command 

kextstat | grep -y hda

 

Link to comment
Share on other sites

3 hours ago, insanelyDeepak said:

you must inject layout_id properly to get appleALC working 

you must check appleHDA is also loaded , use below command 


kextstat | grep -y hda

 

Last login: Sat Nov 10 00:10:26 on console
Mikes-MacBook-Pro:~ mike$ kextstat | grep -y hda
   98    0 0xffffff7f83135000 0x7b000    0x7b000    com.apple.driver.AppleGFXHDA (100.1.23) E0CB2DB4-C552-36CB-9672-E597A1F8E1BA <94 87 80 12 7 6 5 4 3 1>
  113    2 0xffffff7f81f03000 0xc000     0xc000     com.apple.iokit.IOHDAFamily (282.10) A0967E07-616C-337E-865E-858A30592F54 <5 4 3 1>
  114    1 0xffffff7f81f12000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (282.10) 1E3D72E3-0918-39C4-B0E7-4561D7915236 <113 87 80 12 7 6 5 4 3 1>
  136    0 0xffffff7f82095000 0xb7000    0xb7000    com.apple.driver.AppleHDA (282.10) 88DA0A6E-0D1C-3986-8C95-48A020DD5F77 <135 114 113 94 87 80 6 5 4 3 1>
  137    0 0xffffff7f81f31000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (282.10) 8BB2C14E-F2F9-30FF-B635-9A2C31ACEC67 <4 3>

this is the output i get.

 

can you please check the attached screenshot and check the settings i have used. DPCI_Manager does not detect the codec.

 

DPCIManagr.png

clover boot.png

clover devices.png

ioreg.png

Link to comment
Share on other sites

1 hour ago, etch04 said:

Last login: Sat Nov 10 00:10:26 on console
Mikes-MacBook-Pro:~ mike$ kextstat | grep -y hda
   98    0 0xffffff7f83135000 0x7b000    0x7b000    com.apple.driver.AppleGFXHDA (100.1.23) E0CB2DB4-C552-36CB-9672-E597A1F8E1BA <94 87 80 12 7 6 5 4 3 1>
  113    2 0xffffff7f81f03000 0xc000     0xc000     com.apple.iokit.IOHDAFamily (282.10) A0967E07-616C-337E-865E-858A30592F54 <5 4 3 1>
  114    1 0xffffff7f81f12000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (282.10) 1E3D72E3-0918-39C4-B0E7-4561D7915236 <113 87 80 12 7 6 5 4 3 1>
  136    0 0xffffff7f82095000 0xb7000    0xb7000    com.apple.driver.AppleHDA (282.10) 88DA0A6E-0D1C-3986-8C95-48A020DD5F77 <135 114 113 94 87 80 6 5 4 3 1>
  137    0 0xffffff7f81f31000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (282.10) 8BB2C14E-F2F9-30FF-B635-9A2C31ACEC67 <4 3>

this is the output i get.

 

can you please check the attached screenshot and check the settings i have used. DPCI_Manager does not detect the codec.

 

DPCIManagr.png

clover boot.png

clover devices.png

ioreg.png

 

REmove "VoodooI2C.kext, USBPower.kext, AppleBacklightInjector.kext, FakePCIID.kext, VoodooI2CHID.kext, CPUFriend.kext, Lilu.kext, CPUFriendDataProvider.kext, WhateverGreen.kext, AppleALC.kext, FakePCIID_Intel_HDMI_Audio.kext, AirportBrcmFixup.kext, NoTouchID.kext, and HibernationFixup.kext" from Library/Extensions and rebuild kext cache. After that, reupload your debug files. I will help

Link to comment
Share on other sites

1 hour ago, etch04 said:

@Andres ZeroCross

As instructed i have attached the debug files after deleting kext from Library/Extension and rebuilding the kext cache .

 

debug_13285.zip

 

Use this,, remove / Delete CLOVER Folder from EFI,, then paste this ones. And reboot, then let me know for the result.

I make fresh configurations for your system include FN + Brightness button and many thing. For Touchpad i am not sure,, i must ask "did your touchpad work before???" because from your IOREG your Touchpad is not working yet,, and i don't know why _STA at TPD0 is ZERO,, it will disable your TPD0 (Touchpad) if your touchpad use I2C Interface.

Just try it first,, and check your sound. For another problem, just let me know

 

CLOVER.zip

Link to comment
Share on other sites

21 minutes ago, Andres ZeroCross said:

 

Use this,, remove / Delete CLOVER Folder from EFI,, then paste this ones. And reboot, then let me know for the result.

I make fresh configurations for your system include FN + Brightness button and many thing. For Touchpad i am not sure,, i must ask "did your touchpad work before???" because from your IOREG your Touchpad is not working yet,, and i don't know why _STA at TPD0 is ZERO,, it will disable your TPD0 (Touchpad) if your touchpad use I2C Interface.

Just try it first,, and check your sound. For another problem, just let me know

 

CLOVER.zip

i am really grateful for your help. i will try the files provided and report back to you.

and about the trackpad , only basic features like movement and clicking was working, no gesture or multi touch support.

Link to comment
Share on other sites

38 minutes ago, Andres ZeroCross said:

 

Use this,, remove / Delete CLOVER Folder from EFI,, then paste this ones. And reboot, then let me know for the result.

I make fresh configurations for your system include FN + Brightness button and many thing. For Touchpad i am not sure,, i must ask "did your touchpad work before???" because from your IOREG your Touchpad is not working yet,, and i don't know why _STA at TPD0 is ZERO,, it will disable your TPD0 (Touchpad) if your touchpad use I2C Interface.

Just try it first,, and check your sound. For another problem, just let me know

 

CLOVER.zip

i have replace the clover files with the files provided by you, but still no audio devices is detected. i am attaching the debug file for your reference.

in addition the trackpad is completely not working and the FN + Brightness button for changing brightness does not work, but i change Sysytem Prefrences>Display slider.

other than that everything else seems to be fine.

debug_6123.zip

Screenshot 2018-11-10 at 5.14.08 AM.png

Link to comment
Share on other sites

9 minutes ago, etch04 said:

i have replace the clover files with the files provided by you, but still no audio devices is detected. i am attaching the debug file for your reference.

in addition the trackpad is completely not working and the FN + Brightness button for changing brightness does not work, but i change Sysytem Prefrences>Display slider.

other than that everything else seems to be fine.

debug_6123.zip

Screenshot 2018-11-10 at 5.14.08 AM.png

 

 

Just wait,,, i make fix

13 minutes ago, etch04 said:

i have replace the clover files with the files provided by you, but still no audio devices is detected. i am attaching the debug file for your reference.

in addition the trackpad is completely not working and the FN + Brightness button for changing brightness does not work, but i change Sysytem Prefrences>Display slider.

other than that everything else seems to be fine.

debug_6123.zip

Screenshot 2018-11-10 at 5.14.08 AM.png

 

Try this,, i forgot. There is no resource for layout 3 at Github for ALC256. I set layoutid = 13 from SSDT-1.aml. Try this and let me know for the result.

And after reboot, check your touchscreen too

 

CLOVER.zip

Link to comment
Share on other sites

@Andres ZeroCross

finally!! now audio is detected and i can play audio using internal speakers but as soon as i plug in my headphone there is distorted sound for a second and  goes silent. in addition the internal mic is detected but no sound is detected and the trackpad is also still not working.

Edited by etch04
Link to comment
Share on other sites

×
×
  • Create New...