@BlvckBytes
I have a Zbook 17 G5 and I'm using the battery SSDT patch you have on your github page, and while it works as far as showing the battery status, it has an unintended side effect.
Native Audio using AppleALC only partially works.
I've tried renaming EC0 -> EC, as well as created a fake EC, and the results are the same.
If I don't use your patch, audio works as expected, headphones, speaker, mic input, etc... across sleep, etc... perfect.
But If I use your battery patch, the speaker output becomes erratic, sometimes it works for a couple seconds, and then silence, sometimes it works correctly but after sleep nothing, sometimes I get what seems like loudness DSP being applied to the output, etc...
This bug doesn't seem to be affecting the headphone out or the mic inputs, so I guess it must have something to do with the speaker amplifier, as the system "behaves" as if everything is ok and working (no errors) but silence from speaker out.
What could it be?, I'm guessing one of your methods could be causing this?
VoodooHDA "works" but I prefer the automatic plug switching, that the O/S remembers volume and output across reboots, as well as the possibility of HDMI audio if I find a way, and I've already done my homework and compiled my custom applealc with my codec (CX 8400)
I know your machine is a different model, but try for your build:
For the SD Card reader
https://github.com/sinetek/Sinetek-rtsx
For HDMI outputs, try:
add boot arg: agdpmod=vit9696
And inject the following framebuffer info (In my case I'm using the built in screen + 2 more.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AAPL,ig-platform-id</key>
<data>AACbPg==</data>
<key>enable-hdmi20</key>
<data>AQAAAA==</data>
<key>enable-lspcon-support</key>
<data>AQAAAA==</data>
<key>framebuffer-con1-alldata</key>
<data>AQUJAAAIAACHAQAA</data>
<key>framebuffer-con1-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con2-alldata</key>
<data>AwQKAAAIAACHAQAA</data>
<key>framebuffer-con2-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con2-has-lspcon</key>
<data>AQAAAA==</data>
<key>framebuffer-con2-preferred-lspcon-mode</key>
<data>AQAAAA==</data>
<key>framebuffer-patch-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-portcount</key>
<data>AwAAAA==</data>
<key>hda-gfx</key>
<string>onboard-1</string>
</dict>
</plist>
If we can figure the battery/EC bug, then the only 2 items on the to-do-list are Thunderbolt 3 hotplug (need a device to test my patches) and a custom voodoo input kext to enable the trackpad buttons alongside with voodooI2C.