audio_CloverALC icon indicating copy to clipboard operation
audio_CloverALC copied to clipboard

Print: Entry, ":KernelAndKextPatches:KextsToPatch:29 dict", Does Not Exist

Open tetherit opened this issue 8 years ago • 7 comments

Hi there,

When I try to run, I see this:

$ ./audio_cloverALC-110_v1.0r10-2.command 

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

File: audio_cloverALC-110.command_v1.0r10
Release Mode
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 ALC889 (y/n): y
Audio ID: 888 is not supported, continue (y/n): y
Clover Audio ID Injection (y/n): y
Audio IDs:
1 - 3/5/6 port Realtek ALCxxx audio
2 - 3 port (5.1) Realtek ALCxxx audio (n/a 885)
3 - HD3000/HD4000/HD5xx HDMI audio and Realtek ALCxxx audio (n/a 885 & 887/888 Legacy)
Select Audio ID: 
Try again...
Select Audio ID: 2

Download ALC889 files ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24438  100 24438    0     0  33014      0 --:--:-- --:--:-- --:--:-- 33024
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  1404  100  1404    0     0   7052      0 --:--:-- --:--:-- --:--:--  7020
Print: Entry, ":KernelAndKextPatches:KextsToPatch:4 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:5 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:6 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:7 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:8 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:9 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:10 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:11 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:12 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:13 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:14 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:15 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:16 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:17 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:18 dict", Does Not Exist
Print: Entry, ":KernelAndKextPatches:KextsToPatch:19 dict", Does Not Exist
...

And it seems to loop forever :( - any ideas?

tetherit avatar May 23 '16 19:05 tetherit

config.plist damaged, fix or replace.

toleda avatar May 24 '16 00:05 toleda

If I use https://github.com/toleda/audio_CloverALC/blob/master/audio_cloverALC-110.sh instead it does not show this error but I'm still not able to get audio :(

tetherit avatar May 24 '16 11:05 tetherit

See https://github.com/toleda/audio_CloverALC /README/F. Problem Reporting/Attach requested files

toleda avatar May 24 '16 21:05 toleda

Problem is with the comparison = 1 in the script because the string "AppleHDA" occurs twice sometimes in the same dictionary entry.

The solution is to store the count, check whether it is greater than or equal to 1 and subtract the count from the ktpexisting variable, e.g.:

while [ $ktpexisting -ge 1 ]; do
count=$(sudo /usr/libexec/PlistBuddy -c "Print ':KernelAndKextPatches:KextsToPatch:$index dict'" /tmp/config.plist | grep -c "AppleHDA")
if [ $count -ge 1 ]; then
        if [ $(sudo /usr/libexec/PlistBuddy -c "Print ':KernelAndKextPatches:KextsToPatch:$index dict'" /tmp/config.plist | grep -c "x99") = 0 ]; then
        sudo /usr/libexec/PlistBuddy -c "Delete ':KernelAndKextPatches:KextsToPatch:$index dict'" /tmp/config.plist
    fi
    ktpexisting=$((ktpexisting - count))
    index=$((index - 1))
fi

werner77 avatar Aug 05 '16 16:08 werner77

Where in the file do we put this text?

bradybear avatar Aug 09 '16 22:08 bradybear

Fixed, download latest.

toleda avatar Aug 12 '16 02:08 toleda

Excellent. Worked perfectly. Thank you.

bradybear avatar Aug 13 '16 16:08 bradybear