Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

 
Sorry for late reply. I did everything from scratch, dumped codec from arch linux, calculated pin configs, added codec and rebuilt.
Here the result;
Resources + IOReg: applealc_cx8150_troubleshooting.zip
Screenshot:
2040759060_Screenshot2018-11-11at22_32_46.thumb.png.7e2a749f65c3415b96d77ad90231c062.png
 
I don't know what's your problem?? You take a long time to reply. I am forget about your problem. Try to reply more quick to get response

Sent from my Mi Note 2 using Tapatalk

Link to comment
Share on other sites

33 minutes ago, Andres ZeroCross said:

I don't know what's your problem?? You take a long time to reply. I am forget about your problem. Try to reply more quick to get response

Sent from my Mi Note 2 using Tapatalk
 

 

Ok, i'll reply as fast as possible this time :D

I got a new laptop "Asus VivoBook Pro 15", Installed Both Mojave and High Sierra and tried to make audio working.

I got my audio codec from Arch Linux and Ubuntu and tried to add my codec, and till now I couldn't succeed.

There is no audio output/input.

Link to comment
Share on other sites

 

Ok, i'll reply as fast as possible this time

I got a new laptop "Asus VivoBook Pro 15", Installed Both Mojave and High Sierra and tried to make audio working.

I got my audio codec from Arch Linux and Ubuntu and tried to add my codec, and till now I couldn't succeed.

There is no audio output/input.

1. Move all additional kexts to Efi/clover/kexts/other

2. Rebuilt kextcache

3. Open terminal and type "sudo kextcache -i /" and save the terminal output

4. Open IOregistryExplorer version 2.1 and save the ouput

5. Press F4 at GUI Clover to dump oem acpi table

6. Upload clover folder

7. Zip all requirement file and upload here.

 

Sent from my Mi Note 2 using Tapatalk

 

 

 

Link to comment
Share on other sites

11 minutes ago, Andres ZeroCross said:

1. Move all additional kexts to Efi/clover/kexts/other

2. Rebuilt kextcache

3. Open terminal and type "sudo kextcache -i /" and save the terminal output

4. Open IOregistryExplorer version 2.1 and save the ouput

5. Press F4 at GUI Clover to dump oem acpi table

6. Upload clover folder

7. Zip all requirement file and upload here.

 

Sent from my Mi Note 2 using Tapatalk

 

 

 

 

I did all steps you said, Here the result:1873496708_Screenshot2018-11-12at00_46_19.thumb.png.e9ea45350981b31d3ef63026a5c3d3ba.png

CLOVER.zip

applealc_cx8150_troubleshooting.zip

Link to comment
Share on other sites

 
I did all steps you said, Here the result:1873496708_Screenshot2018-11-12at00_46_19.thumb.png.e9ea45350981b31d3ef63026a5c3d3ba.png
CLOVER.zip
applealc_cx8150_troubleshooting.zip
Ok, i just wait. Need to see the attachment

Sent from my Mi Note 2 using Tapatalk

18 minutes ago, Justin Spier said:

 

I did all steps you said, Here the result:1873496708_Screenshot2018-11-12at00_46_19.thumb.png.e9ea45350981b31d3ef63026a5c3d3ba.png

CLOVER.zip

applealc_cx8150_troubleshooting.zip

 

 

There is no output log for "sudo kextcache -i /"

Did you really read my comment above??

Link to comment
Share on other sites

11 minutes ago, Andres ZeroCross said:

Ok, i just wait. Need to see the attachment

Sent from my Mi Note 2 using Tapatalk
 

 

 

There is no output log for "sudo kextcache -i /"

Did you really read my comment above??

 

I did, and what i got from that command was just the kernel cache id! nothing more!
 

Link to comment
Share on other sites

 
I did, and what i got from that command was just the kernel cache id! nothing more!
 
Ok, thats mean there is no additional kext at your system. Did your touchpad works right now?? Because i need to check first. I will make new configuration. There is too many hot patch of acpi to your system. And some of those patch won't work because missing dependency.

Sent from my Mi Note 2 using Tapatalk

Link to comment
Share on other sites

1 minute ago, Andres ZeroCross said:

Ok, thats mean there is no additional kext at your system. Did your touchpad works right now?? Because i need to check first. I will make new configuration. There is too many hot patch of acpi to your system. And some of those patch won't work because missing dependency.

Sent from my Mi Note 2 using Tapatalk
 

 

I'm sure, everything works fine :) except audio and wifi. (And i Know the wifi card will never works.)

Link to comment
Share on other sites

12 hours ago, Justin Spier said:

 

I'm sure, everything works fine :) except audio and wifi. (And i Know the wifi card will never works.)

 

Try this,, after that. Send me codec_dump.txt

I must recheck my configuration twice,, after reach desktop send me IOREG output and your codec_dump.txt for CX8150

 

Edited by Andres ZeroCross
Link to comment
Share on other sites

24 minutes ago, Andres ZeroCross said:

 

Try this,, after that. Send me codec_dump.txt

I must recheck my configuration twice,, after reach desktop send me IOREG output and your codec_dump.txt for CX8150

CLOVER.zip

 

Thanks for your time dude! And the result:

1. it takes a long time to boot, it stucked at "busy time out" (This come because of my sata hdd, I always face to this without Unsupported-sata.kext)

2. and then faced me to the famous message "IOConsoleUser..." that comes because of DGPU as I think. 

3. and I have no choice except holding power button, and then using my usb EFI.

 

 

And the codec dump is here.

dump.txt

Link to comment
Share on other sites

11 hours ago, Justin Spier said:

 

Thanks for your time dude! And the result:

1. it takes a long time to boot, it stucked at "busy time out" (This come because of my sata hdd, I always face to this without Unsupported-sata.kext)

2. and then faced me to the famous message "IOConsoleUser..." that comes because of DGPU as I think. 

3. and I have no choice except holding power button, and then using my usb EFI.

 

 

And the codec dump is here.

dump.txt

 

Try this,, i make wrong patch before about NVME. Your system boots from NVME device, not SATA. I checked your IOREG. And i compiled New AppleALC.kext with layoutid=21 for CX8150. I set it to new CLOVER Folder configuration. Try it and let me know for the result. Don't forget to send IOREG after reach desktop screen

 

Edited by Andres ZeroCross
Link to comment
Share on other sites

39 minutes ago, Andres ZeroCross said:

 

Try this,, i make wrong patch before about NVME. Your system boots from NVME device, not SATA. I checked your IOREG. And i compiled New AppleALC.kext with layoutid=21 for CX8150. I set it to new CLOVER Folder configuration. Try it and let me know for the result. Don't forget to send IOREG after reach desktop screen

CLOVER.zip

 

:( Same as the last config, with a small difference: delay by "busy timeout ... `ETPD`" and "IOCons..." again.

I tried out the AppleALC.kext with my current clover folder and it didn't work. (I didn't forgot to change `HDEF` scope)

Link to comment
Share on other sites

 

 Same as the last config, with a small difference: delay by "busy timeout ... `ETPD`" and "IOCons..." again.

I tried out the AppleALC.kext with my current clover folder and it didn't work. (I didn't forgot to change `HDEF` scope)

Did you use a whole clover configuration??? Never mix it, and make sure there is no additional kext at L/E and S/L/E. That's the reason i need to see the kextcache ouput from terminal. But you don't give it.

 

If there is ETPD error, then it mean you mix my configuration with your another ssdt before.

 

Like i said, just use my Clover folder and don't add anything

 

Sent from my Mi Note 2 using Tapatalk

 

 

 

Link to comment
Share on other sites

5 minutes ago, Andres ZeroCross said:

Did you use a whole clover configuration??? Never mix it, and make sure there is additional kext at L/E and S/L/E. That's the reason i need to see the kextcache ouput from terminal. But you don't give it.

Sent from my Mi Note 2 using Tapatalk
 

 

Dude, Thanks again, but I'm a Linux Developer and expert enough to avoid doing such a simple mistakes.

Yes, I replaced the whole directory at first and got that messages and couldn't reach the desktop, then I migrate back to my own clover directory, changed the HDEF scope with your provided DSDT.aml, added your provided AppleALC and got no audio. :(

Link to comment
Share on other sites

 
Dude, Thanks again, but I'm a Linux Developer and expert enough to avoid doing such a simple mistakes.
Yes, I replaced the whole directory at first and got that messages and couldn't reach the desktop, then I migrate back to my own clover directory, changed the HDEF scope with your provided DSDT.aml, added your provided AppleALC and got no audio.
Ok, maybe you should give file as requested.

Provide kextcache output from terminal.

Sent from my Mi Note 2 using Tapatalk

Link to comment
Share on other sites

Just now, Andres ZeroCross said:

Ok, maybe you should give file as requested.

Provide kextcache output from terminal.

Sent from my Mi Note 2 using Tapatalk
 

 

Trust me :D I have nothing in my /L/E and /S/L/E except macOS original kexts.

I always add kexts to clover.

1604542744_Screenshot2018-11-12at04_45_02.thumb.png.5bb9175b5e816cc8749656b4c5a27a76.png

Let's just focus on AppleALC and codec.

Link to comment
Share on other sites

And something else ... I know there is some mistakes in my clover setup, and it's not complete yet.

But someone with a VivoBook series laptop has the same clover setup as mine, and he could make the audio working :| The only difference is that his laptop uses CX8050 :|

Edited by Justin Spier
Link to comment
Share on other sites

2 minutes ago, Andres ZeroCross said:

CX8050 and CX8150 use different node id for the output device

Yeah, CX8150 has one more node (node: 17<->29). I meant the problem couldn't be from clover configs.

Edited by Justin Spier
Link to comment
Share on other sites

27 minutes ago, Justin Spier said:

Yeah, CX8150 has one more node (node: 17<->29). I meant the problem couldn't be from clover configs.

 

Use these kexts.

Just use layoutid=21,,, i sent 2 version of the kexts. And every you test it,, send me the IOREG output for each version.

I can't help much, because you said you can't boot my clover folder. It's strange, really strange. Because i build many hackintosh and never get miss about acpi patch. Like i said before,,, my CLOVER folder must not mix with any single files. But you used CLOVER folder without mix anything. 

 

Your default config is really wrong,, you put HDEF properties from Devices -> properties too at config.plist and make same properties too with SSDT-HDEF.aml. You can try it again with my CLOVER folder. Need screenshot (photo) of stuck if it's happened again
CLOVER.zip

1.3.4 (RELEASE) LAYOUT21 V2.zip

1.3.4 (RELEASE) LAYOUT21 V1.zip

Edited by Andres ZeroCross
Link to comment
Share on other sites

40 minutes ago, Justin Spier said:

Yeah, CX8150 has one more node (node: 17<->29). I meant the problem couldn't be from clover configs.

 

Check this image,, you set GPIOPin 0x55 but the GPIOPin is not shown at ETPD properties at IOREG,, and for Interrupt specifier 0x5f, you must set GPIOPin must be set to 0x47 as per guide. It's just for one of another "strange"patch. There is other strange configuration too about HDEF properties too like i said before. Maybe i am wrong,, but as long as learn hackintosh this is duplicate and can make strange problem or wrong result/

 

image.thumb.png.ca26536d5b4d1eba4557b87b67f69963.png

Link to comment
Share on other sites

12 hours ago, Andres ZeroCross said:

Just use layoutid=21,,, i sent 2 version of the kexts. And every you test it,, send me the IOREG output for each version.

I did a fresh install, edited my config.plist and SSDT-HDEF.aml, tested both and the result is here: troubleshooting.zip

 

12 hours ago, Andres ZeroCross said:
13 hours ago, Justin Spier said:

 

 

Check this image,, you set GPIOPin 0x55 but the GPIOPin is not shown at ETPD properties at IOREG,, and for Interrupt specifier 0x5f, you must set GPIOPin must be set to 0x47 as per guide. It's just for one of another "strange"patch. There is other strange configuration too about HDEF properties too like i said before. Maybe i am wrong,, but as long as learn hackintosh this is duplicate and can make strange problem or wrong result/

You are right, But my setup is correct too :D It's not our fault as I know, I talked with Alexandre, new asus laptops specially (VivoBook and ZenBook series) have serious issues, VoodooI2C does not work with Pin 0x0047. :|

All I know who own these series set 0x0055:

https://github.com/hieplpvip/ASUS-ZENBOOK-HACKINTOSH

https://github.com/tctien342/Asus-Vivobook-S510UA-High-Sierra-10.13-Hackintosh

 

Link to comment
Share on other sites

You are right, But my setup is correct too  It's not our fault as I know, I talked with Alexandre, new asus laptops specially (VivoBook and ZenBook series) have serious issues, VoodooI2C does not work with Pin 0x0047. 
All I know who own these series set 0x0055:
https://github.com/hieplpvip/ASUS-ZENBOOK-HACKINTOSH
https://github.com/tctien342/Asus-Vivobook-S510UA-High-Sierra-10.13-Hackintosh
 
Ok, just focus to the AppleALC.kext right now

Sent from my Mi Note 2 using Tapatalk

Link to comment
Share on other sites

@vandroiy2012

 

This is final resource for ALC255 for Asus X441UA-WX096D. It's confirmed. I use layout = 21
1. Internal Speaker and Internal Mic
2. Headphone and External Mic
3. Internela mic / external Mic and Internal Speaker / Headphone still works after Sleep

I attach neccesary files and compiled AppleALC.kexts.
 

 

To make internal microphone and function after sleep, you need to install CodecCommander.kexts to Library/Extensions and and add this patch inside HDEF device,

 

          Name(RMCF, Package()
             {
                "CodecCommander", 
                Package (0x0A)
                {
                    "Custom Commands", 
                    Package (0x04)
                    {
                        Package (0x00){}, 
                        Package (0x08)
                        {
                            "Command", 
                            Buffer (0x04)
                            {
                                 0x01, 0x97, 0x07, 0x24                           // ...$
                            }, 

                            "On Init", 
                            ">y", 
                            "On Sleep", 
                            ">n", 
                            "On Wake", 
                            ">y"
                        }, 

                        Package (0x08)
                        {
                            "Command", 
                            Buffer (0x04)
                            {
                                 0x01, 0xA7, 0x07, 0x24                           // ...$
                            }, 

                            "On Init", 
                            ">y", 
                            "On Sleep", 
                            ">n", 
                            "On Wake", 
                            ">y"
                        }, 

                        Package (0x08)
                        {
                            "Command", 
                            Buffer (0x04)
                            {
                                 0x02, 0x17, 0x08, 0x83                           // ....
                            }, 

                            "On Init", 
                            ">y", 
                            "On Sleep", 
                            ">n", 
                            "On Wake", 
                            ">y"
                        }
                    }, 

                    "Perform Reset", 
                    ">n", 
                    "Perform Reset on External Wake", 
                    ">n", 
                    "Send Delay", 
                    0x0A, 
                    "Sleep Nodes", 
                    ">n"
                }
            })

 

New Resource ALC255 - ID = 21.zip

AppleALC.kext.zip

Link to comment
Share on other sites

×
×
  • Create New...