#1
|
|||
|
|||
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) } 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) } } } |
#2
|
|||
|
|||
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 (LSTS) { Notify (SLPB, 0x80) } Return (LSTS) } Else { If (IGDS) { Store (LIDS, ^^PCI0.OVGA.CLID) } Return (LIDS) } } } Core2Quad / MSI P45 Neo2-FR / HD4870 / Snow Leopard |
#3
|
|||
|
|||
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) } } } Last edited by chris7519; 09-11-2009 at 07:43 PM. |
#4
|
|||
|
|||
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) Notify (SLPB, 0x80) } If (IGDS) { Store (LSTS, LIDS) Store (LSTS, ^^PCI0.OVGA.CLID) } Return (LSTS) } Else { If (IGDS) { Store (LIDS, ^^PCI0.OVGA.CLID) } Return (LIDS) } } } Core2Quad / MSI P45 Neo2-FR / HD4870 / Snow Leopard |
#5
|
|||
|
|||
Alright!!! One more kext scratched off the list! It needed to be inserted here:
Code:
If (ECOK) { If (LEqual (^^PCI0.LPC.EC0.ECLS, One)) { Store (Zero, LSTS) Notify (SLPB, 0x80) } Else { Store (One, LSTS) } |
#6
|
|||
|
|||
Glad to help.. Nice one!
Core2Quad / MSI P45 Neo2-FR / HD4870 / Snow Leopard |
#7
|
|||
|
|||
Re: VoodooBattery is only 32bit. Superhai's published the source. Can't it be "ported" and compiled for 64-bit?
-- MacBook Pro - have allergy to nickel in the aluminum casing. So my kid gets an expensive toy! Gateway MX 8738 - Retail, vanilla Snow Leopard 10.6.2 (thanks kizwan!) with Chameleon RC4, modified DSDT. Upgraded to Core 2 CPU (easy to do). Upgraded to 640GB drive. Everything but SD card working. Minor niggles. GMA950 with QE/CI and *no* artifacts. iMac (luxo/lamp) G4 with Tiger. |
#8
|
|||
|
|||
Hi, mormegil.
I HAVE THE SAME PROBLEM CAN U HAVE A CHECK OF MY DSDT AND GIVE ME SOME ADVICE? THANKS IN ADVANCE. REGARS MIKE HERE IS MY DSDT. I ALSO HAVE SOME GFX0 FAMILY MATCH ERRORS. |
#9
|
||||
|
||||
and here is mine as well, i already have sleep on lid close but cannot wake on lid open, and if i sleep, i cannot restart well as well as shutdown, there is no video but there is still activity on the wifi, fans and power monitor.
Hasee W230N iAtkos S3 v2 10.6.3 updated to 10.6.4 via Apple Software Update . Intel T8300 2.4 GHz Core 2 Duo
Intel Mobile GM965 ICH8 . Intel X3100 . Atheros Ar9280 WiFi . Realtek RTL8101E . ALC 883 . Optiarc DVD+RW . KingSpec MLC SSD 32Gb SATA "Do I want a real Mac? Yes of course!!!" |
#10
|
|||
|
|||
thanks to mormegil. my laptop now goes to sleep when i close lid. just an issue: now the restart and shutdown processes have become slow (the system remains blocked on the desktop for 10 seconds doing nothing, and then it restart). i don't know why. has anyone the same problem?
💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers. Last edited by Goten; 05-27-2010 at 03:51 PM. |