09-11-2009, 07:23 PM
|
Cheetah
|
|
Join Date: May 2009
Posts: 10
|
|
Close!!! It sleeps when the Lid is open instead of closed. Right now I can put it to sleep manually but once awake and the lid is open it keeps going back to sleep...
Update:
I tried:
Code:
Device (LID0)
{
Name (_HID, EisaId ("PNP0C0D"))
Name (LSTS, Zero)
Method (_LID, 0, NotSerialized)
{
If (ECOK)
{
If (LEqual (^^PCI0.LPC.EC0.ECLS, One))
{
Store (Zero, LSTS)
}
Else
{
Store (One, LSTS)
}
If (IGDS)
{
Store (LSTS, LIDS)
Store (LSTS, ^^PCI0.OVGA.CLID)
}
If (LIDS)
{
Notify (SLPB, 0x80)
}
Return (LSTS)
}
Else
{
If (IGDS)
{
Store (LIDS, ^^PCI0.OVGA.CLID)
}
Return (LIDS)
}
}
}
Now it sleeps when the lid is closed, but I still get the loop where after wake it keeps going back to sleep... Do I need a Return???
Last edited by chris7519; 09-11-2009 at 07:43 PM.
|