Hi RehabMan, thanks for the guide.
I am still having some issues with battery after patching, namely it doesn't report correct percentage. Although it correctly detects when AC adapter is plugged in or removed, it mostly says "not charging" in the menu bar, while it is in-fact charging but the percentage isn't just moving up. When discharging, it's stuck on the same percentage as well, until the battery power runs out. This same behavior happens in Windows as well (I'm multi-booting), but it was working correctly before installing mac. Draining the battery and charging while booted in Windows fixes the issue, but once I boot into macOS, it starts acting up again.
I have attached my battery patches made by following this guide, please take a look. I have only one doubt with the 256-bit field (SMD0), it appears to be declared twice in the DSDT. One in the EC0 device and another in the global scope. The one declared in the EC0 device appears to be referenced only once - an EC write (I patched the method appropriately), I didn't patch the other references as they weren't within the EC0 device, therefore they're probably referencing the one declared in the global scope. Please take a look at the DSDT and patches. Thanks.
I have made some earlier patches to the DSDT before applying my battery patches. The patches are all from your patch repo:
dir /system
- system_WAK2.txt
- system_HPET.txt
- system_SMBUS.txt
- system_IRQ.txt
- system_RTC.txt
- system_OSYS.txt
- system_Mutex.txt
- and also your brightness keys patch from here:
https://www.tonymacx86.com/threads/guide-patching-dsdt-ssdt-for-laptop-backlight-control.152659/
Here are my troubleshooting files. Thanks in advance.