Jump to content

Can't wake up from sleep


liujianwei
 Share

23 posts in this topic

Recommended Posts

Go in Console app, and search Wake Reason line.

 

Post the results here!

Thank you for quick reply,when I click sleep and click mouse,I search wake(wake reason doesn't show anything) in console app and I get this

14/11/4 下午11:42:02.674 WindowServer[125]: CGXDisplayDidWakeNotification [30020810003546]: posting kCGSDisplayDidWake

When I click sleep without do anything I can't wake up so I must reboot,I search wake(wake reason doesn't show anything) in console app and I get this

14/11/4 下午11:42:02.674 WindowServer[125]: CGXDisplayDidWakeNotification [30020810003546]: posting kCGSDisplayDidWake14/11/4 下午11:44:35.220 WindowServer[125]: CGXDisplayDidWakeNotification [30173360142358]: posting kCGSDisplayDidWake
14/11/4 下午11:50:15.163 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:25.108 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:25.141 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:25.151 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:25.173 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:25.180 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:25.184 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:25.188 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:25.225 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:25.247 apsd[54]: Attempt to set push wake topics without dark wake enabled: ()
14/11/4 下午11:50:28.606 apsd[54]: Peer [pid=278] requested push wake but lacks APSPushWakeEntitlement
Link to comment
Share on other sites

Hmmm.

 

Do you use DSDT?

Yes,because if I don't use it I can't see OS X login screen and OS X crash,here is my DSDT.

Here is my DSDT edit of WAK


Before


    Method (_WAK, 1, NotSerialized)
    {
        Store (0xFF, DBG1)
        If (LEqual (Arg0, 0x03))
        {
            Store (0x88, SCP)
        }


        SALD (Zero)
        SFAN (0xFF)
        Notify (\_SB.PCI0.PX40.UAR1, Zero)
        If (OSFL)
        {
            Notify (\_SB.PWRB, 0x02)
        }
        Else
        {
            If (LEqual (RTCW, Zero))
            {
                Notify (\_SB.PWRB, 0x02)
            }
        }


        Notify (\_SB.PCI0.USB0, Zero)
        Notify (\_SB.PCI0.USB1, Zero)
        Notify (\_SB.PCI0.USB2, Zero)
        Notify (\_SB.PCI0.USB3, Zero)
        Notify (\_SB.PCI0.USB4, Zero)
        Notify (\_SB.PCI0.USB5, Zero)
        Return (Package (0x02)
        {
            Zero, 
            Zero
        })
    }


After


    Method (_WAK, 1, NotSerialized)
    {
        Store (0xFF, DBG1)
        If (LEqual (Arg0, 0x04))
        {
            If (LEqual (OSFL, Zero))
            {
                If (LEqual (OSFX, 0x03))
                {
                    Store (0x59, SMIP)
                }
                Else
                {
                    Store (0x58, SMIP)
                }
            }


            If (LEqual (OSFL, One))
            {
                Store (0x56, SMIP)
            }


            If (LEqual (OSFL, 0x02))
            {
                Store (0x57, SMIP)
            }


            If (LEqual (OSFX, 0x03))
            {
                Store (0x59, SMIP)
            }
        }


        If (LEqual (Arg0, One)) {}
        If (OSFL)
        {
            Notify (\_SB.PWRB, 0x02)
        }
        Else
        {
            If (LEqual (RTCW, Zero))
            {
                Notify (\_SB.PWRB, 0x02)
            }
        }


        Notify (\_SB.PCI0.USB0, Zero)
        Notify (\_SB.PCI0.USB1, Zero)
        Notify (\_SB.PCI0.USB2, Zero)
        Notify (\_SB.PCI0.USB3, Zero)
        Notify (\_SB.PCI0.USB4, Zero)
        Notify (\_SB.PCI0.USB5, Zero)
        Return (Package (0x02)
        {
            Zero, 
            Zero
        })
    } 

By the way I use clover in independent partition.Does this means computer doesn't wake up OS X at all?I use win7 doesn't sleep because clover boot and without actived win7 partition,does this means my DSDT WAK doesn't work,so OS X need fix this?

DSDT.aml.zip

Link to comment
Share on other sites

I have the same problem since I connected my Dell U2713H through DisplayPort earlier today?!? With my previous monitor (DVI) I had no problems with sleep/wake.

Here is my 'Wake Reason' from the Kernel log:

 

04-11-14 20:51:23,000 kernel[0]: Wake reason: GLAN EHC1 EHC2 XHC HDEF (Network)

Link to comment
Share on other sites

I have the same problem since I connected my Dell U2713H through DisplayPort earlier today?!? With my previous monitor (DVI) I had no problems with sleep/wake.

Here is my 'Wake Reason' from the Kernel log:

 

04-11-14 20:51:23,000 kernel[0]: Wake reason: GLAN EHC1 EHC2 XHC HDEF (Network)

 

U apply patch for USBs? Remove the _PRW methods.

 

I search there are 10 PRW methods,which to delelte?

 

Try delete all.

Link to comment
Share on other sites

now my DFI DK P45 T2RS PLUS finally sleep and wake up works.Simply use



<key>FixDarwin_0002</key>
<true/>

But I don't know what is this like before.Clover wiki http://clover-wiki.z...ation/ACPI said
 



Provide a set of corrections to DSDT to make your system "Darwin" to be identified as "Windows 2001", like most ACPI systems. More ACPI devices will work in this mode. Old way this bit also provide fixes FIX_WAK_200000, DeleteUnused_400000, FIX_ACST_4000000, FIX_S3D_2000000, AddPNLF_1000000, FIX_ADP1_800000.

What's Windows 2001?Windows XP?Seems like this can be done by DSDT.aml,how?
By the way I am cheated by a chinese clover user,he said I can use this to wake up from sleep

<key>HaltEnabler</key>
<true/>

That doesn't work.
I Googled for "DFI Sleep Wake up" and I get some chinese said AppleLPC and Chameleon EHCIacquireYesUSBLegacyOffYes and topic http://www.insanelym...ard-1057/ first I think doesn't wake up from sleep is a USB issue,so I use Clover Configurator to FixUSB and disable USB Legacy in BIOS,but doesn't work.Then I select all ACPI Fixes except FixShutdown(cause shutdown fail),and I get FixDarwin is the key to wake up from sleep.But my USB seems still have little issue,like USB clover can't boot windows 7 SP1 x64,use clover boot USB doesn't work on Windows 7 SP1 x64 Advanced Boot Options screen(can't select Windows 7 SP1 x64 safe mode)wake up from sleep xbox 360 controller LED blink(doesn't know if the xbox 360 controller driver is the problem) need to unplug and plug to stop blink.MacDrive 8 on win7 random let usb keyboard and mouse stop work,and let sleep doesn't work,uninstall Macdrive 8 problem vanish.
Here is my working DSDT.aml and config.plist.

config.plist.zip

DSDT.aml 3.zip

Link to comment
Share on other sites

@cuthead, you have the same problem I had with my Dell 530. I looked at your DSDT and it has EXACTLY the same _INI Method as I have.

The problem is that Yosemite starts by setting _OS variable as "Microsoft Windows NT" and that breaks Wake in some hackintoshes.

 

See my post here.

You can use the Clover config.plist key FixDarwin or you can modify your DSDT like I did so that it does not check for Windows NT or 2001 or 2006.

  • Like 1
Link to comment
Share on other sites

@cuthead, you have the same problem I had with my Dell 530. I looked at your DSDT and it has EXACTLY the same _INI Method as I have.

The problem is that Yosemite starts by setting _OS variable as "Microsoft Windows NT" and that breaks Wake in some hackintoshes.

 

See my post here.

You can use the Clover config.plist key FixDarwin or you can modify your DSDT like I did so that it does not check for Windows NT or 2001 or 2006.

Thank you so much,it works.How do you know that?I prefer DSDT cause it works like more "native".

Link to comment
Share on other sites

Thank you so much,it works.How do you know that?I prefer DSDT cause it works like more "native".

You are welcome.

I found it by systematically debugging the DSDT.

I used Rehabman's ACPIDebug.kext that intercepts debug statements in the DSDT.

I put debug statements in the DSDT at certain places I thought where the problem was.

And that's how I found that Yosemite has a bug which set's _OS to "Microsoft Windows NT"

 

I agree with you - better to fix your own DSDT as it can also be used with Chameleon.

Link to comment
Share on other sites

You are welcome.

I found it by systematically debugging the DSDT.

I used Rehabman's ACPIDebug.kext that intercepts debug statements in the DSDT.

I put debug statements in the DSDT at certain places I thought where the problem was.

And that's how I found that Yosemite has a bug which set's _OS to "Microsoft Windows NT"

 

I agree with you - better to fix your own DSDT as it can also be used with Chameleon.

Seems like Microsoft Windows NT is not a _OS variable because Windows NT doesn't exist on PC,Windows 2001 and Windows 2006,FixDarwin is.FixDarwin and _INI seems works on different way.FixDarwin set _OS to Windows 2001,_INI fix another variable which all make wake up works.

Link to comment
Share on other sites

  • 5 months later...

@cuthead, you have the same problem I had with my Dell 530. I looked at your DSDT and it has EXACTLY the same _INI Method as I have.

The problem is that Yosemite starts by setting _OS variable as "Microsoft Windows NT" and that breaks Wake in some hackintoshes.

 

See my post here.

You can use the Clover config.plist key FixDarwin or you can modify your DSDT like I did so that it does not check for Windows NT or 2001 or 2006.

 

Hello! I have the "Attempt to set push wake topics without dark wake enabled: ()" problem on my laptop. I am runniny Yosemite10.10.2, Chameleon for mac. I tried your solution but it is strtange that my DSDT does NOT have the SAME _INI method. Can you take a look? Here is my DSDT file:DSDT.zip

Link to comment
Share on other sites

Hello! I have the "Attempt to set push wake topics without dark wake enabled: ()" problem on my laptop. I am runniny Yosemite10.10.2, Chameleon for mac. I tried your solution but it is strtange that my DSDT does NOT have the SAME _INI method. Can you take a look? Here is my DSDT file:attachicon.gifDSDT.zip

 

You have not said what is your problem.

You have quoted an output from a log file.

Does your laptop wake ?

 

Your DSDT has a METHOD called MSOS that is called from _INI. MSOS is checking for the OS type.

That method RETURNS a value in the variable OSFG but it's not clear to me what that value should be for Darwin (OS X).

You can try replacing the string "Windows 2001" with "Darwin" in that method and recompile your DSDT.

 

BTW, that MSOS method has a bug. See code below. There is a RETURN and there's a check for Linux. That check will NEVER happen because of the return statement BEFORE it:

                
                ....
                }

                Return (OSFG)
                If (_OSI ("Linux"))
                {
                    Store (OSEG, OSFG)
                }

                Return (OSFG)

Link to comment
Share on other sites

 

You have not said what is your problem.

You have quoted an output from a log file.

Does your laptop wake ?

 

Your DSDT has a METHOD called MSOS that is called from _INI. MSOS is checking for the OS type.

That method RETURNS a value in the variable OSFG but it's not clear to me what that value should be for Darwin (OS X).

You can try replacing the string "Windows 2001" with "Darwin" in that method and recompile your DSDT.

 

BTW, that MSOS method has a bug. See code below. There is a RETURN and there's a check for Linux. That check will NEVER happen because of the return statement BEFORE it:

                
                ....
                }

                Return (OSFG)
                If (_OSI ("Linux"))
                {
                    Store (OSEG, OSFG)
                }

                Return (OSFG)

 

 

Sorry that I failed to mention my exact problem. Mine is the very same as @cuthead---I click sleep and every thing went down, the fan stop spining. But laptop keyboard & touchpad cannot wake my PC. When I press I key or power button, everything seems to wake because I can clearly see the HDD light turns on and fan starts to spin again. The only problem is the screen remains black all the time. I search "hibernate" in the system.log and nothing. Search "wake" and get the message above. 

 

However,  I am excited to reply that the problem is perfectly solved now! I did as you told---replacing the string "Windows 2001" with "Darwin" in that method----and wala, Sleep/Wake works perfect now. Really appreciate your help!

 

You have not said what is your problem.

You have quoted an output from a log file.

Does your laptop wake ?

 

Your DSDT has a METHOD called MSOS that is called from _INI. MSOS is checking for the OS type.

That method RETURNS a value in the variable OSFG but it's not clear to me what that value should be for Darwin (OS X).

You can try replacing the string "Windows 2001" with "Darwin" in that method and recompile your DSDT.

 

BTW, that MSOS method has a bug. See code below. There is a RETURN and there's a check for Linux. That check will NEVER happen because of the return statement BEFORE it:

                
                ....
                }

                Return (OSFG)
                If (_OSI ("Linux"))
                {
                    Store (OSEG, OSFG)
                }

                Return (OSFG)

 

 

Sorry that I failed to mention my exact problem. Mine is the very same as @cuthead---I click sleep and every thing went down, the fan stop spining. But laptop keyboard & touchpad cannot wake my PC. When I press I key or power button, everything seems to wake because I can clearly see the HDD light turns on and fan starts to spin again. The only problem is the screen remains black all the time. I search "hibernate" in the system.log and nothing. Search "wake" and get the message above. 

 

However,  I am excited to reply that the problem is perfectly solved now! I did as you told---replacing the string "Windows 2001" with "Darwin" in that method----and wala, Sleep/Wake works perfect now. Really appreciate your help!

Link to comment
Share on other sites

However,  I am excited to reply that the problem is perfectly solved now! I did as you told---replacing the string "Windows 2001" with "Darwin" in that method----and wala, Sleep/Wake works perfect now. Really appreciate your help!

 

You are welcome.

Link to comment
Share on other sites

  • 5 months later...

OK I made a DSDT Patch

 

# Change methods ^_INI (to fix wake up from sleep fail)

#

into method label ^_INI parent_type Device parent_label PX40 remove_entry;

into Device label PX40 insert

begin

Method (^_INI, 0, NotSerialized)\n

{\n

Store (0x59, SMIP)\n

Store (Zero, OSFL)\n

Store (0x04, OSFX)\n

}\n

end;

Link to comment
Share on other sites

 Share

×
×
  • Create New...