NoobsPlanet

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics, posts and unlimited download to our resources, as well as connect with other members through your own private inbox!

[Patch] Wake from sleep black or glitchy screen fix

noobsplanet

Well-known member
Staff member
Administrator
Moderator
This is the patch for those who cannot wake their hackintosh from sleep, mostly upgrading from Sierra to High Sierra facing this problem. If you're new to patching DSDT then see this guide. So, let's not waste time:

Requirements :
Download And Install Darwin Dumper
Download And Install FixEDID
Download Plist Edit Pro

Now, for those who are using my previous Disabling Discrete Graphics also follow the Disable Discrete Graphics in Wake below, others can skip this.
As you have already done a DSDT patch before so I don't explain in detail here. Open you DSDT.dsl (I told you to save the patched dsdt.dsl for future right?) then Click on patch and paste the following code:
AppleScript:
into method label _PTS code_regex ([\s\S]*) replace_matched
begin
External(\\_SB.PCI0.RP01.PEGP._ON, MethodObj)\n
If (CondRefOf(\\_SB.PCI0.RP01.PEGP._ON)) { \\_SB.PCI0.RP01.PEGP._ON() }\n
%1
end;

into method label _WAK code_regex (Return\s+\(.*) replace_matched
begin
External(\\_SB.PCI0.RP01.PEGP._OFF, MethodObj)\n
If (CondRefOf(\\_SB.PCI0.RP01.PEGP._OFF)) { \\_SB.PCI0.RP01.PEGP._OFF() }\n
%1
end;
What we are doing above is enabling the discrete graphics while laptop goes sleep and disabling it in wake. Once this is done reboot and try the sleep and wake if can't wake from sleep then proceed further.

Open the Darwin Dumper Application you have just downloaded above. Inside the Applications > Deselect All Dumps > Check EDID > Run . This will extract EDID information on desktop, Goto EDID Folder And you'll be able to see EDID.bin (Remember this file), . Open FixEDID Application > Click open EDID binary file and open EDID.bin then from the drop down menu select Apple MacBook pro Display and Add Resolution from right mine is 1366x768 > Add Resolution. Then once done click on make button and this will generate files on desktop called DisplayVendorID-xxx . Now open Terminal and Type paste the following command one after another: (Replace xxx with your output folder name)
Terminal:
cp ~/Desktop/DisplayVendorID-xxx /System/Library/Displays/Contents/Resources/Overrides/
sudo chown root /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-xxx
sudo diskutil mount EFI
6667


Again open DisplayProductID-xxxx from DisplayVendorID-xxx with plist editorand copy the value from IODisplayEDID. For example mine looks like below
Code:
00FFFFFF FFFFFF00 061014A0 00000000 0A160104 A51D1278 026FB1A7 554C9E25 0C505400 00000101 01010101 01010101 01010101 0101DA1D 56E25000 2030442D 470058C1 1000001A 9D1756CE 50002130 3F294600 58C11000 001A0000 00FC0043 6F6C6F72 204C4344 0A202020 00000000 00004131 96011000 0009010A 202000E5
Goto EFI/Clover/ and open Config.plist with Clover Configurator and Tick Inject Intel and Inject EDID and paste in Custom EDID[HEX] located at Graphics section then save the config.plist with File > Save. Now reboot the system and sleep/wake should work fine.

68
 
Last edited:

limaho

Limaho
Do I have to move the kext created by fixedid to my L/E folder? Because I did evertything but is not working. Black screen after wake in my internal display. External display works
 

limaho

Limaho
Currently I have a Dell inspiron 7359 running Mojave. Everything is working after some patches and kexts:
Audio
Wifi (Dw1560)
Continuity
Sleep
Backlight
Battery status

However, when system wake after sleep, internal monitor is black. Could you point me what to do?

Thanks.
 

noobsplanet

Well-known member
Staff member
Administrator
Moderator
Do I have to move the kext created by fixedid to my L/E folder? Because I did evertything but is not working. Black screen after wake in my internal display. External display works
It is important that you disable your external card if unsupported, follow the link below . You can install it into any location S/L/E or L/E/ or Clover/Kexts/Other/(recommended). Moving kext to S/L/E/ or L/E/ requires permission and permission fixes. Attach your clover folder.
 

noobsplanet

Well-known member
Staff member
Administrator
Moderator
Currently I have a Dell inspiron 7359 running Mojave. Everything is working after some patches and kexts:
Audio
Wifi (Dw1560)
Continuity
Sleep
Backlight
Battery status

However, when system wake after sleep, internal monitor is black. Could you point me what to do?

Thanks.
You may need to just hold the power button for just 1-2 second or press any keys on keyboard on move your finger to touchpad.
 
Top