This kext (actually Lilu friend) provides you the ability to fix the lid wake issue after resuming from sleep on macOS. Comparing the previous binary patch, EnableLidWake (v3.4+)
gives you a more natural, effective and general way to fix the internal display sleep issue in memory.
Lilu.kext 1.2.0
and later
macOS version that is greater than 10.10.2 (because previous OS X do not have this issue)
Inject correct ig-platform-id for your system.
Place it under any bootloader injection folder or /Library/Extensions
then reboot.
xcodeproj
file linkage to Lilu's APIput back
methodCopyright (c) 2017-2018 syscl and coderobe. All rights reserved.