View Single Post
 
Old 01-31-2010, 02:11 AM
Nameci's Avatar
Nameci Nameci is offline
Jaguar
 
Join Date: Jan 2010
Posts: 30
Quote:
Originally Posted by pentiumpc View Post
Most portable system don't sleep on closing the LID, I tried to find a DSDT fix for it but cannot find it. (google is my best friend.) so I wrote 1 to fix my own.

If you have a better or alternative method, please let me know. Thanks.

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)
}


LID device should be easy to find, just need to add a line to notify the system to sleep.

On most system, (I think) depends on the OS to set the system to sleep bit OS X don't understand the notification sent by the LID device, so I did it in the hardware instead.
Noob here.

Never did work on my dsdt, I have errors after compiling on which it cannot find the registers. After much of googling, I have edited one value on my dsdt, on the LID0, instead of 0x03 I have made it to 0x04. I have sleep on lid close now, but I still don't have wake on lid open or wake on keyboard press after sleep via Fn+F1.

Here is my DSDT.dsl if somebody care to point me to the right direction.

Thanks in advance.
Attached Files
File Type: zip DSDT.dsl.zip (14.7 KB, 4 views)

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!!!"

Last edited by Nameci; 01-31-2010 at 02:15 AM. Reason: Forgot to attach file
Reply With Quote