wern apfel Posted August 3, 2017 Author Share Posted August 3, 2017 I think that's too much, you just need a few of it. If you upload your ioreg, I can see why it does not work. IORegistryexplorer Link to comment Share on other sites More sharing options...
Naundob Posted August 3, 2017 Share Posted August 3, 2017 I think that's too much, you just need a few of it. If you upload your ioreg, I can see why it does not work. IORegistryexplorer Thank you, that's very kind (once again). What was that trick again to keep sound after sleep/wake? ioreg.zip Link to comment Share on other sites More sharing options...
wern apfel Posted August 3, 2017 Author Share Posted August 3, 2017 Thank you, that's very kind (once again). What was that trick again to keep sound after sleep/wake? It is not recommended to use a DSDT from another system, try the DSDT from here by MaLd0n, if it doesn't work upload your untouched DSDT. For sound after sleep uncheck ResetHDA. Link to comment Share on other sites More sharing options...
joevt Posted August 4, 2017 Share Posted August 4, 2017 Any advise how to get sound over the nvidia hdmi as well?Nvidia audio is probably off topic here but it is an HDA device, so it relates to AppleHDA, VoodooHDA, AppleALC. There are some interesting things to note: 1) Nvidia graphics card (Maxwell or Pascal) may have 5 ports, but only 4 can be connected to a display. The 5th display must be disabled. Windows can detect all 5 and you choose which display to disable. 2) Nvidia graphics cards can output audio to any of the 5 ports, up to 4. Windows Nvidia driver let's you select which outputs to activate. It can get confused when you plug in 4 or 5 displays though. Ubuntu seems to handle Nvidia audio ok, but some of that is not open source. There might be some info in the alsa driver code anyway. The problem is, there's no documentation describing how to connect one of the 4 audio outputs to one of the 5 ports. The information from the HDA gives no hint how that is done. I don't think the Mac drivers handle this, so some ports might not show an audio device in that case. Link to comment Share on other sites More sharing options...
wern apfel Posted August 4, 2017 Author Share Posted August 4, 2017 It is not recommended to use a DSDT from another system, try the DSDT from here by MaLd0n, if it doesn't work upload your untouched DSDT. For sound after sleep uncheck ResetHDA. Audio after wake up should work with this CodecCommander. CodecCommander.kext_sleep.zip Nvidia audio is probably off topic here but it is an HDA device, so it relates to AppleHDA, VoodooHDA, AppleALC. There are some interesting things to note: 1) Nvidia graphics card (Maxwell or Pascal) may have 5 ports, but only 4 can be connected to a display. The 5th display must be disabled. Windows can detect all 5 and you choose which display to disable. 2) Nvidia graphics cards can output audio to any of the 5 ports, up to 4. Windows Nvidia driver let's you select which outputs to activate. It can get confused when you plug in 4 or 5 displays though. Ubuntu seems to handle Nvidia audio ok, but some of that is not open source. There might be some info in the alsa driver code anyway. The problem is, there's no documentation describing how to connect one of the 4 audio outputs to one of the 5 ports. The information from the HDA gives no hint how that is done. I don't think the Mac drivers handle this, so some ports might not show an audio device in that case. From my experience you need the HDAU device with the "hda-gfx = onboard-x" entries, nVidia card also needs the entry "@x,connector-type" @your HDMI port. The DSDT, which has been edited by MaLd0n, has all the needed entries and much more, especially cosmetic fixes. I expect that it will work without all the SSDTs. Here is a new CA0132Tool, which is more or less an ugly debug tool. You will have different behaviours with different layouts. It would be cool if you test fake Surround, you should have audio output on all jacks with 2 channel files, choose the first line-out. I've still have no 5,1 Speakers. It's written in Objective-C, Swift makes really big files. CA0132ToolC.zip Link to comment Share on other sites More sharing options...
Naundob Posted August 4, 2017 Share Posted August 4, 2017 It is not recommended to use a DSDT from another system, try the DSDT from here by MaLd0n, if it doesn't work upload your untouched DSDT. For sound after sleep uncheck ResetHDA. I tried DSDT from MaLd0n which did nothing (at least regarding hdmi), then I used the his whole clover folder (except my SMBIOS settings) which made hdmi show up in system profile (pic). But no sound at all anymore, no front hp, no hdmi. Tried to set audio layout to 5 in clover but I guess there's an overwrite by the DSDT.aml - it kept the MaLd0n setting of 1. http://i.imgur.com/TzetNf5.png?1 I generated an unpatched DSDT.aml like you suggested. Audio after wake up should work with this CodecCommander. CodecCommander.kext_sleep.zip From my experience you need the HDAU device with the "hda-gfx = onboard-x" entries, nVidia card also needs the entry "@x,connector-type" @your HDMI port. The DSDT, which has been edited by MaLd0n, has all the needed entries and much more, especially cosmetic fixes. I expect that it will work without all the SSDTs. Here is a new CA0132Tool, which is more or less an ugly debug tool. You will have different behaviours with different layouts. It would be cool if you test fake Surround, you should have audio output on all jacks with 2 channel files, choose the first line-out. I've still have no 5,1 Speakers. It's written in Objective-C, Swift makes really big files. ca0132tool.pngCA0132ToolC.zip ResetHDA was already unchecked in my config.plist. Does this CodecCommander.kext replace the one I just installed with your suggested audio solution? I mean I have already one installed in S/L/E. Do I have to delete the old one first and then install THIS one with Kext Utility? I just want to do it the right way. Thank you! DSDT.aml.zip Link to comment Share on other sites More sharing options...
wern apfel Posted August 4, 2017 Author Share Posted August 4, 2017 I tried DSDT from MaLd0n which did nothing (at least regarding hdmi), then I used the his whole clover folder (except my SMBIOS settings) which made hdmi show up in system profile (pic). But no sound at all anymore, no front hp, no hdmi. Tried to set audio layout to 5 in clover but I guess there's an overwrite by the DSDT.aml - it kept the MaLd0n setting of 1. http://i.imgur.com/TzetNf5.png?1 I generated an unpatched DSDT.aml like you suggested. ResetHDA was already unchecked in my config.plist. Does this CodecCommander.kext replace the one I just installed with your suggested audio solution? I mean I have already one installed in S/L/E. Do I have to delete the old one first and then install THIS one with Kext Utility? I just want to do it the right way. Thank you! Until now i've only made a few changes in MaLd0ns DSDT, try it out and upload a new IOReg. Install the CodecCommander kext with the KextUtility, it will replace the old kext. DSDT.aml.zip Link to comment Share on other sites More sharing options...
Naundob Posted August 4, 2017 Share Posted August 4, 2017 Until now i've only made a few changes in MaLd0ns DSDT, try it out and upload a new IOReg. Install the CodecCommander kext with the KextUtility, it will replace the old kext. DSDT.aml.zip Nice! Should I replace only the DSDT.aml and keep all those SSDT files in my patched folder? MaLd0ns had none of those files in his folder at all. I don't know if it makes a difference, just asking. Link to comment Share on other sites More sharing options...
wern apfel Posted August 4, 2017 Author Share Posted August 4, 2017 Nice! Should I replace only the DSDT.aml and keep all those SSDT files in my patched folder? MaLd0ns had none of those files in his folder at all. I don't know if it makes a difference, just asking. Remove them all, the DSDT does the same. Link to comment Share on other sites More sharing options...
anor4k Posted August 4, 2017 Share Posted August 4, 2017 Hi everyone, I've been trying to set up audio on my new Gigabyte Z270X-Gaming 7 motherboard and it's been tricky, but it's getting there. I've managed to get the ports working correctly (AppleALC, layout-id 5, CodecCommander.kext from this thread), but through the headphones jack there is this really annoying white noise coming through, always at the same level, both through front and rear HP ports, and the volume is really really high. I think that the headphone amplifier is picking up some kind of interference (maybe case fans, or HDD? didn't troubleshoot yet). I wanted to know if there is any way to control the headphone amp gain using AppleALC and/or CodecCommander? I read somewhere that VodooHDA is able to control this (don't remember where though) so I thought that maybe we could do the same with AppleHDA. Another weird thing is that in my current setup, the line-out gets really distorted at around 80% and up of max volume level. Has anyone experienced this too? EDIT: changing the graphics card slot actually reduced 90% of the noise coming from the rear HP port. It still picks up a bit of noise from the fans and HDD but it's way less noticeable. To be perfect, just need both the speakers line-out and headphone rear port to work at the same time! Link to comment Share on other sites More sharing options...
Naundob Posted August 5, 2017 Share Posted August 5, 2017 Until now i've only made a few changes in MaLd0ns DSDT, try it out and upload a new IOReg. Install the CodecCommander kext with the KextUtility, it will replace the old kext. DSDT.aml.zip I replaced CodecCommander kext with no luck. Sound is still gone after sleep/wake. Regarding the new DSDT: I first replaced it in my original Clover setup, the one I used to get my Hackintosh running accept sound (which was based on a guide for the 'gaming 5' MB not 'gaming 7' like mine). Whether I left all the SSDT in the patched folder or not. The system did not boot up properly ending up with this 'dead end sign' (or whatever you would call it - see pic). I then tried MaLd0ns Clover folder again, replacing his DSDT with yours (which would make sense because his setup is based on my gaming 7 MB). Now it boots up fine, layout ID is set to 5 and HDMI audio is showing up (pic). Still no hdmi sound, but front HP again! Maybe it makes sense to proceed this MaLd0ns 'gaming 7' setup and forget about my original 'gaming 5' setup. I made a new IOReg. Thanks for your efforts and patience! ioreg.zip Link to comment Share on other sites More sharing options...
wern apfel Posted August 5, 2017 Author Share Posted August 5, 2017 I replaced CodecCommander kext with no luck. Sound is still gone after sleep/wake. Regarding the new DSDT: I first replaced it in my original Clover setup, the one I used to get my Hackintosh running accept sound (which was based on a guide for the 'gaming 5' MB not 'gaming 7' like mine). Whether I left all the SSDT in the patched folder or not. The system did not boot up properly ending up with this 'dead end sign' (or whatever you would call it - see pic). I then tried MaLd0ns Clover folder again, replacing his DSDT with yours (which would make sense because his setup is based on my gaming 7 MB). Now it boots up fine, layout ID is set to 5 and HDMI audio is showing up (pic). Still no hdmi sound, but front HP again! Maybe it makes sense to proceed this MaLd0ns 'gaming 7' setup and forget about my original 'gaming 5' setup. I made a new IOReg. Thanks for your efforts and patience! The DSDT audio patches are working, the controller is loaded but not the driver, I will compare the device-IDs later, and upload a new CodecCommander.kext. 1 Link to comment Share on other sites More sharing options...
wern apfel Posted August 6, 2017 Author Share Posted August 6, 2017 Hi everyone, I've been trying to set up audio on my new Gigabyte Z270X-Gaming 7 motherboard and it's been tricky, but it's getting there. I've managed to get the ports working correctly (AppleALC, layout-id 5, CodecCommander.kext from this thread), but through the headphones jack there is this really annoying white noise coming through, always at the same level, both through front and rear HP ports, and the volume is really really high. I think that the headphone amplifier is picking up some kind of interference (maybe case fans, or HDD? didn't troubleshoot yet). It could be the power supply, with my old power supply i could hear a noise while downloading or streaming via WLan. I wanted to know if there is any way to control the headphone amp gain using AppleALC and/or CodecCommander? I read somewhere that VodooHDA is able to control this (don't remember where though) so I thought that maybe we could do the same with AppleHDA. Another weird thing is that in my current setup, the line-out gets really distorted at around 80% and up of max volume level. Has anyone experienced this too? It is possible to control the amplifier gain, but i've not found out how to limit the max gain. The Windows driver limits the gain to 0dB, we could raise it up to 9dB. To be perfect, just need both the speakers line-out and headphone rear port to work at the same time! May I ask you why, i think line-out and the front headphones can work at the same time. @Naundob, here is a voodoo kext, replace the provided DSDT and add the voodooHDA to the clover other folder. If it works make a dump and upload it. Try to replug the rear line-out (green jack) and see if you have sound after wake up. voodoo_HDMI_Pascal.zip Link to comment Share on other sites More sharing options...
Naundob Posted August 6, 2017 Share Posted August 6, 2017 @Naundob, here is a voodoo kext, replace the provided DSDT and add the voodooHDA to the clover other folder. If it works make a dump and upload it. Try to replug the rear line-out (green jack) and see if you have sound after wake up. voodoo_HDMI_Pascal.zip WOW, HDMI works finally!! Output shows 4 HDMI devices with the same name 'Digital-out (HDMI)'. It works when I select the second. Plugged into rear line-out, sound is still gone after wake up. I ran 'getdump' but I don't know where to find the dump file (I guess I'm just too dump... um, dumb). Link to comment Share on other sites More sharing options...
anor4k Posted August 6, 2017 Share Posted August 6, 2017 It could be the power supply, with my old power supply i could hear a noise while downloading or streaming via WLan. It is possible to control the amplifier gain, but i've not found out how to limit the max gain. The Windows driver limits the gain to 0dB, we could raise it up to 9dB. May I ask you why, i think line-out and the front headphones can work at the same time. I'm not sure if it is the PSU. My apartment doesn't have grounding so it might be that. Also, most of the noise seems to be caused by GPU usage. I actually wanted to reduce the gain. I think the volume is way too loud (both on windows and macOS) and maybe reducing the gain would help reduce noise. And I've actually manages to reduce the noise of the rear HP port to an acceptable level but the front one is still pretty bad, probably due to the F_AUDIO cable quality. I will try to contact Gigabyte support and see if they recommend anything, since it happens on windows too. Link to comment Share on other sites More sharing options...
wern apfel Posted August 6, 2017 Author Share Posted August 6, 2017 WOW, HDMI works finally!! Output shows 4 HDMI devices with the same name 'Digital-out (HDMI)'. It works when I select the second. Plugged into rear line-out, sound is still gone after wake up. I ran 'getdump' but I don't know where to find the dump file (I guess I'm just too dump... um, dumb). Drag and drop getdump into the terminal window, edit -> select all and copy and paste it into a text file. I'm not sure if it is the PSU. My apartment doesn't have grounding so it might be that. Also, most of the noise seems to be caused by GPU usage. Like I said, I could hear how fast my download was. I actually wanted to reduce the gain. I think the volume is way too loud (both on windows and macOS) and maybe reducing the gain would help reduce noise. Does the noise change when you increase the volume?, if not, limiting the gain will not help. And I've actually manages to reduce the noise of the rear HP port to an acceptable level but the front one is still pretty bad, probably due to the F_AUDIO cable quality. I will try to contact Gigabyte support and see if they recommend anything, since it happens on windows too. You have probably the AMP-UP feature where you can upgrade the AMPs. Link to comment Share on other sites More sharing options...
Naundob Posted August 6, 2017 Share Posted August 6, 2017 Drag and drop getdump into the terminal window, edit -> select all and copy and past it into a text file. That was way too easy ... here it comes: dump.txt Link to comment Share on other sites More sharing options...
wern apfel Posted August 7, 2017 Author Share Posted August 7, 2017 That was way too easy ... here it comes: Ok, I will take a look at it. Here a new revision of the CA0132Tool, maybe this will do what you expect. It should work with layout-id 4. CA0132Tool 2.zip I have also made a Menulet app, i think it looks better. 2 Link to comment Share on other sites More sharing options...
anor4k Posted August 7, 2017 Share Posted August 7, 2017 Like I said, I could hear how fast my download was. Does the noise change when you increase the volume?, if not, limiting the gain will not help. You have probably the AMP-UP feature where you can upgrade the AMPs. You're probably right about it being the PSU. I just wish I could test with proper grounding. I will try to return it for a better one. Also, I just realized that audio does not work after sleep. It seems that @naundob has a similar problem, how is it working out for him? Mine is the 270X gaming 7 though, not the 170X. Link to comment Share on other sites More sharing options...
Naundob Posted August 7, 2017 Share Posted August 7, 2017 Ok, I will take a look at it. Thanks! Here a new revision of the Here a new revision of the CA0132Tool, maybe this will do what you expect. It should work with layout-id 4., maybe this will do what you expect. It should work with layout-id 4. Cool, but I'm not sure if this what adressed at me since I'm already very happy with HDMI and front HP working. The only one thing for me was this sleep/wake issue. Does the new CA0132Tool with layout-id 4 tackle this problem? (I probably got something wrong here, right?). I have also made a Menulet app, i think it looks better. Wow, this looks really advanced! When can we test it? Link to comment Share on other sites More sharing options...
Hunk89 Posted August 9, 2017 Share Posted August 9, 2017 Hi all, i am using layout ID 2, i unchecked "reset hda" and i installed wern apfels codec commander to /System/Library/Extensions with Kext Utility. I am still getting no sound after sleep. AppleALC 1.1.3, Lilu 1.1.5. 10.12.6 Sierra. Gigabyte Z170X Gaming 7. Thanks, Hunk Link to comment Share on other sites More sharing options...
anor4k Posted August 13, 2017 Share Posted August 13, 2017 Hi... Firstly, I would like to thanks the big help that people like @wern Apfel are doing here. I have a GTX 1080 and now I have some problems with the AppleALC. kext. Well, now AppleALC need to use Lilu.kext and codecCommander in S/L/E folder. The problem come when I use the Kext nvidiagraphicsfixup.kext because this need also Lilu.kext but the last release. If I use the last release of Lilu.kext then I lose sound, but If I don't, I lose nvidiagraphicsfixup.kext and can't boot without black screen. ¿what can I do? Thanks a lot Put Lilu.kext, AppleALC.kext and NVidiaGraphicsFixup.kext on Clover/kexts/Other, and CodecCommander.kext on S/L/E. I think that Lilu needs to be loaded before/along with AppleALC 1 Link to comment Share on other sites More sharing options...
altuser Posted August 16, 2017 Share Posted August 16, 2017 You should connect your Headphones to the rear or front Headphone jack, if the device name is "Internal Speakers" you don't use one of my kexts. Make sure you use an untouched AppleHDA.kext, remove VoodooHDA.kext, AppleHDADisabler/Enabler.kext, Creative*CA0132.kext then put AppleALC.kext + Lilu.kext to clover/kexts/other, CodecCommander to /S/L/E, repair permissions, rebuild the cache, reboot. Try layout-id from 0 to 6 Alternatively, remove VoodooHDA.kext, AppleHDADisabler/Enabler.kext, Creative*CA0132.kext set the layout-id to 0 and install a fully patched kext to /S/L/E repair permissions, rebuild the cache, reboot. PS: I have set the layout-id via DSDT.aml. Hello to everyone. First of all thank you all supporting here, big thanks to wern apfel for all his efforts making those patches and support. Im new to the forum and to macOS, ill appreciate some patience. Thanks I just did a clean install and have followed the alternative steps but I can't find layout-id in my DSDT.aml, idk if im extracting the DSDT.aml file properly. I pressed F4 at Clover boot to get the DSDT.aml in EFI/ACPI/origin/DSDT.aml and I used MaciASL to edit the file pressed win key + F to search and finds nothing, did manual search through the entire file and I couldn't find it either. Im not getting any audio neither shows any device in sound settings. ps: I used EasyKext Pro to install the fully patched kext in /System/Library/Extensions. thank you. DSDT.aml.zip Link to comment Share on other sites More sharing options...
altuser Posted August 16, 2017 Share Posted August 16, 2017 I just rebooted into windows that a I have on my other hdd and booted back into macOS and its working now, idk what happened but its working great. Thanks again to apfel for this patched kext. ps: im only using Kingston Revolver headphones so I can't test multichannel. Link to comment Share on other sites More sharing options...
wern apfel Posted August 16, 2017 Author Share Posted August 16, 2017 It seems that the Gaming 7 users have no sound after sleep. You can try it with this CodecCommander, install it to /S/L/E. It works here. CodecCommander.kext.zipUnfortunately, i do not have too much time for testing, because of some serious issues with my car. You should use the latest Lilu and AppleALC and the latest plugins to avoid issues. As usual install it in the "Clover/kexts/other" folder Here some small updates of the CA0132 tools. CA0132Tool.zipCA0132AudioSwitcher.zip They work best with layout-id 4. 1 Link to comment Share on other sites More sharing options...
Recommended Posts