Comment 243 for bug 752542

Revision history for this message
Albert Vilella (avilella) wrote : Re: [Bug 752542] Re: ACPI DSDT info

You probably need to call _PS0 and _PS3 instead of calling the DON and
DOFF methods straightaway:

    Scope (\_SB.PCI0.PEGR.GFX0)
    {
        Name (DGPS, Zero)
        Name (_PSC, Zero)
        Method (_PS0, 0, NotSerialized)
        {
            Store (0xD0, DBG8)
            Store (Zero, _PSC)
            If (LNotEqual (DGPS, Zero))
            {
                Store ("PS0: Need to power on dGPU", Debug)
                Store (0xC1, DBG8)
                \_SB.PCI0.PEGR.GFX0.DON ()
                Store (0xC2, DBG8)
                Store (Zero, DGPS)
                Store (Zero, \_SB.PCI0.PEGR.HDAE)
                \_SB.PCI0.LPCB.EC0.TSES ()
            }
        }

       Method (_PS3, 0, NotSerialized)
        {
            Store (0xD3, DBG8)
            If (LEqual (\OMPR, 0x03))
            {
                Store ("PS3: Driver wants to power off dGPU", Debug)
                If (LEqual (DGPS, Zero))
                {
                    Store (0xC3, DBG8)
                    \_SB.PCI0.LPCB.EC0.TSDS ()
                    \_SB.PCI0.PEGR.GFX0.DOFF ()
                    Store (One, DGPS)
                    Store (0xC4, DBG8)
                }

                Store (0x02, \OMPR)
                Store ("PS3: OMPR=2 now", Debug)
            }

            Store (0x03, _PSC)
        }

On Mon, Aug 15, 2011 at 12:15 PM, HFM <email address hidden> wrote:
> It works on my ASUS U46SD, but freezes on shutdown, restart and sleep.
>
> code -s system-version
> U46SV
> 1.0
>
> 00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])
> 01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0df4] (rev a1) (prog-if 00 [VGA controller])
>
>
> ** Attachment added: "DSDT.dsl"
>   https://bugs.launchpad.net/lpbugreporter/+bug/752542/+attachment/2279691/+files/DSDT.dsl
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/752542
>
> Title:
>  ACPI DSDT info
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/lpbugreporter/+bug/752542/+subscriptions
>