Jump to content

DSDT editor and patcher

DSDT editor patcher

  • Please log in to reply
991 replies to this topic

#981
oSxFr33k

oSxFr33k

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 824 posts
  • Gender:Male
  • Interests:Sound and Graphic Design. Electronics in general.

I have a HP a6040n Desktop (Asus MB) with a DSDT that was patched back in 2011.  Everything works except shutdown.  The fans still turn on the CPU.

 

I am lost because this was patched by Mald0n some time ago but the shutdown patch for Asus MB's does not seem to be in place?  When I try to patch with DSDTeditor with the asus shutdown patch it does not seem to change anything?  

 

I have tried  this patch on a vanilla DSDT and it does not seem to modify it as well?

 

I have attached the vanilla DSDT along with the portion of the script that dsdteditor does not seem to patch?

    Method (\_PTS, 1, NotSerialized)
    {
        Or (Arg0, 0xF0, Local0)
        Store (Local0, DBG1)
        Store (0x01, PM29)
        If (LNotEqual (VID0, 0xFFFF))
        {
            If (LEqual (And (RSR0, 0x01), 0x01))
            {
                Or (RSR0, 0x01, RSR0)
                Or (PMC0, 0x80, PMC0)
            }
        }
        If (LNotEqual (VID1, 0xFFFF))
        {
            If (LEqual (And (RSR1, 0x01), 0x01))
            {
                Or (RSR1, 0x01, RSR1)
                Or (PMC1, 0x80, PMC1)
            }
        }

EDITED:

 

I left a thread over at olarila and within a few hours had the fix unreal!!  Just not really sure how the code works?

 

 

Before Edit:

 OSTP ()
        If (LEqual (Arg0, One)) {}
        If (LEqual (Arg0, 0x03)) {}
        If (LEqual (Arg0, 0x05))
        {
            Store (ESMI, Local0)
            And (Local0, 0xFB, Local0)
            Store (Local0, ESMI)
        }

After Edit:

 OSTP ()
        If (LEqual (Arg0, One)) {}
        If (LEqual (Arg0, 0x03)) {}
        If (LEqual (Arg0, 0x05))
        {
            Store (Zero, TRAP)
            Sleep (0x10)
        }

Attached Files



#982
fine

fine

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

Thnx for your hard work¡¡¡ :)



#983
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i

I need a diff patch from two DSDT.dsl files (attached) so I can use it with DSDT editor and patcher.

 

Only difference: one is patched with a (proven working) Nvidia GeForce graphics patch. I need a diff patch so I can apply the grfx dsdt patch to another dsdt of almost the same Laptop, also w/ that same GeForce Go. The grfx patched DSDT from the other Laptop works on Laptop 2, so I KNOW the patch in the DSDT works!

 

How now do I create the diff patch Nvidia GeForce Go 7600.txt?

 

Thank you

 

PS: I created a diff patch with Chameleon Wizard and applied it to my DSDT. Result: no change = bad

Attached Files



#984
artur-pt

artur-pt

    InsanelyMacaholic

  • Local Moderators
  • 4,550 posts
  • Gender:Male
  • Location:Portugal
  • Interests:TechManiaco

hello

 

see here

 

http://olarila.com/f...?p=30339#p30339

 

good hack



#985
bigpoppa206

bigpoppa206

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 475 posts
  • Gender:Male
  • Location:Seattle, WA USA Earth

I need a diff patch from two DSDT.dsl files (attached) so I can use it with DSDT editor and patcher.

 

Only difference: one is patched with a (proven working) Nvidia GeForce graphics patch. I need a diff patch so I can apply the grfx dsdt patch to another dsdt of almost the same Laptop, also w/ that same GeForce Go. The grfx patched DSDT from the other Laptop works on Laptop 2, so I KNOW the patch in the DSDT works!

 

How now do I create the diff patch Nvidia GeForce Go 7600.txt?

 

Thank you

 

PS: I created a diff patch with Chameleon Wizard and applied it to my DSDT. Result: no change = bad

In my case using an 8800GT 512 card, I had to rip out ALL of my graphics section and replace it with the stock entry that was there before I edited my DSDT.  Then and only then could Chameleon see my card and automatically recognize it as it should using GraphicsEnabler=Yes.  No other enablers were needed then.



#986
boy_iran_64

boy_iran_64

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts

please guide me about: how to i inject EDID in DSDT?

i need inject edid in DSDT for enable LVDS (my Graphics card radeon 7650m my laptop is vaio sve15117fdb)

(i prepared edid.bin by moninfo in windows7 and i make DSDT by DSDTSE)



#987
Alex Auditore

Alex Auditore

    InsanelyMac Legend

  • Donators
  • 700 posts
  • Gender:Male
Usually such kind of information is being made together with Graphic Injection.
http://www.insanelym...hers/?p=1792180
With GraphicsEnabler=No. Everything by DSDT. But GraphicsEnabler=Yes can embarrass DSDT Inject of EDID,(I don't know it exactly).
Or where it should be written down at DSDT to be made it working together with that key.
So I think for your, two possible variants are. Inject EDID by kext or to try Clover on USB Stick, for example.
Get working Graphics, and after you can inject all of that by DSDT if u want to.

#988
abouyas

abouyas

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts

 Please can any one help me to add this value to my dsdt. I have tried many times without success. I found this value for my CPU Q6600 with PStateChanger.

Scope (_PR)
    {
        Processor (CPU1, 0x01, 0x00000410, 0x06)
        {
            Name (_CST, Package (0x04)
            {
                0x02,
                Package (0x04)
                {
                    ResourceTemplate ()
                    {
                        Register (FFixedHW,
                            0x00,             // Bit Width
                            0x00,             // Bit Offset
                            0x0000000000000000, // Address
                            ,)
                    },

                    One,
                    0x14,
                    0x03E8
                },

                Package (0x04)
                {
                    ResourceTemplate ()
                    {
                        Register (SystemIO,
                            0x08,             // Bit Width
                            0x00,             // Bit Offset
                            0x0000000000000414, // Address
                            ,)
                    },

                    0x02,
                    0x28,
                    0x02EE
                },

                Package (0x04)
                {
                    ResourceTemplate ()
                    {
                        Register (SystemIO,
                            0x08,             // Bit Width
                            0x00,             // Bit Offset
                            0x0000000000000415, // Address
                            ,)
                    },

                    0x03,
                    0x3C,
                    0x01F4
                }
            })
            Name (_PCT, Package (0x02)
            {
                ResourceTemplate ()
                {
                    Register (FFixedHW,
                        0x00,             // Bit Width
                        0x00,             // Bit Offset
                        0x0000000000000000, // Address
                        ,)
                },

                ResourceTemplate ()
                {
                    Register (FFixedHW,
                        0x00,             // Bit Width
                        0x00,             // Bit Offset
                        0x0000000000000000, // Address
                        ,)
                }
            })
            Name (_PSS, Package (0x05)
            {
                Package (0x06)
                {
                    0x0A6B,
                    0x00015BA8,
                    0xA0,
                    0x0A,
                    0x0A27,
                    0x0A27
                },

                Package (0x06)
                {
                    0x0960,
                    0x00013498,
                    0xA0,
                    0x0A,
                    0x0924,
                    0x0924
                },

                Package (0x06)
                {
                    0x0855,
                    0x00011558,
                    0xA0,
                    0x0A,
                    0x0821,
                    0x0821
                },

                Package (0x06)
                {
                    0x074B,
                    0xF618,
                    0xA0,
                    0x0A,
                    0x071E,
                    0x071E
                },

                Package (0x06)
                {
                    0x0640,
                    0xD6D8,
                    0xA0,
                    0x0A,
                    0x061B,
                    0x061B
                }
            })
            Method (_PPC, 0, NotSerialized)
            {
                Return (Zero)
            }
        }

Attached Files



#989
STLVNUB

STLVNUB

    InsanelyMac Legend

  • Coders
  • 1,127 posts
  • Gender:Male

Try this,

 Scope (_PR.CPU0)
    {
        Method (_PSS, 0, NotSerialized)
        {
            Return (Package (0x04)
            {
                Package (0x06)
                {
                    0x0BB5, 
                    Zero, 
                    0x0A, 
                    0x0A, 
                    0x0929, 
                    Zero
                }, 

                Package (0x06)
                {
                    0x0A68, 
                    Zero, 
                    0x0A, 
                    0x0A, 
                    0x0929, 
                    One
                }, 

                Package (0x06)
                {
                    0x091B, 
                    Zero, 
                    0x0A, 
                    0x0A, 
                    0x0929, 
                    0x02
                }, 

                Package (0x06)
                {
                    0x07CE, 
                    Zero, 
                    0x0A, 
                    0x0A, 
                    0x0929, 
                    0x03
                }
            })
        }

        Method (_PSD, 0, NotSerialized)
        {
            Return (Package (0x05)
            {
                0x05, 
                Zero, 
                Zero, 
                0xFC, 
                0x02
            })
        }

        Method (_CST, 0, NotSerialized)
        {
            Return (Package (0x04)
            {
                0x03, 
                Package (0x04)
                {
                    ResourceTemplate ()
                    {
                        Register (FFixedHW, 
                            0x01,               // Bit Width
                            0x02,               // Bit Offset
                            0x0000000000000000, // Address
                            ,)
                    }, 

                    One, 
                    One, 
                    0x03E8
                }, 

                Package (0x04)
                {
                    ResourceTemplate ()
                    {
                        Register (SystemIO, 
                            0x08,               // Bit Width
                            0x00,               // Bit Offset
                            0x0000000000000414, // Address
                            ,)
                    }, 

                    0x02, 
                    One, 
                    0x01F4
                }, 

                Package (0x04)
                {
                    ResourceTemplate ()
                    {
                        Register (SystemIO, 
                            0x08,               // Bit Width
                            0x00,               // Bit Offset
                            0x0000000000000415, // Address
                            ,)
                    }, 

                    0x03, 
                    One, 
                    0xFA
                }
            })
        }
    }

    Scope (_PR.CPU1)
    {
        Alias (^CPU0._PSS, _PSS)
        Alias (^CPU0._PSD, _PSD)
        Alias (^CPU0._CST, _CST)
    }

    Scope (_PR.CPU2)
    {
        Alias (^CPU0._PSS, _PSS)
        Alias (^CPU0._PSD, _PSD)
        Alias (^CPU0._CST, _CST)
    }

    Scope (_PR.CPU3)
    {
        Alias (^CPU0._PSS, _PSS)
        Alias (^CPU0._PSD, _PSD)
        Alias (^CPU0._CST, _CST)
    }

Place it under

Scope (_PR)
    {
        Processor (CPU0, 0x00, 0x00000410, 0x06) {}
        Processor (CPU1, 0x01, 0x00000410, 0x06) {}
        Processor (CPU2, 0x00, 0x00000410, 0x06) {}
        Processor (CPU3, 0x00, 0x00000410, 0x06) {}
    }



#990
abouyas

abouyas

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts

 

Try this,

 Scope (_PR.CPU0)
    {
        Method (_PSS, 0, NotSerialized)
        {
            Return (Package (0x04)
            {
                Package (0x06)
                {
                    0x0BB5, 
                    Zero, 
                    0x0A, 
                    0x0A, 
                    0x0929, 
                    Zero
                }, 

                Package (0x06)
                {
                    0x0A68, 
                    Zero, 
                    0x0A, 
                    0x0A, 
                    0x0929, 
                    One
                }, 

                Package (0x06)
                {
                    0x091B, 
                    Zero, 
                    0x0A, 
                    0x0A, 
                    0x0929, 
                    0x02
                }, 

                Package (0x06)
                {
                    0x07CE, 
                    Zero, 
                    0x0A, 
                    0x0A, 
                    0x0929, 
                    0x03
                }
            })
        }

        Method (_PSD, 0, NotSerialized)
        {
            Return (Package (0x05)
            {
                0x05, 
                Zero, 
                Zero, 
                0xFC, 
                0x02
            })
        }

        Method (_CST, 0, NotSerialized)
        {
            Return (Package (0x04)
            {
                0x03, 
                Package (0x04)
                {
                    ResourceTemplate ()
                    {
                        Register (FFixedHW, 
                            0x01,               // Bit Width
                            0x02,               // Bit Offset
                            0x0000000000000000, // Address
                            ,)
                    }, 

                    One, 
                    One, 
                    0x03E8
                }, 

                Package (0x04)
                {
                    ResourceTemplate ()
                    {
                        Register (SystemIO, 
                            0x08,               // Bit Width
                            0x00,               // Bit Offset
                            0x0000000000000414, // Address
                            ,)
                    }, 

                    0x02, 
                    One, 
                    0x01F4
                }, 

                Package (0x04)
                {
                    ResourceTemplate ()
                    {
                        Register (SystemIO, 
                            0x08,               // Bit Width
                            0x00,               // Bit Offset
                            0x0000000000000415, // Address
                            ,)
                    }, 

                    0x03, 
                    One, 
                    0xFA
                }
            })
        }
    }

    Scope (_PR.CPU1)
    {
        Alias (^CPU0._PSS, _PSS)
        Alias (^CPU0._PSD, _PSD)
        Alias (^CPU0._CST, _CST)
    }

    Scope (_PR.CPU2)
    {
        Alias (^CPU0._PSS, _PSS)
        Alias (^CPU0._PSD, _PSD)
        Alias (^CPU0._CST, _CST)
    }

    Scope (_PR.CPU3)
    {
        Alias (^CPU0._PSS, _PSS)
        Alias (^CPU0._PSD, _PSD)
        Alias (^CPU0._CST, _CST)
    }

Place it under

Scope (_PR)
    {
        Processor (CPU0, 0x00, 0x00000410, 0x06) {}
        Processor (CPU1, 0x01, 0x00000410, 0x06) {}
        Processor (CPU2, 0x00, 0x00000410, 0x06) {}
        Processor (CPU3, 0x00, 0x00000410, 0x06) {}
    }

Please can you help me to fix my dsdt because i try many time without success.

Thanks



#991
STLVNUB

STLVNUB

    InsanelyMac Legend

  • Coders
  • 1,127 posts
  • Gender:Male

Try this

Attached File  dsdt.dsl.zip   27.27KB   3 downloads



#992
ammoune78

ammoune78

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 209 posts
  • Gender:Male
  • Location:Morocco

Hi! I would like to know how to move "method or device" from scope to another scope in the DSDT.







Also tagged with one or more of these keywords: DSDT, editor, patcher


3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users

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