View Single Post
 
Old 02-12-2010, 10:28 AM
walterav walterav is offline
Jaguar
 
Join Date: Aug 2009
Posts: 45
Quote:
Originally Posted by kjun5huo View Post
My friend gave me a hint about DSDT patch for sleep.
I try it. It works perfect. Now I have only two kexts (fakesmc.kext & AD1988bFix.kext) in E/E.
Restart, Sleep/Wake, Shutdown, Restart after sleep/wake all is good.
This is the hack for sleep.
At the end of the _WAK method, this must be added:

Return (Package (0x02)
{
Zero,
Zero
})

ExampleMy DSDT for P5K-E wifi)

Method (_WAK, 1, NotSerialized)
{
ShiftLeft (Arg0, 0x04, DBG8)
WAK (Arg0)
If (IOWK) {}
Else
{
Notify (\_SB.PWRB, 0x02)
}

If (ASSB)
{
Store (WSSB, ASSB)
Store (WOTB, AOTB)
Store (WAXB, AAXB)
}

If (DerefOf (Index (WAKP, Zero)))
{
Store (Zero, Index (WAKP, One))
}
Else
{
Store (Arg0, Index (WAKP, One))
}

Return (WAKP)
}

Return (Package (0x02)
{
Zero,
Zero
})


Good luck !!
Nice discovery! So no more sleepenabler needed in Snow? I'll look if its there in my DSDT already. The only thing that made my pc sleep directly was fixing the USB in DSDT but thats for Leo.

Hibernate:
Hibernate works for me after creating a sleepimage first in terminal "make sure secure virtual memory is disabled in System Preferences > Security". Download the deepsleep widget. http://deepsleep.free.fr/deepsleep_1.1.zip # leopard only...
Code:
sudo pmset -a hibernatemode 1 #creates image file, hibernate works without widget, no STR3 anymore.
#restart and test if hibernate indeed works
sudo pmset -a hibernatemode 3 #restores to both STR3 and hibernate
#restart and test if STR3 sleep again works
Now you can sleep from the Apple menu, and hibernate with the widget!

BTW kjun5huo could you edit your post and put the DSDT between CODE quotes. It makes it easier to read . I self discovered this feature also to late but makes reading a lot easier...

Last edited by walterav; 02-12-2010 at 10:43 AM.
Reply With Quote