Contribute
Register

Beta Asus Sandy Bridge Sleep/Wake Fix

Status
Not open for further replies.
philz said:
I'd agree, but it's a Z68 board ;) or do you think this Z68 will have more in common with the Z77's?

This isn't the Maximus V that's Z77, it's the Maximus IV thats Z68, using the same 3K BIOS platform as the P8Z68's (in fact refers to P8Z68 all the time in the manual).

Thats why I'm confused on the DSDT edits.

P.S.
Have gotten one instance of delayed sleep (~3-5 mins after the 1 min setting mark) that is similar to a past Z68-UD4P I had.
My mistake, I assumed the wrong architecture. The conclusion is valid. Also, the delay going to sleep is normal.
 
philz said:
I've never seen that on a hack, but it's possible to change the default to hibernation (google the instructions, no different from real/fake mac's). It might be dependent on what system definition you are using.

Though in all honesty my previous gen iMac never hibernated no matter how long it was on. Just FYI. Macbook Air does dependent on battery level.

Maybe you're right on the desktop systems they don't hibernate. I swear I remember on possibly the laptops if you hold down the option key Sleep in the Apple menu changes to Hibernate.
 
toleda said:
philz said:
I'd agree, but it's a Z68 board ;) or do you think this Z68 will have more in common with the Z77's?

This isn't the Maximus V that's Z77, it's the Maximus IV thats Z68, using the same 3K BIOS platform as the P8Z68's (in fact refers to P8Z68 all the time in the manual).

Thats why I'm confused on the DSDT edits.

P.S.
Have gotten one instance of delayed sleep (~3-5 mins after the 1 min setting mark) that is similar to a past Z68-UD4P I had.
My mistake, I assumed the wrong architecture. The conclusion is valid. Also, the delay going to sleep is normal.


So your saying that a DSDT of a similar board that works needs to be found to make a proper patch? and that Energy Saver working (as you mention in your original post) is with the delay?

As I've had it working without delay on past systems, there must be a reason for the delay. I'll see what I can come up with then.
 
toleda said:
Experimental - Testers Needed
This fix may enable sleep and wake in Lion on Asus Sandy Bridge systems (P8H67, P8H61, P8Z68). 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, P8H61 or P8Z68 sleep problems, perhaps a few users will find this solution enables sleep on their systems.

I finally got sleep/wake working ok on my P8Z68-VPro (non Gen3), works from PWRB, usb mouse or keyboard, autosleep or provoked sleep from the apple menu.
Works under 10.6.8 and 10.7.3
Run ok with USB3, Firewire, Marvell and JMicron enabled in bios. I have not tried with Bluetooth as I have not any BT hardware.

Apart from the dsdt edits, I had to modify bios settings:
- Internal PLL Overvoltage : disabled
- Execute Disable bit : Enabled
- CPU C1E: enabled
- CPU C3 report : Enabled
- CPU C6 Report : Enabled
- Legacy USB Support : Disabled
- Legacy USB3 Support : disabled

The dsdt edit I use :

SBUS Edit: needeed to load SMBus and avoid the "AppleSMBusPCI:: start failed" error during boot.
Code:
        Device (SBUS)
        {
			Name (_ADR, 0x001F0003)
			Device (BUS0)
			{
				Name (_CID, "smbus")
				Name (_ADR, Zero)
				Device (DVL0)
				{
					Name (_ADR, 0x57)
					Name (_CID, "diagsvault")
					Method (_DSM, 4, NotSerialized)
					{
						Store (Package (0x02)
							{
								"address", 
								0x57
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}
				}
			}

HPET
Code:
                Device (HPET)
                {
                    Name (_HID, EisaId ("PNP0103"))
                    Name (_UID, Zero)
                    Name (BUF0, ResourceTemplate ()
                    {
                    IRQNoFlags ()
                        {0}
                    IRQNoFlags ()
                        {8}
                        Memory32Fixed (ReadWrite,
                            0xFED00000,         // Address Base
                            0x00000400,         // Address Length
                            _Y10)
                    })
                    Method (_STA, 0, NotSerialized)
                    {
                    	Return (0x0F)
                    }
                    Method (_CRS, 0, Serialized)
                    {
                        If (HPAE)
                        {
                            CreateDWordField (BUF0, \_SB.PCI0.LPCB.HPET._Y10._BAS, HPT0)
                            If (LEqual (HPAS, One))
                            {
                                Store (0xFED01000, HPT0)
                            }
                            If (LEqual (HPAS, 0x02))
                            {
                                Store (0xFED02000, HPT0)
                            }
                            If (LEqual (HPAS, 0x03))
                            {
                                Store (0xFED03000, HPT0)
                            }
                        }
                        Return (BUF0)
                    }
                }

EHC1
Code:
            Method (_DSM, 4, NotSerialized)
            {
                Store (Package (0x06)
                    {
                        "device-id", 
                        Buffer (0x04)
                        {
                            0x3a, 0x3a, Zero, Zero
                        },
                        "device_type", 
                        Buffer (0x05)
                        {
                            "EHCI"
                        },
                        "AAPL,clock-id", 
                        Buffer (One)
                        {
                            One
                        }
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }

UHCI
Code:
            Method (_DSM, 4, NotSerialized)
            {
                Store (Package (0x06)
                    {
                        "device-id", 
                        Buffer (0x06)
                        {
                            0x3c, 0x3a, Zero, Zero
                        },
                        "device_type", 
                        Buffer (0x05)
                        {
                            "UHCI"
                        },
                        "AAPL,clock-id", 
                        Buffer (One)
                        {
                            0x02
                        }
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }

I do not use or provide DSDT editor script, as I use TextWrangler to do my edits.
I'l paste a zip file containing my "factory" original DSDT without any edits and 2 diff files generated with my modified DSDT, one with minimal edits, the other with one more cosmetic edit for my Sapphire HD6850.

Only glitch remaining is probably in the bios: the memory diagnostic error on two memory banks in "About this Mac".
Was not there with 1101 genuine or patched bios.

Enjoy :wave:
 

Attachments

  • P8Z68-VPro_3203P_Diffs.zip
    48.3 KB · Views: 139
when add in dsdt cpu section,
Code:
Scope (\_PR)
{
Processor (CPU0, 0x01, 0x00000410, 0x06)
{
}
Processor (CPU1, 0x02, 0x00000410, 0x06)
{
}
Processor (CPU2, 0x03, 0x00000410, 0x06)
{
}
Processor (CPU3, 0x04, 0x00000410, 0x06)
{
}
Processor (CPU4, 0x05, 0x00000410, 0x06)
{
}
Processor (CPU5, 0x06, 0x00000410, 0x06)
{
}
Processor (CPU6, 0x07, 0x00000410, 0x06)
{
}
Processor (CPU7, 0x08, 0x00000410, 0x06)
{
}
}
and add in /Extra SSDT-1.aml (i5-2310)
Sleep don't work. Monitor is turned off and nothing more.
 
Sleep works fine for me if I don't have the USB3 kext installed. When PXHCD.kext is installed, my hackintosh will go to sleep for 5 seconds and then wake up immediately.

Is there any fixes for this yet?
 
Can anyone test/confirm if wake-on-LAN works (using Intel wired NIC onboard)?
 
Francis said:
I finally got sleep/wake working ok on my P8Z68-VPro (non Gen3), works from PWRB, usb mouse or keyboard, autosleep or provoked sleep from the apple menu.
Works under 10.6.8 and 10.7.3
Run ok with USB3, Firewire, Marvell and JMicron enabled in bios. I have not tried with Bluetooth as I have not any BT hardware.
Great work, thanks for your excellent documentation. Regarding USB, I only changed the names. I find the Asus/AMI USB sleep/wake works OOB much better than anything from Gigabyte. The PXHCD.kext prevents sleep on my motherboard.
 
Status
Not open for further replies.
Back
Top