Jump to content

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


  • Please log in to reply
365 replies to this topic

#241
keypox

keypox

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 320 posts
  • Location:Somewhere out there

The corresponding lines from "lspci" are:

00:1d.0 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family)
   USB UHCI Controller #1 [8086:2934] (rev 03)
 00:1d.1 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family)
   USB UHCI Controller #2 [8086:2935] (rev 03)
 00:1d.2 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family)
   USB UHCI Controller #3 [8086:2936] (rev 03)
 00:1a.0 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family)
   USB UHCI Controller #4 [8086:2937] (rev 03)
 00:1a.1 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family)
   USB UHCI Controller #5 [8086:2938] (rev 03)
 00:1a.2 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family)
   USB UHCI Controller #6 [8086:2939] (rev 03)
In the second pair of brackets, you can see the PCI vendor id (8086 for Intel) and the device-id (2934..2939).
For the ICH9/-R, devices UHCI 1...UHCI 6 have the following addresses and device IDs:
UHCI 1: 1D	2934
 UHCI 2: 1D,1  2935
 UHCI 3: 1D,2  2936
 UHCI 4: 1A	2937
 UHCI 5: 1A,1  2938
 UHCI 6: 1A,2  2939
Do not change the names of your devices as the DSDT won't compile anymore if you do.
Only proceed to patching if the addresses of all six UHCI devices match exactly.

Patching the "device-id" of the UHCI Devices
Now, we just add a call to the DTGP method by inserting a few lines of code into every single one of the 6 UHCI devices. The arguments we pass are "device-id", which is the property we want to patch, and then a four-byte buffer that contains the value to assign to the "device-id" property. These buffers are written "back-wards", i.e. the device-id for the UHC2 device of the ICH10-R, which is "3a35", is written as "0x35, 0x3A, 0x00, 0x00"
The code to add to the UHC2 device is:
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)                }
The device-ids for the six UHCI devices on the ICH10-R are:
UHCI 1: 1D	3a34
 UHCI 2: 1D,1  3a35
 UHCI 3: 1D,2  3a36
 UHCI 4: 1A	3a37
 UHCI 5: 1A,1  3a38
 UHCI 6: 1A,2  3a39
The end result of the UHCI devices should look as follows:
Device (UHC1)            {                Name (_ADR, 0x001D0000)                [...]                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)                }            }            Device (UHC2)            {                Name (_ADR, 0x001D0001)                [...]                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)                }            }            Device (UHC3)            {                Name (_ADR, 0x001D0002)                [...]                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)                }            }            Device (UHC4)            {                Name (_ADR, 0x001A0000)                [...]                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)                }            }            Device (UHC5)            {                Name (_ADR, 0x001A0001)                [...]                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)                }            }            Device (UHC6)            {                Name (_ADR, 0x001A0002)                [...]                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)                }            }
Have fun patching.

Verifying the Reliability of Sleep
You need to be aware that if your machine has never slept before, you may encounter surprises when using sleep now that it works. In order to be able to attribute any issues you may experience to sleep, I strongly recommend a thorough burn-in procedure.

First, unplug all USB devices that you do not need, in particular any storage devices.
Then, in all the applications you typically use, open a few documents and leave them open.

Now put the machine to sleep at least a hundred times and wake it up afterwards.

This sounds like a big hassle, but if you have a second computer that is capable of doing all the work, it's not that bad. Using the PHP script below allows you to remotely sleep and wake up your machine any number of times without human intervention.


You need to edit the variables "$target", "$hwaddr" and "$login". Run the script with one argument, e.g.
/path/to/sleep-wake.php 100
will sleep and wake up your machine 100 times.
Note that for wake-up to work, UDP port 9 must be open. For sleep to work, SSH needs to be enabled and you need a public key installed on the target in order to allow automatic login. How to achieve this is outside the scope of this tutorial.



Im stuck on the top part here. How do you run lspci in mac? Do i have to boot to linux? NO linux installed btw...

#242
Jedric

Jedric

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 141 posts
Need some help. EHCI is now working. I followed the guide to replace dsdt code for UHCI suddenlu im getting this error on compile. I did this over and over and Im alway get the same error. I put the old code back and compiles ok. There was no reference on the original code that I replaced to this lines so I'm stummped.

Mac-Pro:Tools admin$ ./iasl dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20080926 [Oct 4 2008]
Copyright © 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl 9195: If (SS1)
Error 4095 - ^ syntax error, unexpected PARSEOP_IF

dsdt.dsl 9239: \_SB.PCI0.SBRG.SIOS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOS)

dsdt.dsl 9240: \_SB.PCI0.SBRG.SPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SPTS)

dsdt.dsl 9241: \_SB.PCI0.NPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.NPTS)

dsdt.dsl 9242: \_SB.PCI0.GFX0.OPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OPTS)

dsdt.dsl 9248: \_SB.PCI0.SBRG.SIOW (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOW)

dsdt.dsl 9249: \_SB.PCI0.SBRG.SWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SWAK)

dsdt.dsl 9250: \_SB.PCI0.NWAK (Arg0)
Error 4063 - ^ Object does not exist (\_SB.PCI0.NWAK)

dsdt.dsl 9251: \_SB.PCI0.GFX0.OWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OWAK)

ASL Input: dsdt.dsl - 9256 lines, 295803 bytes, 4252 keywords
Compilation complete. 9 Errors, 0 Warnings, 0 Remarks, 0 Optimizations


Original DSDT code that is being replaced.

[codebox]Device (USB0)
{
Name (_ADR, 0x001D0000)
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))
}
}

Device (USB1)
{
Name (_ADR, 0x001D0001)
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 (0x04, 0x04))
}
}

Device (USB2)
{
Name (_ADR, 0x001D0002)
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 (0x0C, 0x04))
}
}

Device (USB3)
{
Name (_ADR, 0x001D0003)
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 (0x0E, 0x04))
}
}

Device (USB4)
{
Name (_ADR, 0x001A0000)
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 (0x0E, 0x04))
}
}

Device (USB5)
{
Name (_ADR, 0x001A0001)
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 (0x05, 0x04))
}
}

Device (USB6)
{
Name (_ADR, 0x001A0002)
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 (0x20, 0x04))
}
}
}
[/codebox]

#243
Shadow_2k

Shadow_2k

    InsanelyMac Geek

  • Donators
  • 128 posts
  • Gender:Male
  • Location:Germany
Thanks, my system is finally able to sleep :)

#244
Beerkex'd

Beerkex'd

    Content Provider

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,000 posts
  • Gender:Male
  • Location:Belo Horizonte - Brazil
Jedric:

Check your curly brackets, I think you're missing one or you put one too many.

Keypox:

There is no need to quote the whole first post.
lspci is available for OSX, an easy way to get at it is by installing OSX86Tools.
There's an installer for 64-bit 10.6.x here - http://www.osx86.es/?p=620
And here's the original OSX Port - http://www.x86dev.org/forum/

#245
keypox

keypox

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 320 posts
  • Location:Somewhere out there

Jedric:

Check your curly brackets, I think you're missing one or you put one too many.

Keypox:

There is no need to quote the whole first post.
lspci is available for OSX, an easy way to get at it is by installing OSX86Tools.
There's an installer for Snow available at osx86.es.


thanks found it, ll work on it some more then. To bad their patcher wont do it for ya :)


Ok finished, got it to compile, but after sleep it still says my device want removed properly.

#246
Beerkex'd

Beerkex'd

    Content Provider

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,000 posts
  • Gender:Male
  • Location:Belo Horizonte - Brazil

Ok finished, got it to compile, but after sleep it still says my device want removed properly.


Download DSDTSE from our friends in Spain, it has a fix for that issue built-in. Be careful though, don't just apply it blindly, look around first and see what others with similar brand/BIOS motherboards have done.

#247
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

Using this awesome concept you have put forth, here is a modified AHCIPortInjector.kext to get rid of orange icons!

http://www.insanelym...howtopic=186653

Thanks!


Great work - kinda defeats the object of patching DSDT though!

D.

#248
keypox

keypox

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 320 posts
  • Location:Somewhere out there

Download DSDTSE from our friends in Spain, it has a fix for that issue built-in. Be careful though, don't just apply it blindly, look around first and see what others with similar brand/BIOS motherboards have done.


thanks i found this post in this thread, http://www.insanelym...p...p=1247462 and it worked for me its for p35 users :)

Though im got a kernel panic on reboot. Hopefully i dont get that again...

#249
spanakorizo

spanakorizo

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 747 posts

Need some help. EHCI is now working. I followed the guide to replace dsdt code for UHCI suddenlu im getting this error on compile. I did this over and over and Im alway get the same error. I put the old code back and compiles ok. There was no reference on the original code that I replaced to this lines so I'm stummped.

Mac-Pro:Tools admin$ ./iasl dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20080926 [Oct 4 2008]
Copyright © 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl 9195: If (SS1)
Error 4095 - ^ syntax error, unexpected PARSEOP_IF

dsdt.dsl 9239: \_SB.PCI0.SBRG.SIOS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOS)

dsdt.dsl 9240: \_SB.PCI0.SBRG.SPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SPTS)

dsdt.dsl 9241: \_SB.PCI0.NPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.NPTS)

dsdt.dsl 9242: \_SB.PCI0.GFX0.OPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OPTS)

dsdt.dsl 9248: \_SB.PCI0.SBRG.SIOW (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOW)

dsdt.dsl 9249: \_SB.PCI0.SBRG.SWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SWAK)

dsdt.dsl 9250: \_SB.PCI0.NWAK (Arg0)
Error 4063 - ^ Object does not exist (\_SB.PCI0.NWAK)

dsdt.dsl 9251: \_SB.PCI0.GFX0.OWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OWAK)

ASL Input: dsdt.dsl - 9256 lines, 295803 bytes, 4252 keywords
Compilation complete. 9 Errors, 0 Warnings, 0 Remarks, 0 Optimizations


Original DSDT code that is being replaced.

Device (USB0)            {                Name (_ADR, 0x001D0000)                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))                }            }            Device (USB1)            {                Name (_ADR, 0x001D0001)                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 (0x04, 0x04))                }            }            Device (USB2)            {                Name (_ADR, 0x001D0002)                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 (0x0C, 0x04))                }            }            Device (USB3)            {                Name (_ADR, 0x001D0003)                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 (0x0E, 0x04))                }            }            Device (USB4)            {                Name (_ADR, 0x001A0000)                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 (0x0E, 0x04))                }            }            Device (USB5)            {                Name (_ADR, 0x001A0001)                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 (0x05, 0x04))                }            }            Device (USB6)            {                Name (_ADR, 0x001A0002)                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 (0x20, 0x04))                }            }        }

same problems here but with 8 errors
i changed only the 7 usb devices (why 7??)and the eusb-usbe but only way to compile is with -f
1st try was kp, then i recompiled again with some changes and it stucked at "netkas presents fakesmc" part...
can somebody with p5xx board or similar post a dsdt.dsl to look at plz?
everything is different from the others i see around :wacko:

#250
Jedric

Jedric

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 141 posts
wwwbsox help me out uhci/ehci are now seen as built-in in system profiler.

http://www.infinitem...849/page12.html

Machine still not waking up from lala land.... :) I hear the machine power up but blank monitor.

#251
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,874 posts
  • Gender:Male
  • Location:Stuttgart / Germany

Machine still not waking up from lala land.... :( I hear the machine power up but blank monitor.

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

#252
spanakorizo

spanakorizo

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 747 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? ;)

Attached File  ioregf.jpg   138.56KB   57 downloads

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

Attached File  lsp.jpg   69.48KB   32 downloads

EDIT: fixed by this method and only dsdt code, no kext :)
Jmicron still shows as unknown. how to fix this via dsdt?

#253
VIP-death

VIP-death

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts
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

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

#254
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

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.insanelym...howtopic=182535

D.

#255
JD Apolo

JD Apolo

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
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

#256
eberts

eberts

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 138 posts

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.insanelym...howtopic=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 ;) )

#257
kdawg

kdawg

    InsanelyMac Legend

  • Donators
  • 508 posts
  • Gender:Male
  • Location:Boston, MA

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?

#258
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male
How stable is this ESB2 thing? Some people wrote about kernel panic.
Thanks!

#259
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

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.

#260
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male
A Question -

I've tricked SATA devices to be seen as ESB2 and USB devices to be ICH10-R ..

Is this likely to cause a conflict??

Cheers
D.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy