View Single Post
 
Old 02-08-2010, 12:13 AM
walterav walterav is offline
Jaguar
 
Join Date: Aug 2009
Posts: 45
Quote:
Originally Posted by fishcow View Post
OSXRestart does solve the restart after sleep issue, however I can't get Shutdown to work if I remove Ev0reboot.
Apparently you can fix this in DSDT - but I have no idea
Quote:
Originally Posted by walterav View Post
I asked for some extra input. Keep ya updated...
Shutdown fix DSDT solution by MasterChief please test!
http://www.insanelymac.com/forum/ind...opid=1405756&#

Change the following two segments of your DSDT, "Device (SBRG)" and "_PTS" .
original _PTS
Code:
Method (_PTS, 1, NotSerialized)
    {
        Store (Arg0, DBG8)
        PTS (Arg0)
        Store (Zero, Index (WAKP, Zero))
        Store (Zero, Index (WAKP, One))
        If (LAnd (LEqual (Arg0, 0x04), LEqual (OSFL (), 0x02)))
        {
            Sleep (0x0BB8)
        }

        Store (ASSB, WSSB)
        Store (AOTB, WOTB)
        Store (AAXB, WAXB)
        Store (Arg0, ASSB)
        Store (OSFL (), AOTB)
        Store (Zero, AAXB)
    }
patched _PTS #added part to begin and a } at end
Code:
Method (_PTS, 1, NotSerialized)
    {
        If (LEqual (Arg0, 0x05))                               // S5 (shutdown).
        {
            Store (One, \_SB.PCI0.SBRG.AG3E)                   // Return to S5 after a power failure.
        }
        Else
        {
        Store (Arg0, DBG8)
        PTS (Arg0)
        Store (Zero, Index (WAKP, Zero))
        Store (Zero, Index (WAKP, One))
        If (LAnd (LEqual (Arg0, 0x04), LEqual (OSFL (), 0x02)))
        {
            Sleep (0x0BB8)
        }

        Store (ASSB, WSSB)
        Store (AOTB, WOTB)
        Store (AAXB, WAXB)
        Store (Arg0, ASSB)
        Store (OSFL (), AOTB)
        Store (Zero, AAXB)
        }
    }
original Device (SBRG)
Code:
Device (SBRG)
            {
                Name (_ADR, 0x001F0000)
                Device (IELK)
// rest of device IELK
patched Device (SBRG) #added a part between Name (_ADR,xxx and Device (IELK)
Code:
            Device (SBRG)
            {
                Name (_ADR, 0x001F0000)
                // Newly added for EC support.
                OperationRegion (LPC0, PCI_Config, 0xA0, 0x54)    // General PM Configuration 3 Register (ICH9R-316972.pdf / 13.8.1.3 / page 492).
                Field (LPC0, AnyAcc, NoLock, Preserve)
                {
                        ,   10, 
                    XPME,   1,                    // Bit 10 - BIOS_PCI_EXP_EN.
                            Offset (0x04),            // General PM Configuration 3 Register (ICH9R-316972.pdf / 13.8.1.3 - / page 492).
                    AG3E,   1,                    // Bit 0 Ð AFTERG3_EN.
                            Offset (0x50),            // Root Complex Base Address Register (ICH9R-316972.pdf / 13.1.35 / page 451).
                    RCBA,   32                    // Root Complex Base Address.
                }
                Device (IELK)
// rest of device IELK
So far 10 and more successful shutdowns in a row, and sleep and wake and restart after sleep all working... this is on 10.5.8

Last edited by walterav; 02-09-2010 at 12:59 AM.
Reply With Quote