Help - Search - Members - Calendar
Full Version: Lid Sleep A Nightmare. Still Not A Clue?
Project OS X Forums > Snow Leopard Guides & Tutorials > New Users Discussion
hotxboy
I can got LID SLEEP FUNCTION USING THE MODE posted on Infinitemac. But have issue wake up. I can wake up my laptop normally using the PWB but not working when close the lid. I googled the DSDT fix and found a partly working way on InfiniteMac but when come to the process of waking up it wake up repeatedly waking and asleep. I`m sure it was not a good way to work. I can see my LID device via IOREG but no detail info. Maybe this code will do, but I`m not sure how.
CODE
                     Method (_REG, 2, NotSerialized)
                    {
                        If (LEqual (Arg0, 0x03))
                        {
                            Store (Arg1, FGEC)
                            Add (PPCM, One, TPST)
                            If (LNotEqual (LSTE, ^^^GFX0.CLID))
                            {
                                If (LNot (^^^GFX0.GLID (LSTE)))
                                {
                                    Store (LSTE, LIDS)
                                    Notify (LID, 0x80)
                                }
                            }

                            Store (0x04, XSEC)
                            Store (XCIN, PWRS)
                            If (LOr (S4FG, S3FG)) {}
                            Else
                            {
                                Sleep (0x2710)
                                If (And (CFGD, One)) {}
                                Else
                                {
                                    If (LOr (LBLM, LLess (XIF1, 0x0BB8)))
                                    {
                                        Store (0x02, LPST)
                                    }

                                    If (XCIN)
                                    {
                                        Store (Zero, LPST)
                                    }

                                    Sleep (0x1F40)
                                    FTHR ()
                                }
                            }

                            Store (Zero, S4FG)
                            Store (Zero, S3FG)
                        }
                    }

It`s get under DEVICE (BA0). Seems related to the lid and sleep. That is as far as I go. Help needed.

HERE GOES MY DSDT.Click to view attachment
18seven
First undo whatever you did. Then add Device (PNLF) to your dsdt.
hotxboy
QUOTE (18seven @ Jan 12 2010, 11:25 PM) *
First undo whatever you did. Then add Device (PNLF) to your dsdt.

As far as I know this fix only add the brightness cosmetic control in the DISPLAY. NOT A OPTION.
laqk
QUOTE (hotxboy @ Jan 16 2010, 02:07 PM) *
As far as I know this fix only add the brightness cosmetic control in the DISPLAY. NOT A OPTION.

Have you actually tried it ? Yes, it does add a "cosmetic" brightness control. But somehow it also seems to enable lid sleep.
My machine would wake on lid open, but not sleep on lid close. Adding the PNLF device to the DSDT solved this problem.
hotxboy
QUOTE (laqk @ Jan 17 2010, 05:20 AM) *
Have you actually tried it ? Yes, it does add a "cosmetic" brightness control. But somehow it also seems to enable lid sleep.
My machine would wake on lid open, but not sleep on lid close. Adding the PNLF device to the DSDT solved this problem.


Thanks for the tip. I`ll try and report later.
18seven
If you bothered to read the post I linked you would have known that.
QUOTE
Add PNLF under SB scope to enable lid0 (clamshell).
hotxboy
QUOTE (18seven @ Jan 19 2010, 12:16 AM) *
If you bothered to read the post I linked you would have known that.


Confirmed, not working either.
hotxboy
QUOTE (laqk @ Jan 17 2010, 06:20 AM) *
Have you actually tried it ? Yes, it does add a "cosmetic" brightness control. But somehow it also seems to enable lid sleep.
My machine would wake on lid open, but not sleep on lid close. Adding the PNLF device to the DSDT solved this problem.


Tried and not working either.
realityiswhere
QUOTE (hotxboy @ Jan 24 2010, 08:19 AM) *
Tried and not working either.


you may wish to post your dsdt.dsl so people can see if everything was done properly.
hotxboy
QUOTE (realityiswhere @ Jan 24 2010, 10:31 PM) *
you may wish to post your dsdt.dsl so people can see if everything was done properly.


My DSDT is Here. You can also see it at my #1.
realityiswhere
QUOTE (hotxboy @ Jan 24 2010, 11:41 AM) *
My DSDT is Here. You can also see it at my #1.


There is no PNLF in this DSDT so people can't tell if you've implemented it correctly.
hotxboy
Click to view attachment
QUOTE (realityiswhere @ Jan 25 2010, 03:41 AM) *
There is no PNLF in this DSDT so people can't tell if you've implemented it correctly.

aND this is what I added. Any advice?
Slice
Your LID device has no _PRW property
CODE
                    Device (LID)
                    {
                        Name (_HID, EisaId ("PNP0C0D"))
                        Method (_LID, 0, NotSerialized)
                        {
                            Return (LIDS)
                        }
                    }

It should be like this
CODE
                    Name (_PRW, Package (0x02)
                    {
                        0x18,
                        0x04
                    })
hotxboy
QUOTE (Slice @ Jan 26 2010, 12:06 AM) *
Your LID device has no _PRW property
CODE
                    Device (LID)
                    {
                        Name (_HID, EisaId ("PNP0C0D"))
                        Method (_LID, 0, NotSerialized)
                        {
                            Return (LIDS)
                        }
                    }

It should be like this
CODE
                    Name (_PRW, Package (0x02)
                    {
                        0x18,
                        0x04
                    })


I added something like that. But it doesn`t seem to work then I mod it back.
CODE
                    Name (_PRW, Package (0x02)
                    {
                        0x18,
                        0x03
                    })


18seven
QUOTE (hotxboy @ Jan 24 2010, 09:48 PM) *
Click to view attachment
aND this is what I added. Any advice?


You have an error that should not let you compile, the HID is duplicated in PNLF. I recommend you make a clean dump from linux (so you don't mistakingly carry over patches) and just add the PNLF patch.
hotxboy
B.T.W do you guys know how to add the SSDTs to the DSDT and get them loaded? I get five SSDTs and 2 CSTs using the Ubuntu Linux and added 5 SSDTs just after the DSDT but cannot compile it. I got a error. Any idea to deal with it?
CODE
Store (_PSS, Local0)
Error    4064 -                                                    Object does not exist ^  (_PSS)
hotxboy
B.T.W do you guys know how to add the SSDTs to the DSDT and get them loaded? I get five SSDTs and 2 CSTs using the Ubuntu Linux and added 5 SSDTs just after the DSDT but cannot compile it. I got a error. Any idea to deal with it?
CODE
Store (_PSS, Local0)
Error    4064 -                                                    Object does not exist ^  (_PSS)
hotxboy
QUOTE (18seven @ Jan 25 2010, 11:52 PM) *
You have an error that should not let you compile, the HID is duplicated in PNLF. I recommend you make a clean dump from linux (so you don't mistakingly carry over patches) and just add the PNLF patch.


No, I don`t have that compile error. Are u sure u r using the latest IASLME tool. I only see a remark when do the compiling. And that`s fine with the remark. Because when I get this remark off screen I`ll have a KP at start-up.
18seven
QUOTE (hotxboy @ Jan 25 2010, 10:20 AM) *
Are u sure u r using the latest IASLME tool.

I don't use that tool and you should not either. I am using the current build from four day old sources so I am quite sure I am more current than you. You could do the same by following this post. Also, just because it compiles doesn't mean you shouldn't correct it.

Take may advise; dump from linux, bag the "helper" app and just add the PNLF patch.
weizh126
CODE
Method (_LID, 0, NotSerialized)
            {
                XOr (LIDS, One, Local0)
                If (Local0)
                {
                    Notify (SLPB, 0x80)
                }
                Else
                {
                    Store (One, LIDS)
                }

                Return (LIDS)
            }

try this one, it works perfectly on my lenovo laptop
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.