Wow, HDMI audio and sleep in the same day!Khan said:Just to tell you that Sleep WORKS afar the DSDT edits on the first post for the Asus P8H61M-PRO with I5 cpu and HD3000 video.
HDMI audio, Sleep and SpeedStep, the Asus dream realized.Khan said:Yeah! Thanks to you and all. I also have 5 Psteps!
Method (_PTS, 1, NotSerialized) // _PTS: Prepare To Sleep
{
//Store (0x80000008, \_SB.PINX) // --> Trouble, must be removed
\_SB.ISMI (0x90)
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)
}
Trial and error. Start with a clean install and verify sleep (power button, Finder, System Pref/Energy Saver) and wake. Add one third party kext at a time until sleep and wake stops working. Remove last kext installed. Verify sleep and wake works. Continue.I can't get the sleep working on my rig. My mobo is P8P67 Deluxe with the patched version of 2305 bios, running Mountain Lion.
I can sleep with the Power button, and it wakes up ok, but it won't sleep on its own. I've made all the edits and removed the kexts as mentioned, but still no luck.
Any idea what I should try?
DSDT Editing notes: P8Z77-I Deluxe w/0607 BIOS (patched by samisnake), Mountain Lion 10.8.1
Aim: focus on trying to make sleep work.
Stock system (no DSDT):
Sleep appeared to work with all fans etc turning off but immediately "tries" to wake for ~1second, then reboots.
Edits from Toleda's post:
After extracting the DSDT:
1. Search for "_PTS":
Comment out First two lines in this block, i.e.
//Store (SMIM, \SB.PINX)
//\_SB.ISMI (0x90)
2. Search for "Device (PWRB)":
Change "HID" in the first Name line to "CID"
A few lines down, change "Return (GPRW (0x1D, 0x04))" to "Return (GPRW (0x08, 0x04)"
DSDT attempt 1: both edits above as described.
Notes:
- Sleep via apple menu works.
- Sleep via power button works.
- Wake via keyboard works.
- Wake via Power button works.
- Bluetooth devices work properly after wake.
- Sleep via 1 minute schedule (Sysprefs/Energy Saver) works but late - sleeps display after 2 minutes, system after 4-5 minutes. All fans still running, albeit very slow and nearly silent. After ~7-8 minutes something starts running up the fans a bit. Tried keyboard, mouse - no response. Pressed power button. System immediately went to sleep (i.e. the fans at last turned off) for ~1min before auto-waking.
- Using terminal command "sudo pmset schedule sleep (time)" brings up the warning 1 minute beforehand which the user could cancel (thanks apple!). Leaving this warning to time out turns the monitor off, system doesn't sleep for another 3 minutes. Seems to be the same behaviour as system preferences one above. After ~7 minutes the system completely sleeps before waking up again immediately.
- Last check: does the system stay asleep if I use the sleep command from apple menu. Nope, after ~3-4 minutes it auto-wakes. Damn!
- all wakes are successful wakes at least - I wonder which of the above edits did that?
DSDT attempt 2: Only do the second set of edits (PWRB)
Sleep does the immediate wake/restart thing. OK so those two (?) lines are the problem ones.
DSDT attempt 3: Only do the first change to the _PTS block (remove first 2 lines)
- System sleeps, but auto-wakes after ~1min
- Wake via bluetooth works. didn't test anything else I guess it will work roughly the same.
DSDT attempt 4: only comment out the FIRST line in _PTS, not the first two (I thought they were part of one line)
- Sleep via apple menu works. Wakes properly from keyboard.
- Wakes after 2 minutes.