toleda / audio_CloverALC

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

Mac OS Mojave #139

Open rafnogueira opened 6 years ago

rafnogueira commented 6 years ago

Will be any support to Mac OS Mojave ? Is anyway that I can edit the file to 'force' the script to fun on my Mojave Beta installation ?

toleda commented 6 years ago

Yes. Major issue: Audio ID: 1 and 3 do not work in Mojave, Audio ID: 2 is working Mojave release will likely have new Audio IDs, backward capability is unknown at this point.

cloverALC, use Audio ID: 2, edit audio_cloverALC...command: at

# verify system version
case ${gSysVer} in

add

    10.14* ) gSysName="Mojave"
    gSysFolder=kexts/10.14
    gSID=$(csrutil status)
    ;;
rafnogueira commented 6 years ago

After I made the changes in Audio ID and also the script I receive this output:

iMac-de-Rafael:Downloads rafael$ sh audio_cloverALC-130.sh
Agreement The audio_cloverALC script is for personal use only. Do not distribute the patch, any or all of the files or the resulting patched AppleHDA.kext for any reason without permission. The audio_cloverALC script is provided as is and without any kind of warranty.

File: audio_cloverALC-130.command_v0.5 Release Mode EFI partition is mounted

No audio codec detected To save a Copy of this Terminal session: Terminal/Shell/Export Text As ...

Also my audio is ALC887, thank you very much for your help with this

Update 2 : I restored the AppleHDA.kext to native with kext utility, and boot with Audio ID: 1, I manage to run the script :

Release Mode EFI partition is mounted Confirm Realtek ALC887 (y/n): y ALC887 v_0x100302 (Current) Clover Audio ID Injection (y/n): y Use Audio ID: 2 (y/n): y Motherboard (300/200/x299/x99/Other = n): n

Download ALC887 files ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 24502 100 24502 0 0 92047 0 --:--:-- --:--:-- --:--:-- 92460 887 files copied to /tmp/887 Edit config.plist/Devices/Audio/Inject/2 Edit config.plist/SystemParameters/InjectKexts/Yes Download kext patches % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1979 100 1979 0 0 13008 0 --:--:-- --:--:-- --:--:-- 12934 Download config kext and install ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4223 100 4223 0 0 27062 0 --:--:-- --:--:-- --:--:-- 27070 Install /Volumes/EFI/EFI/CLOVER/kexts/Other/realtekALC.kext Install System/Library/Extensions/AppleHDA.kext/ALC887 zml files

Install finished, restart required. To save a Copy of this Terminal session: Terminal/Shell/Export Text As ...

After this point I always manage to have sound working in High Sierra, but in Mojave seems that still not enough, not audio devices to select in system preferences.

toleda commented 6 years ago

Motherboard? Attach a copy of IOReg.

rafnogueira commented 6 years ago

Motherboard: Asus H81M-CS/BR

My IOReg ( I don't know if I made the process right, first time I done this), I extracted with IORegistryExplorer.app using "Save As.." option : https://ufile.io/c896t

toleda commented 6 years ago

File is corrupt. Use this version: https://github.com/toleda/audio_ALCInjection/blob/master/IORegistryExplorer_v2.1.zip IORegistryExplorer/File/Save A Copy as ...

rafnogueira commented 6 years ago

I made another upload with the updated tool,I tested seems to be working now https://ufile.io/k20xq

toleda commented 6 years ago

Installed VoodooHDA, not supported in this repo.

rafnogueira commented 6 years ago

@toleda Yes, when i send the log i was using vodoo but i made this after tried all steps before when i was not using vodoo before last IOReg

toleda commented 6 years ago

IOReg with Voodoo makes it impossible to see what was wrong before Voodoo. No support with Voodoo installed. Choices: a. Continue with Voodoo, issue will be closed b. As requested previously, attach a useable IOReg without Voodoo.

raulmiguelramos commented 6 years ago

Changed: Add in "audio_cloverALC-130_v0.5.command":

10.14* ) gSysName="Mojave" gSysFolder=kexts/10.14 gSID=$(csrutil status) ;;

After run the modified "audio_cloverALC-130_v0.5.command"

In config.plist Change: MatchOS from "10.12.x,10.13.x" to "10.12.x,10.13.x,10.14.x" in Kernel and Kext Patches Change: Audio ID 1 to 2 in devices

Reboot and works on a Gigabyte z97 gaming 5 (Realtek ALC1150 !?) I did not test with id = 1

Thanks

toleda commented 6 years ago

Thanks.

raulmiguelramos commented 6 years ago

For troubleshooting propose. I only have Audio in Mojave if i use the driver UEFI 64 "OsxAptioFix2Drv-64.efi" If i use "OsxAptioFix3Drv-64.efi" i have nothing. I use "OsxAptioFix3Drv-64.efi" on High Sierra and audio works fine.

rafnogueira commented 6 years ago

@raulmiguelramos
I reinstalled Mojave Beta 3 from scratch, and followed your steps editing the config.plist and audio now works. Thank you very much!

toleda commented 6 years ago

raulmiguelramos Try AptioMemoryFix-64.efi, replaces OsxAptioFix2Drv-64.efi and OsxAptioFix3Drv-64.efi

raulmiguelramos commented 6 years ago

Was to swear AptioMemoryFix-64.efi was the first one then OsxAptioFix2Drv-64.efi hibernation support and the late OsxAptioFix3Drv-64.efi with NVRAM support or something in this lines?: AptioMemoryFix-64.efi and OsxAptioFix2Drv-64.efi works fine in Mojave with this patch. Don't know why OsxAptioFix3Drv-64.efi doesn't work. I put it here to help someone with the problem.

Pro2005 commented 6 years ago

Hi guys. Could you help me with my hackintosh I have Gigabyte B360M D2V motherboard with ALC887 codec When I try to start audio_cloverALC...command I see "no audio codec detected" Mac OS Mojave Beta 3

https://ufile.io/h2bls https://ufile.io/f219d My drivers64UEFI folder contains: apfs.efi AppleImageCodec-64.efi AppleKeyAggregator-64.efi AppleUITheme-64.efi AptioMemoryFix-64.efi DataHubDxe-64.efi EmuVariableUefi-64.efi FirmwareVolume-64.efi FSInject-64.efi SMCHelper-64.efi VBoxHfs-64.efi

Any help is appreciated

toleda commented 6 years ago

@raulmiguelramos "AptioMemoryFix-64.efi and OsxAptioFix2Drv-64.efi works fine in Mojave with this patch:" one or the other, not both.

toleda commented 6 years ago

@Pro2005 Mojave does not support Coffee Lake audio. Coffee Lake audio patch is not working. Attach Clover boot log.

Pro2005 commented 6 years ago

@toleda Here is boot log https://ufile.io/zhjsi

toleda commented 6 years ago

config.plist typo, remove , from: 10.13.x,10.14.x, to: 10.13.x,10.14.x

screen shot 2018-07-17 at 10 26 08 pm

Pro2005 commented 6 years ago

@toleda done But the result the same

toleda commented 6 years ago

Did this error disappear? 5:969 0:000 - [06]: com.apple.driver.AppleHDAController (10.13-Coffee_Audio_Controller) :: BinPatch :: [OS: 10.14 | MatchOS: 10.13.x,10.14.x, | MatchBuild: All] ==> not allowed

Pro2005 commented 6 years ago

Hi @toleda . It seems the problem was with IntelGraphicsFixup and igfxbeta=1 boot key. After removing them the error "no audio codec detected" was gone. Although I've moved on appleALC.kext that works perfectly with layout_id=7 Anyway thanks for your help

gipfelen commented 6 years ago

Your fix works perfectly, but I'm unable to get the microphone working with audio id 2. Any suggestions?

gipfelen commented 6 years ago

I fixed the issue by directly using prerelease lilu/audioALC kext files! (now it works with audio-id 1 injected)

yusabian commented 5 years ago

I ran the command for mojave with apfs boot disk and get this messages;

Last login: Mon Sep 3 00:12:50 on ttys000 MyMac:~ yusaini$ /Volumes/DataStore/OSX\ Repository/AudioFIx\ Mojave/audio_cloverALC-130_v0.5.command ; exit; -bash: /Volumes/DataStore/OSX Repository/AudioFIx Mojave/audio_cloverALC-130_v0.5.command: /bin/sh: bad interpreter: Operation not permitted logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed.

[Process completed]

The command runs well under mojave hfs+.

Please advise. TQ

toleda commented 5 years ago

Apology for the delay in replying. Still working through Mojave issues. Will update when Mojave testing is complete.

mrPsycho commented 5 years ago

after upgrading to 10.14 from 10.13 sound dissapeared did that: https://github.com/toleda/audio_CloverALC/issues/139#issuecomment-403296370 and it turned back

thanks @toleda and @raulmiguelramos !

danhutten commented 5 years ago

@raulmiguelramos solution worked perfectly, using modified audio_cloverALC-130_v0.5.command

using optical audio port on gigabyte z97x ud3h - audio device id 2

rafnogueira commented 5 years ago

Guys with this patches to the script my audio was working very well in Mojave with my old GTX 1060, but now, I exchange my GTX 1060 to a Radeon RX 480 8gb sapphire , and I have only HDMI audio. I tried to run the command as always, and put audio id = 2. But now I have only HDMI output .... not green output and pink input anymore. What should I do ?

toleda commented 5 years ago

Graphics card has no effect on onboard audio. See README/F. Problem Reporting. Attach requested files.

farrvince commented 5 years ago

Hello. Do you have any solution for ALC889 at Mojave? :) I tried with this patch but still no sound.

toleda commented 5 years ago

Mojave is not supported, see README. Same 889 files are included with AppleALC.kext/layout=1. This repo is deprecated.

farrvince commented 5 years ago

Mojave is not supported, see README. Same 889 files are included with AppleALC.kext/layout=1. This repo is deprecated.

Thank you. Solved with this: " 10.14* ) gSysName="Mojave" gSysFolder=kexts/10.14 gSID=$(csrutil status) ;; "