09-11-2009, 12:32 AM
|
Cheetah
|
|
Join Date: May 2009
Posts: 10
|
|
Clamshell Sleep via DSDT?
I'm attempting to get SL running on 64bit by removing the needed kexts that only support 32bit and get the needed support by patching my DSDT. I only have 2 issues left which include AppleHDA (no sound after sleep, but enabled via DSDT thanks to mormegil!) and clamshell sleep.
Taken from a post by pentiumpc:
Code:
Device (LID0)
{
Name (_HID, EisaId ("PNP0C0D")) //LID detection
Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x0B,
0x04
})
}
Name (LIDS, One)
Method (_LID, 0, NotSerialized)
{
Store (^^PCI0.SBRG.EC0.SF13, LIDS) //LID register
XOr (LIDS, One, Local0)
IF (Local0) //if LID is closed
{
Notify (SLPB, 0x80) //Set system to sleep
}
Return (LIDS)
}
It looks like he's adding the Method or just those two lines of code, but I can't seem to get it to work with my set up. Advice from any1?
My dsdt:
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)
}
Return (LSTS)
}
Else
{
If (IGDS)
{
Store (LIDS, ^^PCI0.OVGA.CLID)
}
Return (LIDS)
}
}
}
|