PDA

View Full Version : unable to fix USB ports in DSDT


CEOS
10-23-2009, 02:22 PM
plz help !

i´m unable to fix the USB ports to work as integrated.
(always get a device removal warning at wakeup from sleep)

i try every fix i could find, without sucess.
in most cases i get the error
/Users/David/Desktop/dsdt.dsl 4640: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4063 - Object does not exist ^ (DTGP)

i have a bit of c++/c# knolege, but i dont know what i´m doing wrong.

this is the usb part of the DSDT:

Device (USB0)
{
Name (_ADR, 0x001D0000)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL, 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x03,
0x03
})
}

Device (USB1)
{
Name (_ADR, 0x001D0001)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL, 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x04,
0x03
})
}

Device (USB2)
{
Name (_ADR, 0x001D0002)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL, 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x0C,
0x03
})
}

Device (USB3)
{
Name (_ADR, 0x001A0000)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL, 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x0E,
0x03
})
}

Device (USB4)
{
Name (_ADR, 0x001A0001)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL, 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x05,
0x03
})
}

Device (USB5)
{
Name (_ADR, 0x001A0002)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL, 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x20,
0x03
})
}

Device (USBE)
{
Name (_ADR, 0x001D0007)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL, 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x0D,
0x03
})
}

Device (USE2)
{
Name (_ADR, 0x001A0007)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL, 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x0D,
0x03
})
}



i attached the dsdt i try to patch and the ioreg dump
please help a DSDT noob :)

thorazine74
10-23-2009, 03:49 PM
I think you forgot to add the DTGP method to your code.

CEOS
10-23-2009, 03:54 PM
how can i do this ?

sk1nhd33t
10-23-2009, 03:59 PM
read more here (http://www.insanelymac.com/forum/index.php?showtopic=155345&st=40&p=1240686&#entry1240686), start on post #43 by ApexDE

in most cases i get the error
/Users/David/Desktop/dsdt.dsl 4640: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4063 - Object does not exist ^ (DTGP)


not an expert in dsdt and i could be wrong but i believe you need method DTGP on your dsdt to compile properly, try downloading DSDT-Se (http://www.osx86.es/?p=610), the fix is there under dsdt hacks.

CEOS
10-23-2009, 07:49 PM
thank you, get it working !:)