toleda / audio_RealtekALC

macOS Realtek ALC onboard audio with Chameleon/Clover
202 stars 75 forks source link

Script under El Capitan not working for ALC898 & clover (again?) #26

Closed teras closed 6 years ago

teras commented 8 years ago

Unfortunately I am unable to make it work, although it worked perfectly under Yosemite. I am using CLover if this helps. Here is the default run:

Agreement
The audio_realtekALC-110 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_realtekALC-110 script is
provided as is and without any kind of warranty.

File: File: audio_realtekALC-110.command_v1.0k
rm: /tmp/org.chameleon.Boot.txt: No such file or directory
Confirm Realtek ALC898 (y/n): yes
Enable HD4600 HDMI audio (y/n): n
Audio ID: 0 is not supported, continue (y/n): y

Note
Set Audio ID injection before restart; valid IDs are:
1 - 3/5/6 port Realtek ALCxxx audio
2 - 3 port (5.1) Realtek ALCxxx audio (n/a 885)
3 - HD3000/HD4000/GT530 HDMI and Realtek ALCxxx audio (n/a 885 & 887/888 Legacy)
Caution: if Audio ID: 0 is not fixed, no audio after restart

Download ALC898 files ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24769  100 24769    0     0  21701      0  0:00:01  0:00:01 --:--:-- 21708

Preparing 10.11.1 ALC898 AppleHDA.kext_v272.50.31
Patch binaries ...
10.11.1 codec patch
Install files ...
Fix permissions ...
Kernel cache...
rebuilding //System/Library/PrelinkedKernels/prelinkedkernel
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDAHardwareConfigDriver.kext
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDA.kext
kextcache updated critical boot files, requesting launchd reboot

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

It seems that it has some problems to identify the ID of the card? And it uses 0 instead?

Moreover it didn't manage to understand that I run under Clover. Thus I tried to open the script and set gCloverALC=1

This is the result:

Agreement
The audio_realtekALC-110 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_realtekALC-110 script is
provided as is and without any kind of warranty.

File: File: audio_realtekALC-110.command_v1.0k
rm: /tmp/org.chameleon.Boot.txt: No such file or directory
EFI partition is mounted
System Integrity Protection status: enabled (Custom Configuration).

Configuration:
    Apple Internal: disabled
    Kext Signing: disabled
    Filesystem Protections: disabled
    Debugging Restrictions: enabled
    DTrace Restrictions: enabled
    NVRAM Protections: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.

OK to patch
Confirm Realtek ALC898 (y/n): y
Enable HD4600 HDMI audio (y/n): n
Audio ID: 0 is not supported, continue (y/n): y

Note
Set Audio ID injection before restart; valid IDs are:
1 - 3/5/6 port Realtek ALCxxx audio
2 - 3 port (5.1) Realtek ALCxxx audio (n/a 885)
3 - HD3000/HD4000/GT530 HDMI and Realtek ALCxxx audio (n/a 885 & 887/888 Legacy)
Caution: if Audio ID: 0 is not fixed, no audio after restart
Clover Audio ID Injection (y/n): y
Use Audio ID: 0 (y/n): n
Audio IDs:
1 - 3/5/6 port Realtek ALCxxx audio
2 - 3 port (5.1) Realtek ALCxxx audio (n/a 885)
3 - HD3000/HD4000/GT530 HDMI and Realtek ALCxxx audio (n/a 885 & 887/888 Legacy)
Select Audio ID: 1

Download ALC898 files ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24769  100 24769    0     0  43373      0 --:--:-- --:--:-- --:--:-- 43378

Preparing 10.11.1 ALC898 AppleHDA.kext_v272.50.31
/Users/teras/Desktop/audio_ALC898-10.11.1-archive deleted, too late
/Users/teras/Desktop/audio_ALC898-10.11.1-archive created, max 1 archive
Patch binaries ...
10.11.1 codec patch
Install files ...
Fix permissions ...
Kernel cache...
rebuilding //System/Library/PrelinkedKernels/prelinkedkernel
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDAHardwareConfigDriver.kext
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDA.kext
kextcache updated critical boot files, requesting launchd reboot

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

From what I can see, even then it doesn't touch the clover configuration, but it tries to patch the AppleHDA driver under /System/Library/Extensions

Any ideas what to try next?

teras commented 8 years ago

Update:

I added the entry Root > Devices > Audio > Inject 1 which indeed I fort in the first place and tried again.

Here is the output:

Agreement
The audio_realtekALC-110 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_realtekALC-110 script is
provided as is and without any kind of warranty.

File: File: audio_realtekALC-110.command_v1.0k
rm: /tmp/org.chameleon.Boot.txt: No such file or directory
/Users/teras/Downloads/audio_realtekALC-110_v1.0k.command: line 453: /tmp/HDEF.txt: Permission denied
Confirm Realtek ALC898 (y/n): y
Enable HD4600 HDMI audio (y/n): n

Download ALC898 files ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24769  100 24769    0     0  15835      0  0:00:01  0:00:01 --:--:-- 15847

Preparing 10.11.1 ALC898 AppleHDA.kext_v272.50.31
Patch binaries ...
10.11.1 codec patch
Install files ...
Fix permissions ...
Kernel cache...
rebuilding //System/Library/PrelinkedKernels/prelinkedkernel
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDAHardwareConfigDriver.kext
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDA.kext
kextcache updated critical boot files, requesting launchd reboot

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

Still no sound

toleda commented 8 years ago

With Clover, try https://github.com/toleda/audio_CloverALC; select audio_CloverALC-110.command. Install native AppleHDA.kext; use Desktop/audio_ALC898-10.11.1/AppleHDA-orig.kext