Jump to content
Welcome to InsanelyMac.com - No more ads! And some exciting news... Read more... ×

EnableLidWake — fix lid wake issues for Intel Graphics

4 posts in this topic

Recommended Posts

EnableLidWake.kext provides fix for Intel integrate graphics lid wake issue(enable internal display after sleep). This a Lilu plugin that provides users an alternative way to enable their lid wake after resuming from sleep. 


Support platform: Haswell, Skylake and later on Kabylake...


Usage: Install Lilu.kext + EnableLidWake.kext(and yes, you can inject it through bootloader)


Here's the source code: https://github.com/syscl/EnableLidWake


Here's the pre-built version of EnableLidWake.kext



Credit: @vit9696 and his Lilu.kext

Credit syscl for the lid wake patches


Good luck!


Share this post

Link to post
Share on other sites

Hi, firstly thanks for this repo.


I saw something not very good though...

1. As for logging, SYSLOG and DBGLOG macro from <Lilu/Headers/kern_util.hpp> have already contained the product name, and therefore it's better not to repeat them.

#define SYSLOG(str, ...) IOLog( xStringify(PRODUCT_NAME) ": " str "\n", ## __VA_ARGS__)

#ifdef DEBUG
#define DBGLOG(str, ...)																\
	do {																				\
		if (ADDPR(debugEnabled))										\
			IOLog( xStringify(PRODUCT_NAME) ": (DEBUG) " str "\n", ## __VA_ARGS__);		\
	} while(0)
#define DBGLOG(str, ...) do { } while(0)

2. You don't really need any API from <mach/vm_map.h> and <IOKit/IORegistryEntry.h> and thus they can be simply commented.

3. I suppose that only one of these kexts (Azul/SKLFB/KBLFB, etc) will be loaded at the same time, yes, your "break" should prove this true, and I think the whole processKext() can be optimized. (See attachment below)



Share this post

Link to post
Share on other sites

Hi All

Wake up my system after install thunderbolt card.

If I press sleep button went to sleep after 2 second wake up agan.

Please help for fix this.

Thank you.


Edited by nmano

Share this post

Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By bernatjmoll
      Hello, could someone tell me what is this black screen?
      I am trying to install the beta 5 of big sur on a hackintosh with catalina. I have made a bootable USB and I have updated the version of opencore to 0.6.0. The EFI folder that I am using on the USB is the same as the one with which I turn on my hackintosh in Catalina and it works (in Catalina, not big sur). 
      I don't need big sur urgently, but I would like to install it when the official version comes out, and if problems appear in the installation when the latest version comes out, I won't have time to solve it, so if someone can help me it would be of great help.
      My specs are: i5 9600k, Vega 54 (with bios of 64)
    • By melamangiata
      Hello, these are my pc specs:
      H97M-D3H Gigabyte
      HD 4600 as a gpu
      4gb DDR3
      SSD 256gb
      I attach my EFI folder, i removed only the mac serial.
      I installed Catalina 10.15.6 with OpenCore 0.6.0, every things is working except for the wakeup.
      I put the pc in stop form the apple icon, the monitors turns off, the pc turns "off".
      When i push a keyboards button the pc turns on also the monitors turns on, but the screen is still black. Force rebooting is required. Any advice?
      Thank you.
    • By dloprios97
      Hi everyone,

      I'm trying to install MacOS Catalina on the ACER C22-760 (i3 6100U, 520 HD)

      I did all the usual prep to install the system, especially as I've done hackintoshes with the same specs in the past.

      But after the moment it boots up, the screen goes black. So I decided to install the system booted in 0x12345678 and then fix the graphics.

      Long story short, with the installation done I've tried every single combination to fix the graphics and found out that:
      Booting with a 0x12345678, a 1080p monitor is detected, but obviously, no acceleration. Booting only with AAPL,ig-platform-id set to 19160000, the system boots with complete acceleration but no monitor attached into any framebuffer. About this Mac reports a 1280 x 1024 monitor (Found using Anydesk and ioreg remotely.) Changing the connector type to DP or HDMI, Internal o External, platform-id is useless. This system is getting me anxious. Because I don't find any fix for it.
      Someone can help me out? Love ya!
      PD: The system is an All In One with no HDMI port.
      Fernando’s MacBook Pro.ioreg
    • By arftjsr
      I am a novice on hackintosh. I have just installed Mojave 10.14.1 hackintosh on my HP 840 G2 Core i5 5300 8 GB Ram Intel HD Graphics 5500 Realtek RTL3228 Codec sound card. I just fix graphics and sound with the search internet. But I Can't fix Sleep issue anyhow. I have tried many many time but nothing result me.
      I tried darkwake = 0-10 but not works. And also i used hibernationfixup.kext on my S/L/E.

      My problem is :
      I sleep my laptop it sleep well. but when I press any key to wake up it wake up but with black screen. I tired with external monitor. it let me log in back, But no command, shutdown, reboot does not work.

      Please help me !

      I attach all necessary file