Jump to content

DSDT: trick retail drivers by changing "device-id" (e.g USB)


zhell
 Share

366 posts in this topic

Recommended Posts

guys i need 1 tip.

only those 2 lines will be different?

EDIT:FIXED

 

 

[size=1] Device (USB0)

{

Name (_ADR, 0x001D0000) // <-------------------------- THIS LINE

OperationRegion (BAR0, PCI_Config, 0xC4, One)

Field (BAR0, ByteAcc, NoLock, Preserve)

{

USBW, 2,

Offset (0x01)

}

 

Method (_S3D, 0, NotSerialized)

{

If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))

{

Return (0x02)

}

Else

{

Return (0x03)

}

}

 

Method (_PSW, 1, NotSerialized)

{

If (Arg0)

{

Store (0x03, USBW)

}

Else

{

Store (Zero, USBW)

}

}

 

Method (_PRW, 0, NotSerialized)

{

Return (GPRW (0x03, 0x04))

}

 

Method (_DSM, 4, NotSerialized)

{

Store (Package (0x02)

{

"device-id",

Buffer (0x04)

{

0x34, 0x3A, 0x00, 0x00 // <-------------------------- AND THIS LINE

}

}, Local0)

DTGP (Arg0, Arg1, Arg2, Arg2, RefOf (Local0))

Return (Local0)

}

}[/size]

 

should i change something else?

cause i did everything correct in usb0,1,2,3,4,5,6+usbe,eusb (my mobo shows the devices like this)

also why the usb devices are 7 (+2 usbe,eusb) but the ioregistry shows 6? ;)

 

post-59183-1253882540_thumb.jpg

 

and this is the part of my lspci , it shows 6usb+2 usb2

 

post-59183-1253882638_thumb.jpg

 

EDIT: fixed by this method and only dsdt code, no kext :)

Jmicron still shows as unknown. how to fix this via dsdt?

Link to comment
Share on other sites

Sorry can somebody help me.I have misunderstood the tutorial and inserted my device-ids correctly. I have ICH7 motherboard can I change ICH7 id to ICH10 id???I have the next id

 

1D: 27c8

1D,1: 27c9

1D,2: 27ca

1D,3: 27cb

1D,7: 27cc

 

So I have to change:

 

1D: 27c8 ----> 3A34

1D,1: 27c9 --> 3A35

1D,2: 27ca --> 3A36

1D,3: 27cb --> 3A37

1D,7: 27cc --> 3A3A

 

?????????????????????????????

Link to comment
Share on other sites

Same for me - did a lot of dsdt work , no usb/ehci probs, no other probs but sleep stays at machine running.

EP35-DS3.

 

Since changing to nVidia card I now have forced deep sleep and wake.

 

I do however need to use the RIP app to achive AUTO sleep. I think due to my TSST CORP DVD ROM

 

http://www.insanelymac.com/forum/index.php?showtopic=182535

 

D.

Link to comment
Share on other sites

Hi zhell! I keep on trying to patch my dsdt.aml to be able to fix USB UHCI in order for me to have sleep working. But I really can't get it to work no matter what. Can I ask a favor if maybe you could patch mine for me? I would really appreciate it. By the way, my mobo's ICH9 also Asus P5K-SE. Thanks in advance! Cheers!

 

Here's the dsdt (Im sorry for the spaces--hope it wont get blocked as I believe links outside the site are not allowed):

http:// www. sendspace . com / file / 4ktfs5

JD Apolo

Link to comment
Share on other sites

Since changing to nVidia card I now have forced deep sleep and wake.

 

I do however need to use the RIP app to achive AUTO sleep. I think due to my TSST CORP DVD ROM

 

http://www.insanelymac.com/forum/index.php?showtopic=182535

 

D.

 

Is your dvd drive IDE or SATA? I just bought a (cheap) SATA one and deleted all IDE parts in my dsdt. Now auto sleep is working fine again. (I found out by disconneting my IDE dvd drive ;) )

Link to comment
Share on other sites

Is your dvd drive IDE or SATA? I just bought a (cheap) SATA one and deleted all IDE parts in my dsdt. Now auto sleep is working fine again. (I found out by disconneting my IDE dvd drive :D )

 

@FormerlyKnownAs & eberts

I have a mixture of IDE and SATA hard drives working properly as well as auto-sleep. I'm fairly certain it's the DVD drive. I had two of the TSST CORP optical drives and auto-sleep didn't work. Swapped them out for Sonys and auto-sleep started working.

 

FormerlyKnownAs did you try to unplug the power to your DVD drive to see if auto-sleep worked on it own, without the RIP script?

Link to comment
Share on other sites

How stable is this ESB2 thing? Some people wrote about kernel panic.

Thanks!

 

I wrote about KP - it's been fine since, probably unrelated as I was messing with several other things at the time. using ESB2 with SL now just fine.

 

@FormerlyKnownAs & eberts

I have a mixture of IDE and SATA hard drives working properly as well as auto-sleep. I'm fairly certain it's the DVD drive. I had two of the TSST CORP optical drives and auto-sleep didn't work. Swapped them out for Sonys and auto-sleep started working.

 

FormerlyKnownAs did you try to unplug the power to your DVD drive to see if auto-sleep worked on it own, without the RIP script?

 

No but the disk in drive trick works - so it must be the problem.

 

I've lost deep sleep all together now with SL - but I was using Slice's usb kext in 10.5.8.

I have USB fixes in DSDT and smbios.plist.

 

Any ideas? I'd somehow missed out the EHCI patch from my current DSDT!

 

D.

Link to comment
Share on other sites

In short it doesn't seem to -

 

Got sleep back with SL using the below [iCH9-R as ICH10-R]

(credit zhell, ApexDE and mitch_de)

 

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

                   Return (0x03)
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x34, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

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

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

                   Return (0x03)
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x35, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

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

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

                   Return (0x03)
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x36, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

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

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

                   Return (0x03)
               }

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

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

                   Return (0x03)
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x37, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

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

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

                   Return (0x03)
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x38, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

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

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

                   Return (0x03)
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x39, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

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

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

                   Return (0x03)
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x06)
                       {
                           "AAPL,clock-id", 
                           Buffer (One)
                           {
                               0x01
                           }, 

                           "device_type", 
                           Buffer (0x05)
                           {
                               "EHCI"
                           }, 

                           "device-id", 
                           Buffer (0x04)
                           {
                               0x3A, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

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

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

                   Return (0x03)
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x06)
                       {
                           "AAPL,clock-id", 
                           Buffer (One)
                           {
                               0x02
                           }, 

                           "device_type", 
                           Buffer (0x05)
                           {
                               "EHCI"
                           }, 

                           "device-id", 
                           Buffer (0x04)
                           {
                               0x3C, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

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

 

Have Fun

D.

Link to comment
Share on other sites

Hello.

I used this method and now manual sleep is working, and automatic sleep works using RIP script, but after waking from sleep I can't restart the computer, it just hangs. Did anyone have this problem?

Thanks.

 

yes - I've gone back to using openhaltrestart and it all appears to be fine.

 

D.

Link to comment
Share on other sites

yes - I've gone back to using openhaltrestart and it all appears to be fine.

 

D.

 

Strange, I'm still using OpenHaltRestart, never removed it. Shutdown works fine, just restart hangs after "MACH reboot", only if the computer has slept.

 

BTW, found this app to fix auto sleep in another thread, it's like RIP.app with some options in a GUI

http://www.dragonone.com/products/macosx/pleasesleep/

 

Just one more quick question: how's your CPU temperature after being sleeping for a while? Using Windows, after some time sleeping CPU temperature is lower than before, but using Mac OS the temperature is the same or higher. Maybe there's something wrong with sleep on Mac?

 

Thanks.

Link to comment
Share on other sites

Just one more quick question: how's your CPU temperature after being sleeping for a while? Using Windows, after some time sleeping CPU temperature is lower than before, but using Mac OS the temperature is the same or higher. Maybe there's something wrong with sleep on Mac?

 

Thanks.

 

In the time it takes the system and monitor to wake up, I can see the temp climb to it's usual idle.

D

Link to comment
Share on other sites

Hi,

I do not see or inseret the lines located in the first post of the topic.

I post my dsdt.dsl ,menbre if one wants to make changes.

Sleep don't work for me,i have delete NullCPUPowermanagement after tested disabler and sleepenabler don't work too.

Here you go. Try sleep with this one (I've included both compiled and decompiled version, you can simply copy the compiled aml to /Extra and reboot)

dsdt_Flashe.zip

Link to comment
Share on other sites

Hey guys,

I'm trying to apply the UHCI- and EHCI-Fix to my DSDT.aml. But if I apply the UHCI-Fix my USB doesn't work as it should (for example clicks with my mouse aren't recognized) and the EHCI-Fix brakes my sleep (computer won't turn off). Maybe someone of you experienced guys could help me out? :)

 

I have a GA-EP35-DS3, running 10.6.1 (with /Extra-folder, 64Bit). I'm using the following kexts:

  • AHCIPortInjector.kext
  • ALC889a.kext
  • AppleACPIPS2Nub.kext
  • ApplePS2Controller.kext
  • fakesmc.kext
  • IOAHCIBlockStorageInjector.kext
  • JMicronATA.kext
  • LegacyJMB36xSATA.kext
  • NullCPUPowerManagement.kext
  • OpenHaltRestart.kext
  • PlattformUUID.kext
  • SleepEnabler.kext

 

I hope you can help me and i provided every information needed. Feel free to post a fixed DSDT.dsl (mine is attached). :)

 

Jannis

DSDT.dsl.zip

Link to comment
Share on other sites

try this dsdt. included both compiled and decompiled version. put compiled version in /Extra, reboot and report.

 

Hey guys,

I'm trying to apply the UHCI- and EHCI-Fix to my DSDT.aml. But if I apply the UHCI-Fix my USB doesn't work as it should (for example clicks with my mouse aren't recognized) and the EHCI-Fix brakes my sleep (computer won't turn off). Maybe someone of you experienced guys could help me out? :(

 

I have a GA-EP35-DS3, running 10.6.1 (with /Extra-folder, 64Bit). I'm using the following kexts:

  • AHCIPortInjector.kext
  • ALC889a.kext
  • AppleACPIPS2Nub.kext
  • ApplePS2Controller.kext
  • fakesmc.kext
  • IOAHCIBlockStorageInjector.kext
  • JMicronATA.kext
  • LegacyJMB36xSATA.kext
  • NullCPUPowerManagement.kext
  • OpenHaltRestart.kext
  • PlattformUUID.kext
  • SleepEnabler.kext

 

I hope you can help me and i provided every information needed. Feel free to post a fixed DSDT.dsl (mine is attached). :)

 

Jannis

dsdt_mrhanky.zip

Link to comment
Share on other sites

Hi,

The problem I encounter is that in the information system there is nothing that appears.

No PCI card seems to be installed on this computer.

This Ethernet cards not to reference in info system:

Adaptateur Ethernet (en1)

Built-in Serial Port (1)

Ethernet

I have:

Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller

Realtek RTL8169/8110 Family Gigabit Ethernet NIC

Realtek RTL8187 Wireless 802.11g 54Mbps USB 2.0 Network Adapter

Analog Devices AD1988B @ Intel 82801IB ICH9 - High Definition Audio Controller

 

Possible to fix the dsdt more information about devices(Pci/Pcie) ect ect.......

I know this is cosmetic but would know when one connects those who are multiple Ethernet ports on which it is plugged in info system and about how such slot pci card and each other are connected .

 

Thanks a lot for the help, you can give me, I attached files to this poste .

My dsdt is what post above,sleep work for me fixe by Don Quijote.

 

Example of devices injecter pci and other,me i don't have. 

Ioreg_P5K_Premium.rtf

Lspci.rtf

post-447858-1255957588_thumb.jpg

Link to comment
Share on other sites

 Share

×
×
  • Create New...