InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   Snow Leopard 10.6 (http://infinitemac.com/forumdisplay.php?f=87)
-   -   [How-To] Snow Leopard Retail (10A432) on P5K-E Wifi A/P -64 bit mode (http://infinitemac.com/showthread.php?t=3380)

svitale75 08-08-2009 09:11 AM

Quote:

Someone got solutions for sleep and HD icons ?
Not for sleep but for HD icons you should be good to go by installing

IOAHCIBlockStorageInjector.kext

tokyovigilante 08-08-2009 09:56 AM

Thanks! Sound and ethernet are working on my P5K-E after following this guide.

-Ryan

OG-Phantom 08-14-2009 09:41 AM

Quote:

Originally Posted by lancelotu (Post 30090)
This is for P5K-E Wifi a/p Motherboard but it should work with other P5K models
Try this at your own risk. Thanks again to XyZ .

put the AD1988b.Fix.kext in /System/Library/Extensions repair it's permissions and replace your DSDT.aml with the one from the package and you're good to go . I attached also the .dsl file .

Attachment 394

Lancelotu, I have a P5K Deluxe, so I can't use your dsdt.aml. We do have the same onboard sound, so could you post your mods to the dsdt for me so I can fix my dsdt??? Thanks!!!!

lancelotu 08-14-2009 10:14 AM

DSDT mods
 
1 Attachment(s)
Quote:

Originally Posted by OG-Phantom (Post 30989)
Lancelotu, I have a P5K Deluxe, so I can't use your dsdt.aml. We do have the same onboard sound, so could you post your mods to the dsdt for me so I can fix my dsdt??? Thanks!!!!


right under this lines:

Code:

  Device (USBE)
            {
                Name (_ADR, 0x001A0007)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x0D, 0x04))
                }
            }

you have to add this:

Code:

Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x08)
                        {
                            "codec-id",
                            Buffer (0x04)
                            {
                                0x9B, 0x82, 0x43, 0x10
                            },

                            "layout-id",
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            },

                            "device-type",
                            Buffer (0x17)
                            {
                                "Analog Devices AD1988B"
                            },

                            "PinConfigurations",
                            Buffer (0x24)
                            {
                                /* 0000 */    0x30, 0x40, 0x21, 0x01, 0x10, 0x40, 0x11, 0x01,
                                /* 0008 */    0x40, 0x90, 0xA1, 0x01, 0x50, 0x30, 0x81, 0x01,
                                /* 0010 */    0x60, 0x10, 0x01, 0x01, 0x20, 0x90, 0xA0, 0x90,
                                /* 0018 */    0x80, 0xF1, 0x45, 0x01, 0x90, 0xF1, 0xC5, 0x01,
                                /* 0020 */    0x70, 0x60, 0x01, 0x01
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

and you also need this:

Code:

Method (DTGP, 5, NotSerialized)
    {
        If (LEqual (Arg0, Buffer (0x10)
                {
                    /* 0000 */    0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
                    /* 0008 */    0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
                }))
        {
            If (LEqual (Arg1, One))
            {
                If (LEqual (Arg2, Zero))
                {
                    Store (Buffer (One)
                        {
                            0x03
                        }, Arg4)
                    Return (One)
                }

                If (LEqual (Arg2, One))
                {
                    Return (One)
                }
            }
        }

        Store (Buffer (One)
            {
                0x00
            }, Arg4)
        Return (Zero)
    }

AFTER the: Method (_OSC, 4, NotSerialized) so it should look like this:



Code:

 
.........................
        MSC7,  32,
        MSC8,  32,
        DMAX,  8,
        HPTA,  32
    }

    Method (DTGP, 5, NotSerialized)
    {
        If (LEqual (Arg0, Buffer (0x10).........................

Don't forget about Attachment 426 (put it on /Extra or /S/L/E)

Note that this has no front panel headphones working (trying to figure that out) but at least microphone is working great now.


Please report if working

OG-Phantom 08-14-2009 05:40 PM

Quote:

Originally Posted by lancelotu (Post 30994)
right under this lines:

Code:

  Device (USBE)
            {
                Name (_ADR, 0x001A0007)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x0D, 0x04))
                }
            }

you have to add this:

Code:

Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x08)
                        {
                            "codec-id",
                            Buffer (0x04)
                            {
                                0x9B, 0x82, 0x43, 0x10
                            },

                            "layout-id",
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            },

                            "device-type",
                            Buffer (0x17)
                            {
                                "Analog Devices AD1988B"
                            },

                            "PinConfigurations",
                            Buffer (0x24)
                            {
                                /* 0000 */    0x30, 0x40, 0x21, 0x01, 0x10, 0x40, 0x11, 0x01,
                                /* 0008 */    0x40, 0x90, 0xA1, 0x01, 0x50, 0x30, 0x81, 0x01,
                                /* 0010 */    0x60, 0x10, 0x01, 0x01, 0x20, 0x90, 0xA0, 0x90,
                                /* 0018 */    0x80, 0xF1, 0x45, 0x01, 0x90, 0xF1, 0xC5, 0x01,
                                /* 0020 */    0x70, 0x60, 0x01, 0x01
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

and you also need this:

Code:

Method (DTGP, 5, NotSerialized)
    {
        If (LEqual (Arg0, Buffer (0x10)
                {
                    /* 0000 */    0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
                    /* 0008 */    0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
                }))
        {
            If (LEqual (Arg1, One))
            {
                If (LEqual (Arg2, Zero))
                {
                    Store (Buffer (One)
                        {
                            0x03
                        }, Arg4)
                    Return (One)
                }

                If (LEqual (Arg2, One))
                {
                    Return (One)
                }
            }
        }

        Store (Buffer (One)
            {
                0x00
            }, Arg4)
        Return (Zero)
    }

AFTER the: Method (_OSC, 4, NotSerialized) so it should look like this:



Code:

 
.........................
        MSC7,  32,
        MSC8,  32,
        DMAX,  8,
        HPTA,  32
    }

    Method (DTGP, 5, NotSerialized)
    {
        If (LEqual (Arg0, Buffer (0x10).........................

Don't forget about Attachment 426 (put it on /Extra or /S/L/E)

Note that this has no front panel headphones working (trying to figure that out) but at least microphone is working great now.


Please report if working

That did the trick!!! Thank you!!!! I had tried that for awhile on my Leopard setup but couldn't get it working and gave up (DSDT route, I stuck with the injector and the enabler from TheKing)

walterav 08-15-2009 01:10 AM

P5k e wifi/ap bios 1202

Headphone working here! :D
front "Headphone/switch" is working! Also "front mic" is working called "external mic, built in input"!!!

software:
SL 10a432 + DSDT injection + AD1988b.Fix.kext

dsdt:
Code:

Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x08)
                        {
                            "codec-id",
                            Buffer (0x04)
                            {
                                0x9B, 0x82, 0x43, 0x10
                            },

                            "layout-id",
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            },

                            "device-type",
                            Buffer (0x17)
                            {
                                "Analog Devices AD1988B"
                            },

                            "PinConfigurations",
                            Buffer (0x20)
                            {
                                /* 0000 */    0x30, 0x40, 0x21, 0x01, 0x10, 0x40, 0x11, 0x01,
                                /* 0008 */    0x40, 0x90, 0xA1, 0x01, 0x50, 0x30, 0x81, 0x01,
                                /* 0010 */    0x60, 0x10, 0x01, 0x01, 0x20, 0x90, 0xA1, 0x01,
                                /* 0018 */    0xF0, 0x11, 0x45, 0x01, 0x70, 0x60, 0x01, 0x01
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

###notice that I don't have the /* 0020 */ in the dsdt injection!!!

AD1988b.Fix.kext:
###plist only kext!
###size~ 82kb
###P5K-e.DSDT.Sound.zip / extra.zip search this forum... don't know anymore where I found it

lancelotu 08-15-2009 08:33 AM

Quote:

Originally Posted by walterav (Post 31049)
P5k e wifi/ap bios 1202

Headphone working here! :D
front "Headphone/switch" is working! Also "front mic" is working called "external mic, built in input"!!!

software:
SL 10a432 + DSDT injection + AD1988b.Fix.kext


AD1988b.Fix.kext:
###plist only kext!
###size~ 82kb
###P5K-e.DSDT.Sound.zip / extra.zip search this forum... don't know anymore where I found it

I change my HDEF column to be just like yours but still no frontal Headphone, do you have it listed as Headphones in the PreferencesPanes/Audio ? and also how many output devices do you have ?
Can you also upload your DSDT.dsl?

Thanks

walterav 08-15-2009 02:32 PM

1 Attachment(s)
My dsdt has the following patches:

DSDT.dsl
*ATI hd2600xt injection for leopard only!
*quick/dirty rtc/hpet fix "not good enough for core2quad I heard"
*Audio injection!
*dtgp #for adding the patches
#see attachment

But I want more to be patched in DSDT:
*network injection "no more patching of AppleYukon2.kext"
*usb set to built-in "no problems with sleep"
maybe more?

AD1988.Fix.kext
#see attachement!

BIOS:
Lancelotu do you have front panel output in bios configured as HD, or AC97?

System Profiler:
Device ID: 0x10438277
Audio ID: 12
Available Devices:
Headphone:
Connection: 1/8-Inch Jack
Speaker:
Connection: 1/8-Inch Jack
Internal Microphone:
Connection: Internal
Line In:
Connection: 1/8-Inch Jack
Line Out:
Connection: 1/8-Inch Jack
External Microphone:
Connection: 1/8-Inch Jack
S/P-DIF Out:
Connection: Optical
S/P-DIF In:
Connection: Optical
Line Out:
Connection: 1/8-Inch Jack

So 4 output devices, "Internal speakers" switches to "Headphone" when front panel is in use!
Even the Volume Level changes to last use, when headphone is plugged in!

BTW did you had sleep working? I always had from 10.5.2-10.5.7... from 10.5.7 I had to use EHCIsleepenabler.kext...
and from 10.5.8 I also had to remove disabler.kext and patch RTC/HPET in dsdt.

tomparis 08-16-2009 04:22 AM

DSDT for P5k Deluxe
 
Quote:

Originally Posted by OG-Phantom (Post 31018)
That did the trick!!! Thank you!!!! I had tried that for awhile on my Leopard setup but couldn't get it working and gave up (DSDT route, I stuck with the injector and the enabler from TheKing)

Hi OG-Phantom,

Would you be able to post your DSDT? I've got a P5K Deluxe too, it might help me fix my no sound issue, it's the only thing still not working.

Thanks

lancelotu 08-17-2009 06:47 AM

Quote:

Originally Posted by tomparis (Post 31163)

it might help me fix my no sound issue, it's the only thing still not working.

Thanks

Because sleep does work on your motherboard ? or you just don't use it?