Jump to content

DSDT Auto-Patcher


MaLd0n
 Share

5,753 posts in this topic

Recommended Posts

dsdt.aml_fbifido.zip

 

ALIAS

DTGP

EHCI

HID/CID

IRQs

LAN0

LPC ICH7

REMOVE

RENAME

SHUTDOWN

FIX WARNINGS

 

:(

 

Thanks.

 

BTW: can you do one more but without the "REMOVE"

 

and can you make all these patches available to EL editor, thanks a mill.

note: when i patch by BIOS with this DSDT.aml, windows xp/7 and xpe(winxp lite) will not boot, saying the ACPI is not full compatible.

 

Please update your app with all the boards you have come across so far, please and thank you.

 

 

 

 

can you please tell every one how to know what patches to apply or how do you know what patch to apply.

 

 

 

 

Thanks again.

Link to comment
Share on other sites

@MaLd0n,

 

Can I throw in another Notebook? Asus G51jx. It is an I7 Processor and HM55 Chipset motherboard.

 

Kizwan was instrumental in many of these fixes but for some reason we have not been ale to fix the disk insertion error from sleep/wake while a USB FLash drive is inserted.

 

Here are the links for reference:

 

 

Kizwan's work:

 

http://www.insanelymac.com/forum/index.php...=225115&hl=

 

Disk Was Not Ejected Properly:

 

http://www.insanelymac.com/forum/index.php...p;#entry1559579

 

 

Attached Native Untouched DSDT, Ioreg GUI was unable to grab the text version. Normal and Expanded LSPCI's

 

 

Thanks

 

G51jx_DSDT_IOREG_LSPCI.zip

Link to comment
Share on other sites

Thanks.

BTW: can you do one more but without the "REMOVE"

dsdt.fbifido.NO_REMOVE.zip

 

and can you make all these patches available to EL editor, thanks a mill.

Yep

:(

 

note: when i patch by BIOS with this DSDT.aml, windows xp/7 and xpe(winxp lite) will not boot, saying the ACPI is not full compatible.

BiosMod?

do not need to biosmod

so we can delete the devices not used for OsX

speeding up the boot, etc.

 

but each one does what he thinks best :)

 

Please update your app with all the boards you have come across so far, please and thank you.

can you please tell every one how to know what patches to apply or how do you know what patch to apply.

Thanks again.

 

Yep, it will happen

Link to comment
Share on other sites

@MaLd0n,

 

Can I throw in another Notebook? Asus G51jx. It is an I7 Processor and HM55 Chipset motherboard.

 

Kizwan was instrumental in many of these fixes but for some reason we have not been ale to fix the disk insertion error from sleep/wake while a USB FLash drive is inserted.

 

Here are the links for reference:

 

 

Kizwan's work:

 

http://www.insanelymac.com/forum/index.php...=225115&hl=

 

Disk Was Not Ejected Properly:

 

http://www.insanelymac.com/forum/index.php...p;#entry1559579

 

 

Attached Native Untouched DSDT, Ioreg GUI was unable to grab the text version. Normal and Expanded LSPCI's

 

 

Thanks

 

G51jx_DSDT_IOREG_LSPCI.zip

 

 

dsdt.aml_Asus_G51Jx.zip

 

into method label _Q0C code_regex Return\s\(Zero\) remove_matched;
into method label _Q0C insert
begin
Return (Zero)
end;
into method label _Q0D code_regex Return\s\(Zero\) remove_matched;
into method label _Q0D insert
begin
Return (Zero)
end;
into_all all code_regex _T_0 replaceall_matched begin T_0 end;
into_all all code_regex _T_1 replaceall_matched begin T_1 end;
into_all all code_regex _T_2 replaceall_matched begin T_2 end;
into_all all code_regex _T_3 replaceall_matched begin T_3 end;
into device label _PWR parent_label AC0 remove_entry;
into device label AC0 insert
begin
Name (_PRW, Package (0x02)\n
           {\n
               0x18, \n
               0x03\n
           })\n
end;
into method label _DSM parent_adr 0x001F0002 remove_entry;
into device name_adr 0x001F0002 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x22, 0x3A, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into_all all code_regex And\s\(CTRL,\s0x1E\) replaceall_matched
begin
And (CTRL, 0x1E, CTRL)
end;
into method label DTGP remove_entry;
into definitionblock code_regex . insert
begin
Method (DTGP, 5, NotSerialized)\n
{\n
   If (LEqual (Arg0, Buffer (0x10)\n
           {\n
               /* 0000 */    0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, \n
               /* 0008 */    0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B\n
           }))\n
   {\n
       If (LEqual (Arg1, One))\n
       {\n
           If (LEqual (Arg2, Zero))\n
           {\n
               Store (Buffer (One)\n
                   {\n
                       0x03\n
                   }, Arg4)\n
               Return (One)\n
           }\n
           If (LEqual (Arg2, One))\n
           {\n
               Return (One)\n
           }\n
       }\n
   }\n
   Store (Buffer (One)\n
       {\n
           0x00\n
       }, Arg4)\n
   Return (Zero)\n
}
end;
into method label _DSM parent_adr 0x001D0000 remove_entry;
into device name_adr 0x001D0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
               {\n
                   Store (Package (0x0B)\n
                       {\n
                           "AAPL,clock-id", \n
                           Buffer (One)\n
                           {\n
                               0x01\n
                           }, \n
                           "device_type", \n
                           Buffer (0x05)\n
                           {\n
                               "EHCI"\n
                           }, \n
                           "AAPL,current-available", \n
                           0x04B0, \n
                           "AAPL,current-extra", \n
                           0x02BC, \n
                           "AAPL,current-in-sleep", \n
                           0x03E8, \n
                           Buffer (One)\n
                           {\n
                               0x00\n
                           }\n
                       }, Local0)\n
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
                   Return (Local0)\n
               }
end;
into method label _DSM parent_adr 0x001A0000 remove_entry;
into device name_adr 0x001A0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
               {\n
                   Store (Package (0x0B)\n
                       {\n
                           "AAPL,clock-id", \n
                           Buffer (One)\n
                           {\n
                               0x01\n
                           }, \n
                           "device_type", \n
                           Buffer (0x05)\n
                           {\n
                               "EHCI"\n
                           }, \n
                           "AAPL,current-available", \n
                           0x04B0, 
                           "AAPL,current-extra", \n
                           0x02BC, \n
                           "AAPL,current-in-sleep", \n
                           0x03E8, \n
                           Buffer (One)\n
                           {\n
                               0x00\n
                           }\n
                       }, Local0)\n
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
                   Return (Local0)\n
               }
end;
into device name_hid PNP0000 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0100 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0B00 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0103 code_regex_not IRQNoFlags code_regex Name\s\(([^,]+),\sResourceTemplate\s\(\)\n\s+\{((?:.|\n)*)\}\) replace_matched
begin
Name (%1, ResourceTemplate ()\n
                   {\n
                       IRQNoFlags ()\n
                           {0}\n
                       IRQNoFlags ()\n
                           {8}\n
%2
})
end;
into method label KPTS code_regex Return\s\(Zero\) remove_matched;
into method label KPTS insert
begin
Return (Zero)
end;
into method label KWAK code_regex Return\s\(Zero\) remove_matched;
into method label KWAK insert
begin
Return (Zero)
end;
into method label MF42 code_regex Return\s\(Zero\) remove_matched;
into method label MF42 insert
begin
Return (Zero)
end;
into_all all code_regex (Acquire\s\(MUTE,\s0x)....\)
replace_matched
begin
%1FFFF)
end;
into device label PNLF parent_label LID remove_entry;
into device label LID insert
begin
Device (PNLF)\n
               {\n
                   Name (_HID, EisaId ("APP0002"))\n
                   Name (_CID, "backlight")\n
                   Name (_UID, 0x0A)\n
                   Name (_STA, 0x0B)\n
               }
end;
into device name_hid PNP0B00 code_regex (IO\s\((?:\s*[^,]+,\s*(?:\/\/\s.*)?\s*\n)+\s*)(\dx\d+)(,\s*(?:\/\/\s.*)?\s*\n\s*\)) replace_matched begin %10x02%3 end;
into device name_adr 0x001F0003 parent_label PCI0 remove_entry;
into device label PCI0 insert
begin
Device (SBUS)\n
{\n
   Name (_ADR, 0x001F0003)\n
   Device (BUS0)\n
   {\n
       Name (_CID, "smbus")\n
       Name (_ADR, Zero)\n
       Device (DVL0)\n
       {\n
           Name (_ADR, 0x57)\n
           Name (_CID, "diagsvault")\n
       }\n
   }\n
   Method (_DSM, 4, NotSerialized)\n
   {\n
       Store (Package (0x02)\n
           {\n
               "device-id", \n
               Buffer (0x04)\n
               {\n
                   0x30, 0x3A, 0x00, 0x00\n
               }\n
           }, Local0)\n
       DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
       Return (Local0)\n
   }\n
}
end;
into method label _PTS code_regex_not If\s\(LEqual\s\(Arg0,\s0x05\)\) code_regex ^((?:.|\n)*)$ replace_matched
begin
       If (LEqual (Arg0, 0x05)) {}\n
       Else\n
       {\n
%1
       }
end;
into device label WLAN insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
Store (Package (0x0C)\n
{\n
"AAPL,slot-name",\n
Buffer (0x08)\n
{\n
"AirPort"\n
},\n
"device-id",\n
Unicode ("*"),\n
"device_type",\n
Buffer (0x08)\n
{\n
"AirPort"\n
},\n
"model",\n
Buffer (0x34)\n
{\n
"Atheros 9285 8802.11 b/g/n Wireless Network Adapter"\n
},\n
"subsystem-id",\n
Buffer (0x04)\n
{\n
0x8F, 0x00, 0x00, 0x00\n
},\n
"subsystem-vendor-id",\n
Buffer (0x04)\n
{\n
0x6B, 0x10, 0x00, 0x00\n
}\n
}, Local0)\n
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
Return (Local0)\n
}
end

 

then I see the...

Disk Was Not Ejected Properly

 

Monday I'm back

I do not know if I can access from there

Link to comment
Share on other sites

@MaLd0n,

 

Asus G51Jx works perfect. The same issue still remains with the Disk removal error after wake. Other than that everything is working great.

 

Thanks

 

 

Kextstats

 

 

osxfr33ks-MacBook-Pro:~ osxfr33k$ kextstat | grep LPC

74 0 0xffffff7f80a34000 0x3000 0x3000 com.apple.driver.AppleLPC (1.4.12) <9 5 4 3>

 

 

osxfr33ks-MacBook-Pro:~ osxfr33k$ kextstat | grep SMBus

28 2 0xffffff7f806ea000 0x2000 0x2000 com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>

75 0 0xffffff7f80a37000 0x2000 0x2000 com.apple.driver.AppleSMBusPCI (1.0.8d0) <9 5 4 3>

93 0 0xffffff7f81377000 0xb000 0xb000 com.apple.driver.AppleSMBusController (1.0.8d0) <28 9 8 5 4 3>

Link to comment
Share on other sites

Can you do this file for me as well

 

yes, no problem

Monday

 

@MaLd0n,

 

Asus G51Jx works perfect. The same issue still remains with the Disk removal error after wake. Other than that everything is working great.

 

Thanks

 

 

Kextstats

 

 

osxfr33ks-MacBook-Pro:~ osxfr33k$ kextstat | grep LPC

74 0 0xffffff7f80a34000 0x3000 0x3000 com.apple.driver.AppleLPC (1.4.12)

 

 

osxfr33ks-MacBook-Pro:~ osxfr33k$ kextstat | grep SMBus

28 2 0xffffff7f806ea000 0x2000 0x2000 com.apple.iokit.IOSMBusFamily (1.1)

75 0 0xffffff7f80a37000 0x2000 0x2000 com.apple.driver.AppleSMBusPCI (1.0.8d0)

93 0 0xffffff7f81377000 0xb000 0xb000 com.apple.driver.AppleSMBusController (1.0.8d0)

:wacko:

CID to HID :P

 

Maldon,

 

regarding the message i sent u earlier, i was unable to save a dsdt.aml using the DSDT Editor thats written in java, but i was able to extract the dsdt and save it to dsl, so thats what ive done. Ive attached the file in this post.

 

cheers :)

 

OK

I will edit and send you

 

*I do not think there's anything wrong

already been tested

but I'll test

:D

Link to comment
Share on other sites

yes, no problem

Monday

 

 

:dev:

CID to HID :P

 

 

 

OK

I will edit and send you

 

*I do not think there's anything wrong

already been tested

but I'll test

:D

 

haha thats what i thought maldon, but it dies on bootup using that dsdt =S and the kexts u supplied, its a clean system with no modifications. its strange >< also, you wouldnt know how to boot using dvi to hdmi cable would you? on 10.6.2+ it doesnt work anymore =S

 

cheers

Link to comment
Share on other sites

haha thats what i thought maldon, but it dies on bootup using that dsdt =S and the kexts u supplied, its a clean system with no modifications. its strange >

 

cheers

ok

give attention to this

 

another question

use the search forum

Link to comment
Share on other sites

ok

give attention to this

 

another question

use the search forum

 

haha alright, ill check back to see if its just my computer having the troubles with the generated dsdt.

 

and for the other question, i am :unsure: have u noticed anything weird with it? if it is my system ive no idea why it fails the way it does =\

Link to comment
Share on other sites

hey homie, My sleep won't work fine, all usb broken, on wake I need replug it to work. please help =]

 

Intel

 

DG31PR, last modified Oct 27

DX58SO, last modified Oct 27

 

DG35EC???? blowupj.gif

 

 

haha alright, ill check back to see if its just my computer having the troubles with the generated dsdt.

 

and for the other question, i am :) have u noticed anything weird with it? if it is my system ive no idea why it fails the way it does =\

 

Hi, dutchiee

 

Let me know whether it is working or not.

headphonesa.gif

Link to comment
Share on other sites

DG35EC???? blowupj.gif

 

 

 

 

Hi, dutchiee

 

Let me know whether it is working or not.

headphonesa.gif

 

Maldon, it works great! =D im typing from the 10.6.4 fresh install. Ive not yet tested shutdown or reboot, but audio and everything else is working fantastic.

 

what changes did u do that made this version work and not the previous one? =S as my mac couldnt boot, i copied over the description and patch.txt files (from the new link you posted) into the windows version of the patcher and replaced the previous ones in the correct folder and ran it again, everything is smooth as butter. no errors on bootup either =D

Link to comment
Share on other sites

Maldon, it works great! =D im typing from the 10.6.4 fresh install. Ive not yet tested shutdown or reboot, but audio and everything else is working fantastic.

 

what changes did u do that made this version work and not the previous one? =S as my mac couldnt boot, i copied over the description and patch.txt files (from the new link you posted) into the windows version of the patcher and replaced the previous ones in the correct folder and ran it again, everything is smooth as butter. no errors on bootup either =D

 

I made a mistake in the previous patcherwallbasha.gif, there was an invalid character that caused the patch not being applied completely

 

smilegu.png

Link to comment
Share on other sites

oh right ahha makes sense, luckily i asked u about it then ^^ so everything is fixed :)?

 

Yep

 

DTGP

HDEF/ALC889A

HID/CID

HPET

IRQs

RENAMED DEVICES

RTC

SBUS

Shutdown

EHCI

LPC ICH9

ICH9 USB SLEEP

REMOVED DEVICES

 

if you have another problem with the patch

tell me

I stand corrected for next update

Link to comment
Share on other sites

My pc don't have in your list patched. :angel:

please help me.

My pc is Toshiba sattelite M645 s4055

i attached my ori dsdt and Ioreg file.

Thank you.

dsdt.aml_Quang_Vu.zip

FIX WARNINGS

EHCI

DTGP

RTC

SHUTDOWN

IRQs

SBUS

 

if you want to apply something more

use DSDT EDITOR and PATCHER

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

Link to comment
Share on other sites

there's only a fix for the ' UD3L ' and not ' UD3LR ' :wacko:

 

will this work with the ' UD3LR ' Board, too ???

 

THX anyway for this great app :D

 

CooSee ' Ya

 

Send me your original DSDT

 

Run on terminal

perl -e 'open(CMD, "ioreg -lw0 \| grep DSDT|") or die; while(<CMD>) { chomp; if($_ =~ /\"DSDT\.?\d?\"=<([^>]*)>/) { $buff = $1; open(PIP, "|xxd -r -p > ~/Desktop/dsdt.aml") or die; print PIP "$1"; } }'

 

I prepare the patch :)

Link to comment
Share on other sites

Send me your original DSDT

 

Run on terminal

perl -e 'open(CMD, "ioreg -lw0 \| grep DSDT|") or die; while(<CMD>) { chomp; if($_ =~ /\"DSDT\.?\d?\"=<([^>]*)>/) { $buff = $1; open(PIP, "|xxd -r -p > ~/Desktop/dsdt.aml") or die; print PIP "$1"; } }'

 

I prepare the patch :P

 

 

Thank you :P

 

i use VoodooPowerMini, but it seems not work correctly, do i need this, after modified DSDT ???

 

CooSee ' Ya

dsdt.aml.zip

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...