Beta Asus Sandy Bridge Sleep/Wake Fix

Discussion in 'DSDT' started by toleda, Apr 17, 2012.

  1. toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    16,828
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    Apr 17, 2012 #1
    toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    16,828
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    Experimental - Testers Needed
    This fix may enable sleep and wake in Lion on Asus Sandy Bridge systems (P8H67 and P8H61). Installation requires dsdt editing and specific System Preferences and BIOS settings. The best time to try the edits is with a clean install. It is clear a number of third party kexts effect sleep. The clean install provides a base line. These dsdt edits enable sleep on my P8H67-I Deluxe with a clean install of 10.7.3 (and 10.7.2). It is unlikely this solution will solve all Asus P8H67 or P8H61 sleep problems, perhaps a few users will find this solution enables sleep on their systems.

    Update - 8/7/12 - Working in Mountain Lion (OS X 10.8)

    Benefits
    1. Sleep - power button, Apple Menu, System Preferences/Energy Savings
    2. Wake - power button, keyboard, mouse and other USB and/or Bluetooth Devices

    Requirements
    1. Asus P8H67, P8H61 and P8Z68 motherboard
    2. Lion 10.7.3 or newer
    3. Native Lion Power Management - Note 1
    a. AppleIntelCPUPowerManagement.kext_v167.3.0
    4. Extra/dsdt.aml - Note 2

    Tools
    1. DSDTSE v1.4.3 - http://www.osx86.es/?p=610

    Sleep Preventing Kexts - Remove if installed - Note 3
    1. S/L/E/PXHCD.kext - USB3.0 (prevents sleep)
    2. S/L/E/P8P67SATAControllers.kext - Series 6 SATA (prevents sleep)
    3. E/ath3k-firmware-uploader - Asus on board Bluetooth (prevents sleep)

    Solution
    1. BIOS setting
    a. H67/H61 - Advanced/CPU Configuration/Execute Disable Bit/Enabled
    b. P67/Z68 - Advanced/CPU Configuration/Internal PPL Overvoltage/Disabled
    2. dsdt.aml edits
    a. _PTS
    b. PWRB
    3. System Preferences/Energy Savings
    a. Set Computer sleep
    b. Set Display sleep
    a. all boxes checked

    Installation
    1. Downloads/Beta_Asus_Sandy_Bridge_Sleep-Wake_Fix/Read_Me_First

    Attachments
    1. Beta_Asus_Sandy_Bridge_Sleep-Wake_Fix
    View attachment Beta_Asus_Sandy_Bridge_Sleep-Wake_Fix.zip
    Working Sleep
    1. Display off
    2. Processor sleeping/CPU fan off
    3. Power light blinking

    Troubleshooting
    1. Sleep/Power light on - processor not sleeping
    a. Verify/Asus_Sandy_Bridge_Sleep-Wake_Fix dsdt edits
    b. Remove kexts noted above
    c. Remove all third party kexts
    d. Install MacOSXUpdCombo10.7.3
    2. Wake/Power light on - no display
    a. Verify/Asus_Sandy_Bridge_Sleep-Wake_Fix dsdt edits
    b. Verify/BIOS/Advanced/CPU Configuration/Execute Disable Bit/Enabled

    Notes
    1. Works with or without working SpeedStep. Must have installed a or b below.
    a. Patched BIOS: samisnake viewtopic.php?f=14&t=49340
    b. MultiBeast/Drivers & Bootloaders/Miscellaneous/flAked SpeedStepper
    c. Does not work with NullCPUPowerManagement
    2. If you don't have a dsdt.aml, see viewtopic.php?f=14&t=35559&start=0&hilit=make+dsdt
    a. If you don't have a dsdt.aml and don't want one; this will work in an extracted dsdt.aml with only these edits and no other changes.
    3. Removing a kext may not reenable sleep. See Troubleshooting.

    dsdt edits
    Code (Text):

    a. _PTS

        Method (_PTS, 1, NotSerialized)
        {
            Store (Arg0, DBG8)
            If (LAnd (LEqual (Arg0, 0x04), LEqual (OSFL (), 0x02)))
            {
                Sleep (0x0BB8)
            }

            PTS (Arg0)
            Store (Zero, Index (WAKP, Zero))
            Store (Zero, Index (WAKP, One))
            Store (ASSB, WSSB)
            Store (AOTB, WOTB)
            Store (AAXB, WAXB)
            Store (Arg0, ASSB)
            Store (OSFL (), AOTB)
            Store (Zero, AAXB)
            Store (One, \_SB.SLPS)
        }

    b. PWRB

            Device (PWRB)
            {
                Name (_CID, EisaId ("PNP0C0C"))
                Name (_UID, 0xAA)
                Name (_STA, 0x0B)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x08, 0x04))
                }
            }
     
    History
    Out of the box, my P8H67-I Deluxe automatically reboot when it tried to sleep. The biggest issue was going to sleep (dsdt/_PTS). By trying various Method (_PTS…) from the dsdts of users claiming working sleep, I found one that worked from TooSixy's Asus P8H67 Deluxe Install guide with my motherboard. Once going to sleep started working, the next issue was waking up. P67s have the Internal PPL Overvoltage BIOS setting which must be Disabled. For H67, there is a Execute Disable Bit setting which must be enabled. Once wake worked with USB, the last issue was the power button, the system would wake but no display. Again, TooSixy's guide came to the rescue. The PWRB from his dsdt worked on my system. In summary, these fixes are standard in another motherboard dsdt and may represent a sleep solution for at least some, if not most, Asus motherboards.

    Credits:
    TooSixy http://www.tonymacx86.com/viewtopic.php?f=168&t=37056
     
  2. Bassguitarist

    Bassguitarist

    Joined:
    Mar 12, 2011
    Messages:
    59
    Mobo:
    ASUS P8Z68-V
    CPU:
    Intel Core i72600K
    Graphics:
    Gigabyte ATI Radeon R9 270X
    Apr 18, 2012 #2
    Bassguitarist

    Bassguitarist

    Joined:
    Mar 12, 2011
    Messages:
    59
    Mobo:
    ASUS P8Z68-V
    CPU:
    Intel Core i72600K
    Graphics:
    Gigabyte ATI Radeon R9 270X
    Hello Toleda!

    Thanks! :headbang:

    I can confirm that this method works with Asus P8Z68-V motherboard with mod.3203 bios.
    I don't use USB 3.0,Bluetooth, so the sleep is working.
    The native speed stepping also works.
    Everything wake up with mouse click.
     
  3. Greggen

    Greggen

    Joined:
    Jun 28, 2010
    Messages:
    24
    Apr 18, 2012 #3
    Greggen

    Greggen

    Joined:
    Jun 28, 2010
    Messages:
    24
    Great... just when I gave up and sold my P8Z68-V LX and bought a GA-Z68XP-UD3 instead you guys manage to get sleep working, just typical, haha XD And the USB-problems on this board is bugging me.

    How are the P8Z68 boards with sleep and patched BIOS? Does USB wake/sleep/whatever work OOTB (or standard DSDT-edits, like the patches from olarila)? No initDevice errors in kernel.log? And no unmount problems? If thats so I have to go loose another $50 and get a new P8Z68 board ;D

    EDIT: Ok, I got my P8Z68-V LX back and gave the buyer the Z68XP instead and MAAAN I'm happy! Started by updating the BIOS to modified 3707 then went ahead to edit the dsdt. This patch didn't work at all (got a lot of errors) because my PTS weren't event similar with this. So I though, "heck lets try sleep anyway". IT WORKS! OOTB with modified 3707. Wake with powerbutton, USB, Wake Reason ain't ?, All USB-ports are alive. EVERYTHING WORKS! I don't even use a DSDT as of now. Going to try this and that out but I recommend anyone with a Asus Z68 board to try out the new BIOSes, seems like they are updated just for hacks! =D
     
  4. Troj80

    Troj80

    Joined:
    Jan 8, 2011
    Messages:
    2
    Mobo:
    OS X Mountain Liom
    CPU:
    Intel G620 Core DUO 2,6GHz
    Graphics:
    NVidia GT 220
    Mobile Phone:
    Android
    Apr 20, 2012 #4
    Troj80

    Troj80

    Joined:
    Jan 8, 2011
    Messages:
    2
    Mobo:
    OS X Mountain Liom
    CPU:
    Intel G620 Core DUO 2,6GHz
    Graphics:
    NVidia GT 220
    Mobile Phone:
    Android
    Thanks! It's WORK for ASUS P8H67 B3! Good job! :thumbup:
     
  5. HoochShepherd

    HoochShepherd

    Joined:
    Jun 23, 2011
    Messages:
    404
    Mobo:
    Asus p8Z68-v pro
    CPU:
    2600k
    Graphics:
    GTX 570
    Mobile Phone:
    Android
    Apr 21, 2012 #5
    HoochShepherd

    HoochShepherd

    Joined:
    Jun 23, 2011
    Messages:
    404
    Mobo:
    Asus p8Z68-v pro
    CPU:
    2600k
    Graphics:
    GTX 570
    Mobile Phone:
    Android
    tagging this to give it a shot soon-ish.
     
  6. philz

    philz

    Joined:
    Feb 26, 2011
    Messages:
    371
    Mobo:
    MizuMono
    CPU:
    i7 2600K @ 4.8ghz
    Graphics:
    560 Ti 448 Core (GF110)
    Mac:
    MacBook Air
    Classic Mac:
    PowerBook
    Mobile Phone:
    iOS
    Apr 23, 2012 #6
    philz

    philz

    Joined:
    Feb 26, 2011
    Messages:
    371
    Mobo:
    MizuMono
    CPU:
    i7 2600K @ 4.8ghz
    Graphics:
    560 Ti 448 Core (GF110)
    Mac:
    MacBook Air
    Classic Mac:
    PowerBook
    Mobile Phone:
    iOS
    Toleda, you mention this is for P8Z68 boards, would this not work on Maximus gene-Z/Gen 3 for example? After all it is still Z68 ASUS. Curious as I'll be doing a new build tomorrow and looking to finalize the main board :) Thanks in advance this is an amazing solution! (working on a M-ATX performance build)
     
  7. kuhnboy

    kuhnboy

    Joined:
    Apr 22, 2012
    Messages:
    10
    Mobo:
    GA-Z97MX-GAMING 5
    CPU:
    i7-4790K
    Graphics:
    Gigabyte ATI Radeon 6870
    Mobile Phone:
    iOS
    Apr 23, 2012 #7
    kuhnboy

    kuhnboy

    Joined:
    Apr 22, 2012
    Messages:
    10
    Mobo:
    GA-Z97MX-GAMING 5
    CPU:
    i7-4790K
    Graphics:
    Gigabyte ATI Radeon 6870
    Mobile Phone:
    iOS
    So before this DSDT fix, upon choosing sleep from the apple menu, the system would seem to turn off, then turn back on again.

    With these fixes, it goes off, on, off, 3 beeps on, off, on.

    What should I start looking for?
    I have a patched BIOS.
    DSDT created by myself.
    10.7.3
    Everything else is OOTB except for the audio:
    AppleHDA rollback + HDAEnabler888b + ALC887vdHDA_6Ch_RMic_SPDIF
     
  8. toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    16,828
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    Apr 23, 2012 #8
    toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    16,828
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    By "turn off, then turn back on again" do you mean the power light turned off and then it reboot? Attach dsdt and a copy of IOReg.
     
  9. toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    16,828
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    Apr 23, 2012 #9
    toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    16,828
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    Perhaps yes. What happens when you put the Maximus Gene to sleep now?
     
  10. philz

    philz

    Joined:
    Feb 26, 2011
    Messages:
    371
    Mobo:
    MizuMono
    CPU:
    i7 2600K @ 4.8ghz
    Graphics:
    560 Ti 448 Core (GF110)
    Mac:
    MacBook Air
    Classic Mac:
    PowerBook
    Mobile Phone:
    iOS
    Apr 23, 2012 #10
    philz

    philz

    Joined:
    Feb 26, 2011
    Messages:
    371
    Mobo:
    MizuMono
    CPU:
    i7 2600K @ 4.8ghz
    Graphics:
    560 Ti 448 Core (GF110)
    Mac:
    MacBook Air
    Classic Mac:
    PowerBook
    Mobile Phone:
    iOS
    Don't have it yet, so it does not do much of anything ;)

    I'm just building a new system and want a M-ATX board :) Though one that I can still get some OC headroom with so the P8Z68 M-ATX board does not look terribly appealing.

    I'll probably be getting it wendensday, though don't know when I'll get to put it together. I'll let you know though, I don't see how it'd be different being same brand/chipset.
     

Share This Page