toleda / audio_CloverALC

macOS Realtek ALC onboard audio with Clover
679 stars 109 forks source link

Not work on X299 Motherboard #116

Open BJY1991 opened 7 years ago

BJY1991 commented 7 years ago

Not work on X299 Motherboard need new kext patch with AppleHDAController

toleda commented 7 years ago

Expected. Attach IOReg and acpi tables.

BJY1991 commented 7 years ago

here it is ACPI.zip

X299.ioreg.zip

BJY1991 commented 7 years ago

use voodooHDA i find out CAVS is HDEF

toleda commented 7 years ago

Install attached ssdt, reply with new IOReg. ssdt_hdef-1-x299-cavs.zip

BJY1991 commented 7 years ago

SSSDT has one mistake PCI0 should be PC00 Here is IOReg after apply cloverALC System can find output but no sound come out X299 HDEF_cloverALC Applyed.ioreg.zip

BJY1991 commented 7 years ago

I have tryed use clover kexts patch AppleHDAController 70a2 to f0a2 also not work

toleda commented 7 years ago

70a2 is not correct. See https://github.com/toleda/audio_CloverALC/blob/master/config-audio_cloverALC-x299.plist.zip:

AppleHDAController (remove for 10.13, KP likely) Controller patch: config-audio_cloverALC-x299.plist/KernelAndKextPatches/KextsToPatch/Item 0

ACPI: CAVS > HDEF (One or the other, try both separately)

  1. DSDT patch: config-audio_cloverALC-x299.plist/ACPI/DSDT/Patches/Item 0
  2. SSDT-HDEF-CAVS-1: https://github.com/toleda/audio_ALCInjection/blob/master/ssdt_hdef/ssdt_hdef-1-x299-cavs.zip

Reply with new IOReg and edited config.plist

BJY1991 commented 7 years ago

It Works !!! and I use SSDT inject Audio ID config.plist.zip X299 Audio Works.zip

KGP commented 7 years ago

@toleda your KextToPatch entry and aml above do not work for me on the ASUS Prime X299 Deluxe under 10.12.6.... Which Audio ID should I inject? What to do in case of 10.13? Is the KextToPatch entry different for 10.13? By the way I use VoodooHDA.kext-2.9.0d10.zip... I hope, that's the correct version, right?

toleda commented 7 years ago

See README/Problem Reporting, attach requested files. Only Audio ID: 1 applies to your system. 10.13: supported. No patch differences. I don't use Voodoo, no idea.

KGP commented 7 years ago

Ahhh now I understand! Of course this thread is about cloverALC! May I ask you 2 more questions. Which cloverALC distribution should I take in my particular case for the ASUS Prime X299 Deluxe? What about HDMI/DP support for Nvidia and AMD?

toleda commented 7 years ago

10.12 and 10.13: ALC1220: https://github.com/toleda/audio_CloverALC/blob/master/audio_cloverALC-130.command.zip X299: manually add: https://github.com/toleda/audio_CloverALC/blob/master/config-audio_cloverALC-x299.plist.zip

HDMI audio repo: https://github.com/toleda/audio_CloverHDMI HDMI audio: https://github.com/toleda/audio_CloverHDMI/blob/master/audio_cloverHDMI-130.command.zip

Note: 1. Pascal: DP audio works, HDMI audio does not; use DP2HDMI adapter

  1. Polaris/Vega: DP/HDMI audio requires 10.13
KGP commented 7 years ago

@toleda , and I do not need the https://github.com/toleda/audio_ALCInjection/blob/master/ssdt_hdef/ssdt_hdef-1-x299-cavs.zip ??

BJY1991 commented 7 years ago

today i update 10.13 dp7 and it not work again

toleda commented 7 years ago

@KGP, x299-cavs is required.

toleda commented 7 years ago

@BJY1991 See README/Problem Reporting, attach requested files.

KGP commented 7 years ago

@toleda, successful installation of cloverALC with audio ID 1 and following your instructions! However, still no Audio under 10.13 DP7... Any solution?

KGP commented 7 years ago

@toleda, same story under 10.12.6.. Successful installation with few errors but no audio! I attach the 10.13 DP7 and 10.12.6 cloverALC logs...

CloverALC-10.13-DP7-install-log.rtf.zip

cloverALC-10.12.6-install-log.rtf.zip

toleda commented 7 years ago

Attach IORegs and config.plists for both.

KGP commented 7 years ago

@toleda , Another update!!

Analogue output and DP output via the Radeon RX 560 HDMI and LG Ultrawide on the ASUS Prime X299 Deluxe works with audio_cloverALC-120_v1.0f1.command under 10.12.6 and config-audio_cloverALC-x299.plist entries without aml-file... Installation with Audio ID 2, confirm 200 series board (yes), allow beta driver installation (yes)... however the sound is a bit distorted and interrupted from time to time..

if I use the aml file in addition, I permanently get repeating black screen and sound interruiptions...

Will go back now to your proposed approach and send you the IOReg and config.plist for 10.12.6 first. I am not with 10.13 DP7 yet... step by step

sound

KGP commented 7 years ago

@toleda, Ok.. here the requested files the definitely not working audio approach you suggested above...

Note we are speaking about 10.12

ASUS-Prime-X299-Deluxe.ioreg.zip

IORegistryExplorer.app.zip

config.plist.zip

please note that I erroneously uploaded before my complete config plist with all my confidentials... I just changed the uploaded file.... please do not distribute the former version of this file... Thanks!

KGP commented 7 years ago

@toleda please note that I erroneously uploaded before above my complete config.plist with all my confidentials... I just changed the uploaded file.... please do not distribute the former version of this file... Thanks!

KGP commented 7 years ago

@toleda and here are the IOReg and config.plist for 10.13 DP7 after implementing your not working proposal...

config.plist.zip

ASUS-Prime-X299-Deluxe-10.13-DP7.ioreg.zip

toleda commented 7 years ago

Both IORegs are corrupt. Replace with https://github.com/toleda/audio_ALCInjection/blob/master/IORegistryExplorer_v2.1.zip What .ami gave you the boot problem?

KGP commented 7 years ago

@toleda ami? your aml is causing problems during boot... why should my IORegs be corrupt? Above, I attached the correct IOREG.APP to properly read the files... You did not see? I use IORegistryExplorer 3.0.2 (14)... once more attached below!

IORegistryExplorer.app.zip

toleda commented 7 years ago

.aml (.ami typo): "I use the aml file in addition, I permanently get repeating black screen and sound interruptions... " What .aml? Attach.

I cannot open your IORegs; Xcode opens the file as a property list, IOReg says corrupt. Without IORegs, no idea what is wrong. Suggestion, use older version IOReg linked. OK?

KGP commented 7 years ago

this aml https://github.com/toleda/audio_ALCInjection/blob/master/ssdt_hdef/ssdt_hdef-1-x299-cavs.zip is causing problems in combination with audio_cloverALC-120_v1.0f1.command when using audio output via display board... There are no problems during boot ....

o.k. give me 30 min... I'll redo everything for your proposed audio setup solution with IOReg 2.1

toleda commented 7 years ago

2 CAVS fixes:

  1. config.plist/ACPI/DSDT/Patches/Item 0 (Rename CAVS to HDEF)
  2. SSDT-HDEF-CAVS-1.aml

Both modify the native dsdt; Install one or the other, not both. For Intel HDMI audio, use ssdt. The clover patch disables Intel HDMI audio.

KGP commented 7 years ago

Should I now choose 1.) config.plist/ACPI/DSDT/Patches/Item 0 (Rename CAVS to HDEF) or 2.) https://github.com/toleda/audio_ALCInjection/blob/master/ssdt_hdef/ssdt_hdef-1-x299-cavs.zip

I will skip 2.) then, ok?

Can you read this IOREG file now for 10.12.6?

Asus-Prime-X299-Deluxe-10.12.6- IOREG-2.1.ioreg.zip

config-10.12.6.plist.zip

And I can use cloverALC for DP? Where can I find a working SSDT for Intel HDMI audio?

toleda commented 7 years ago

Yes. Yes. Remove HDAEnabler2.kext, deprecated long ago. Reply with new files.

KGP commented 7 years ago

ok here you go...

https://github.com/toleda/audio_ALCInjection/blob/master/ssdt_hdef/ssdt_hdef-1-x299-cavs.zip removed from /EFI/CLOVER/ACPI/patched/

ASUS-Prime-X299-Deluxe-10.12.6.ioreg.zip

config.plist.zip

still no audio...

toleda commented 7 years ago

Ignored "Remove HDAEnabler2.kext..." above Remove kext, restart, reply with new files.

KGP commented 7 years ago

@toleda, I have HDAEnabler1.kext and HDAEnabler2.kext in /S/L/E/

Remove both?

toleda commented 7 years ago

one is a big problem, 2 is a disaster; remove all.

KGP commented 7 years ago

ok now without ssdt-def-1-x299-cavs.aml and without HDAEnabler1.kext and HDAEnabler2.kext

I did not reinstall cloverALC

config-10.1.2.6.plist.zip

Asus-X299-10.12.6.ioreg.zip

toleda commented 7 years ago

IOReg shows another enabler, find and remove all. Restart, rely with new files.

KGP commented 7 years ago

Which one? I just have the ApplePlatformEnabler.kext left in /S/L/E... The best would be a clean install of the entire system... but I would loose all my installed codes and data... :-( tremendous work to redo everything...

When I look to IOReg I see once more the ApplePlatformEnabler, but also an IOPlatfromEnabler and an AGPMEnabler... Can I simply remove all the three?

Appart from the ApplePlatformEnabler, I do not find them on my system... so what to do?

KGP commented 7 years ago

@toleda,

O.K. everything under control...

1.) I noticed that after removing HDAEnabler1.kext and HDAEnabler2.kext, DP-Audio is already working.. I can select in system preferences/audio my Monitor as output source.. However there are still no entries for analogue audio! Same status by the way under 10.13 DP7! DP Audio perfectly fine! Excellent Quality! No issues at all with DP audio...

2.) AGPMEnabler, IOPlatfromEnabler and ApplePlatformEnabler are loaded by the ssdt.aml of Pike Alpha, which is absolutely mandatory for running XCPM.. I am afraid I can't live without these enablers! And nobody else using native XCPM on X299 will be able to do! We have to find a solution to live with these enablers!

However, for now I removed the ssdt.aml for /EFI/Clover/ACPI/patched (so I am running my rig without XCPM) and all Enablers are gone in the IOREG...

Please see the attached files.

ASUS-X299-10.12.6.ioreg.zip

config-10.12.6.plist.zip

However, there is still no analogue output!

By the way, I performed in addition a clean install of macOS Sierra, just to be at the save side... however, same status and issues...

Next step?

dp-audio

toleda commented 7 years ago

The audio enabler us gone. The 3 other enablers are native Apple, have nothing to do with audio and should never be removed; reinstall.. The reinstall of Sierra removed 1220 codec specific audio files. Run cloverALC to restore 1220 audio. Restart and reply with new files.

KGP commented 7 years ago

@toleda , but of course I reinstalled audio_CloverALC-130_v0.1.command after the clean installation!

What do you mean by Run cloverALC to restore 1220 audio??

By the way, the IOREG is clean of Enablers despite the 3 apple native Enablers also on my regular system on both 10.12.6 and 10.13 DP7... The cloverALC status is totally the same on all systems like in case of the clean install... DP Audio.. nothing else...

Once more attached the cloverALC install log for 10.13 DP7... which is basically the same for 10.12.6 and 10.12.6 clean install ...

cloverALC-installlog-10.13-DP7.rtf.zip

A short but detailed summary of how I exactly perform the cloverALC Installation on the ASUS Prime X299 Deluxe you can find under the AUDIO section of my detailed Skylake-X/X299 macOS High Sierra 10.13 Desktop Guide: https://www.tonymacx86.com/threads/skylake-x-x299-the-ultimate-customac-pro-live-the-future-now-on-macos-10-13-high-sierra.229353/ I am just writing up...

Although in reality the only difference is that I install cloverALC already with the DSDT patch entry included in the config.plist... I hope that makes no difference...

toleda commented 7 years ago

Of course., https://www.tonymacx86.com/threads/multibeast-audio-failure-solved.220942/

See https://github.com/toleda/audio_CloverALC /README/F. Problem Reporting, attach all request files.

KGP commented 7 years ago

@toleda, so basically to execute the https://github.com/toleda/audio_ALCInjection/blob/master/audio_codecdetect.command.zip ??

Thats's all? Also after the removal of cloverALC?

toleda commented 7 years ago

codecdetect is 1 of 10+ specific requests. Attach all requested files.

KGP commented 7 years ago

@toleda, so...

A.) Installation, 3.) not successfully verified

B.) Terminal

I did not apply this part... I have to do it in addition? I guess it is just optional to A.), right?

C.) Requirements:

1.) 10.13 is not part of the requirements

2a.)Bootflag: -v -npci=0x2000 ; kext-dev-mode=1 should be obsolete with actual clover version 2b.) Booter Config 0x28 2c.) SIP set to 0x67 2d.) DSDT patch only Rename CAVS to HDEF

3.) Native AppleHDA , ok

4.) Audio Codec see comment on Tools

5.) Audio fixes i. and ii.... do you refer to https://github.com/toleda/audio_CloverALC/blob/master/config-audio_cloverALC-x299.plist.zip

Do I need the cloverALC patched AppleHDA also in /EFI/Clover/kexts/ ?

Tools, 4.)

https://github.com/toleda/audio_ALCInjection/blob/master/audio_codecdetect.command.zip does not work under 10.13, see below...

[iSPOR-S-X299:~] kgp% /Users/kgp/Desktop/audio_codecdetect_v2.2.command ; exit; File: audio_codecdetect.command_v2.2 OS X Version: 10.13 is not supported No system files were changed To save a Copy of this Terminal session: Terminal/Shell/Export Text As ... logout

Did I miss something else?

KGP commented 7 years ago

@toleda,

I'm slightly going mad....

I tried it now with and without the patched AppleHDA.kext in /EFI/Clover/kexts/10.12/

but when I execute the audio_codecdetect_v2.2.command subsequently to the cloverALC installation, I get the following error message on 10.12.6:


_File: audio_codecdetect.commandv2.2 HDMI audio codec(s) AMD: 0x1002aa01 Onboard audio codec Realtek: 0x10ec1168 Name: Realtek ALC1220 Audio ID: Not supported Current Audio ID: 1 (valid: 1, 2, or 3) FIX, try: _1. https://github.com/toleda/audio_ALCInjection/tree/master/ssdt_hdef/_ _ssdt_hdef-1-withioreg/hdef.zip (or -2 or -3, select View Raw) 2. CLOVER/config.plist/Devices/Audio/Inject/1 (or 2 or 3) No system files were changed To save a Copy of this Terminal session: Terminal/Shell/Export Text As ... logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process completed]


although my Audio ID is 1.. See attached config-10.12.6.plist.. I also attach once more the the corresponding IOREG. The link in 1.) is broken and 2.) is done anyway...

and under 10.13 the error message ofaudio_codecdetect_v2.2.command is simply the following:


_File: audio_codecdetect.commandv2.2 OS X Version: 10.13 is not supported No system files were changed To save a Copy of this Terminal session: Terminal/Shell/Export Text As ... logout


So how to restore 10.12 or 10.13 audio then? Sorry for all this spamming... but it is really not easy to follow our guidelines and to get that thing working...

config-10-12-6.plist.zip

ASUS-X299-10.12.6.ioreg.zip

toleda commented 7 years ago

Missing (same boot as files above; if not, attach new config and ioreg); Terminal/Shell/File/Export Text As. . ./audio_cloverALC-130...command? S/L/E/AppleHDA.kext? clover boot log? EFI/CLOVER/ACPI/Patched/ssdt.aml (all ssdts)?

"with and without the patched AppleHDA.kext in /EFI/Clover/kexts/10.12/" What does that mean?

KGP commented 7 years ago

I mean once the AppleHDA.kext is patched, do I have to also copy the patched AppleHDA.kext in /S/L/E/ to /EFI/Clover/kexts/ or not? I think I read it at some place in your guides but I do not find this comment again currently. Please clarify...

I will support you asap with the requested information...

One question:

clover boot log with: bdmesg > log.txt ?

toleda commented 7 years ago

AppleHDA.kext works in S/L/E only. Remove all copies wherever they are. Restart.

Clover boot log:

  1. bdmesg, yes
  2. config.plist/Boot/Debug/YES, file in EFI/CLOVER/misc
  3. DPCIManager/Misc/Boot log
KGP commented 7 years ago

@toleda,

o.k., here you go ....

I took one boot log before and one after the installation of cloverALC

clover-debug-before-installation.log.zip

clover-debug after-installation.log.zip

Find also attached the config.plist and IOREG after installation...

config-10.12.16.plist.zip

ASUS-X299-10.12.6.ioreg.zip

Else I attach you also the hopefully patched AppleHDA.kext

Patched-AppleHDA.kext.zip

the audio_cloverALC-130...command.txt log

audio_cloverALC-130...command.txt.zip

the audio-codecdetect_v2.2.command.txt log

audio-codecdetect_v2.2.command.txt.zip

as well as the nvme_patch.aml, which is the only aml at present.... All this information taken with the clean install 10.12.6. system, where for testing I do not use at present the ssdt.aml at all.

I anyway also attach the latter aml just for the sake of completeness... And especially because I will have to use it anyway... no options

ssdt.aml.zip

further conflicting kexts could be Lilu.kext and Whatevergreen.kext, which I need for the graphics card....

I hope thats all the information you need...

I am quite destroyed already :-) working like crazy on that problem for more than 2 days...

toleda commented 7 years ago

3 native enabler kexts still missing. There a 7 xcpm kernel patches not showing in config.plist, where are they? How are you enabling HDMI audio on the RX 560?

There is an error in the cloverALC log: Print: Entry, ":KernelAndKextPatches:KextsToPatch:2 dict", Does Not Exist

Run cloverALC, export the Terminal output and restart Reply with output, config.plist and ioreg.