Jump to content

DSDT Auto-Patcher


MaLd0n
 Share

5,753 posts in this topic

Recommended Posts

Reasonably sure. Gigabyte page on the motherboard says it is:

http://www.gigabyte.com/products/product-p...spx?pid=3021#sp

 

 

 

Audio was works with ALC885_889a.kext on new SL retail install, but 10.6.7 breaks that kext from working anymore.

I have no idea

alc889a Gigabyte very easy

 

try it clean install

Link to comment
Share on other sites

Hey MaLd0n

 

I have an HP DV7-1299EF, I was able to get the sound working using a patched AppleHDA from here coz the IDT 92HD71B7X is poorely supported by VoodoHDA or other patched AppleHDA.. I didn't get much problems with Nvidia, NVEnabler enabled it and it's 100% working.

 

However I'm stuck at sleeping, the PC does go in sleep but it doesn't wake up, if I open the lid the computer wakes up but boots into BIOS (like turning it on), I also have problems using the HP Webcam the SD/MMC reader and of course the Wifi but I know that no drivers for that.

 

In the file send_me.zip I removed the dsdt.aml the script extracted and included two DSLs, one as is from linux and another one that I'm using right now (which got me the sound, basicly just the HDEF device mattered I think)

 

I have to use VoodooPS2 to get my keyboard and mouse working and I also have to boot with USBBusFix=Yes otherwise I won't get USB support either.

 

I have many info on the hardware stored in a git repository here

 

I would really appreciate your input on my issue.

 

Thanks

send_me.zip

Link to comment
Share on other sites

here is my dsdt data attached, i m in need of ps/2 keyboard ,trackpad patch and gma x3100 patch for my dsdt. and mic that is working like {censored} on latest voodohda.

send_me.zip

what model of notebook?

 

Maldon Maldon , Ayudame ayudame porfa

Se ha roto el HD y he perdido todos los dsdt….. esto es el original extraído de Windows…. Modifícalo para mí que me estoy haciendo viejo

dsdt.magnifico10.zip

01j.png

Link to comment
Share on other sites

Aloha Cassandro.

My computer is a Sony VGN-CR120E

it has a GMAx3100 and the GM 965.

I have been trying to get quartz working but i have not been able to do so.

can you help me?

Do i need to reinstall OSX and then do the patching?

 

Sorry i searched

 

 

through insanelymac but im such a noob at these things.

 

Do i need additional kexts along with this patch?

 

 

 

 

Thank you very much

send_me.zip

Link to comment
Share on other sites

what model of notebook?

 

i have toshiba satellite l300, the detail of my configuration is in my signature.

 

thank you

 

 

 

 

Aloha Cassandro.

My computer is a Sony VGN-CR120E

it has a GMAx3100 and the GM 965.

I have been trying to get quartz working but i have not been able to do so.

can you help me?

Do i need to reinstall OSX and then do the patching?

 

Sorry i searched

 

 

through insanelymac but im such a noob at these things.

 

Do i need additional kexts along with this patch?

 

 

 

 

Thank you very much

 

i can give you the kext working for me in only 32 bit mod if you want tell me.

Link to comment
Share on other sites

here is my dsdt data attached, i m in need of ps/2 keyboard ,trackpad patch and gma x3100 patch for my dsdt. and mic that is working like {censored} on latest voodohda.

 

dsdt.lacoste111.zip

 

PS2

 

Voodoo

http://www.insanelymac.com/forum/index.php...st&id=87706

 

or

 

ApplePs2

http://www.insanelymac.com/forum/index.php...st&id=89083

 

Use NativePM, see the first post

Link to comment
Share on other sites

Hi, madl0n, could you improve Asrock 4Core 1600-FVI dsdt? Because some fixes in latest autopatcher doesn't work, particularly these two: HDEF fix, EHCI fix(I use EHCIacquire fix).

 

P.S. I attach modified version of dsdt witch I use.

dsdt.aml.zip

Link to comment
Share on other sites

I have an HP DV7-1299EF, I was able to get the sound working using a patched AppleHDA from here coz the IDT 92HD71B7X is poorely supported by VoodoHDA or other patched AppleHDA.. I didn't get much problems with Nvidia, NVEnabler enabled it and it's 100% working.

 

However I'm stuck at sleeping, the PC does go in sleep but it doesn't wake up, if I open the lid the computer wakes up but boots into BIOS (like turning it on), I also have problems using the HP Webcam the SD/MMC reader and of course the Wifi but I know that no drivers for that.

 

In the file send_me.zip I removed the dsdt.aml the script extracted and included two DSLs, one as is from linux and another one that I'm using right now (which got me the sound, basicly just the HDEF device mattered I think)

 

I have to use VoodooPS2 to get my keyboard and mouse working and I also have to boot with USBBusFix=Yes otherwise I won't get USB support either.

 

Chipset? ICHX?

 

Sony VGN-CR120E

DSDT

dsdt.tsuna27.zip

 

EXTRA FOLDER

http://www.insanelymac.com/forum/index.php...st&id=91323

 

USE arch=i386

 

if vídeo not work natively, you'll have to patch the kexts

 

sudo -s

perl -pi -e "s|\x86\x80\x02\x2A|\x86\x80\x12\x2A|g" /System/Library/Extensions/AppleIntelGMAX3100FB.kext/AppleIntelGMAX3100FB

perl -pi -e "s|\x86\x80\x02\x2A|\x86\x80\x12\x2A|g" /System/Library/Extensions/AppleIntelGMAX3100.kext/Contents/MacOS/AppleIntelGMAX3100

perl -pi -e "s|028086|128086|g" /System/Library/Extensions/AppleIntelGMAX3100FB.kext/Info.plist

perl -pi -e "s|028086|128086|g" /System/Library/Extensions/AppleIntelGMAX3100.kext/Contents/Info.plist

Link to comment
Share on other sites

P.S. I attach modified version of dsdt witch I use.

ICH7 you do not need to fix UHCI

test it(EHCI)

dsdt.Rapidas.zip

 

into_all scope label _PR code_regex Alias\s\([^\n]+\n removeall_matched;
into_all scope label \_PR code_regex Alias\s\([^\n]+\n removeall_matched;
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 device name_adr 0x001B0000 set_label
begin
HDEF
end;
into_all all code_regex HDAC replaceall_matched
begin
HDEF
end;
into device label PWRB code_regex (Name\s\()_HID(\,\sEisaId\s\(\"PNP0C0C\"\)\)) replace_matched begin %1_CID%2 end;
into method label _STA parent_hid PNP0103 remove_entry;
into device name_hid PNP0103 insert
begin
Method (_STA, 0, NotSerialized)\n
{\n
   Return (0x0F)\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 _DSM parent_adr 0x001F0000 remove_entry;
into device name_adr 0x001F0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0xb9, 0x27, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into_all all code_regex (Acquire\s\(MUTE,\s0x)....\)
replace_matched
begin
%1FFFF)
end;
into device label SPKR remove_entry;
into device label FDC remove_entry;
into device label FDC0 remove_entry;
into device label LPT1 remove_entry;
into device label LPTE remove_entry;
into device label LPT remove_entry;
into device label ECP1 remove_entry;
into device label MEM remove_entry;
into device label ^^RMEM remove_entry;
into device label USB0 set_label begin UHC1 end;
into device label USB1 set_label begin UHC2 end;
into device label USB2 set_label begin UHC3 end;
into device label USB3 set_label begin UHC4 end;
into device label USB4 set_label begin UHC5 end;
into device label USB5 set_label begin UHC6 end;
into device label USB6 set_label begin UHC7 end;
into device label EUSB set_label begin EHC1 end;
into_all all code_regex USB0 replaceall_matched begin UHC1 end;
into_all all code_regex USB1 replaceall_matched begin UHC2 end;
into_all all code_regex USB2 replaceall_matched begin UHC3 end;
into_all all code_regex USB3 replaceall_matched begin UHC4 end;
into_all all code_regex USB4 replaceall_matched begin UHC5 end;
into_all all code_regex USB5 replaceall_matched begin UHC6 end;
into_all all code_regex USB6 replaceall_matched begin UHC7 end;
into_all all code_regex EUSB replaceall_matched begin EHC1 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,\s*0x05\)\) code_regex ^((?:.|\n)*)$ replace_matched
begin
       If (LEqual (Arg0, 0x05))\n
       {\n
           Store (Zero, SLPE)\n
           Sleep (0x10)\n
       }\n
       Else\n
       {\n
%1
       }
end;
into definitionblock code_regex . code_regex_not OperationRegion\s*\(PMRS insert
begin
OperationRegion (PMRS, SystemIO, 0x0430, One)\n
Field (PMRS, ByteAcc, NoLock, Preserve)\n
{\n
       ,   4, \n
   SLPE,   1\n
}
end;
into device name_adr 0x001B0000 set_label
begin
HDEF
end;
into_all all code_regex AZAL replaceall_matched
begin
HDEF
end;
into method label _DSM parent_adr 0x001D0007 remove_entry;
into device name_adr 0x001D0007 insert
begin
Method (_DSM, 4, NotSerialized)\n
               {\n
                   Store (Package (0x04)\n
                       {\n
                           "device-id", \n
                           Buffer (0x04)\n
                           {\n
                               0x36, 0x28, 0x00, 0x00\n
                           }, \n
                           "AAPL,clock-id", \n
                           Buffer (One)\n
                           {\n
                               0x01\n
                           }\n
                       }, Local0)\n
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
                   Return (Local0)\n
               }
end;
into method label _DSM parent_adr 0x001B0000 remove_entry;
into device name_adr 0x001B0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
               {\n
                   Store (Package (0x08)\n
                       {\n
                           "codec-id", \n
                           Buffer (0x04)\n
                           {\n
                               0x62, 0x06, 0xEC, 0x10\n
                           }, \n
                           "layout-id", \n
                           Buffer (0x04)\n
                           {\n
                               0x96, 0x02, 0x00, 0x00\n
                           }, \n
                           "device-type", \n
                           Buffer (0x0F)\n
                           {\n
                               "Realtek ALC662"\n
                           }, \n
                           "PinConfigurations", \n
                           Buffer (Zero) {}\n
                       }, Local0)\n
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
                   Return (Local0)\n
               }
end

 

Shutdown

		Method (_PTS, 1, NotSerialized)
	{
		If (LEqual (Arg0, 0x05)) {}
		Else
		{
			... original code
		}
	}

 

this should resolve

 

you do not need the "operation region" in definition.block

[color="#FF0000"][b]OperationRegion (PMRS, SystemIO, 0x0830, 0x13)
   Field (PMRS, ByteAcc, NoLock, Preserve)
   {
           ,   4, 
       SLPE,   1
   }[/b][/color]

and

If (LEqual (Arg0, 0x05))
       {
           [color="#FF0000"][b]Store (Zero, SLPE)
           Sleep (0x10)[/b][/color]
       }

Link to comment
Share on other sites

ICH7 you do not need to fix UHCI

test it(EHCI)

dsdt.Rapidas.zip

 

into_all scope label _PR code_regex Alias\s\([^\n]+\n removeall_matched;
into_all scope label \_PR code_regex Alias\s\([^\n]+\n removeall_matched;
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 device name_adr 0x001B0000 set_label
begin
HDEF
end;
into_all all code_regex HDAC replaceall_matched
begin
HDEF
end;
into device label PWRB code_regex (Name\s\()_HID(\,\sEisaId\s\(\"PNP0C0C\"\)\)) replace_matched begin %1_CID%2 end;
into method label _STA parent_hid PNP0103 remove_entry;
into device name_hid PNP0103 insert
begin
Method (_STA, 0, NotSerialized)\n
{\n
   Return (0x0F)\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 _DSM parent_adr 0x001F0000 remove_entry;
into device name_adr 0x001F0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0xb9, 0x27, 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end;
into_all all code_regex (Acquire\s\(MUTE,\s0x)....\)
replace_matched
begin
%1FFFF)
end;
into device label SPKR remove_entry;
into device label FDC remove_entry;
into device label FDC0 remove_entry;
into device label LPT1 remove_entry;
into device label LPTE remove_entry;
into device label LPT remove_entry;
into device label ECP1 remove_entry;
into device label MEM remove_entry;
into device label ^^RMEM remove_entry;
into device label USB0 set_label begin UHC1 end;
into device label USB1 set_label begin UHC2 end;
into device label USB2 set_label begin UHC3 end;
into device label USB3 set_label begin UHC4 end;
into device label USB4 set_label begin UHC5 end;
into device label USB5 set_label begin UHC6 end;
into device label USB6 set_label begin UHC7 end;
into device label EUSB set_label begin EHC1 end;
into_all all code_regex USB0 replaceall_matched begin UHC1 end;
into_all all code_regex USB1 replaceall_matched begin UHC2 end;
into_all all code_regex USB2 replaceall_matched begin UHC3 end;
into_all all code_regex USB3 replaceall_matched begin UHC4 end;
into_all all code_regex USB4 replaceall_matched begin UHC5 end;
into_all all code_regex USB5 replaceall_matched begin UHC6 end;
into_all all code_regex USB6 replaceall_matched begin UHC7 end;
into_all all code_regex EUSB replaceall_matched begin EHC1 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,\s*0x05\)\) code_regex ^((?:.|\n)*)$ replace_matched
begin
       If (LEqual (Arg0, 0x05))\n
       {\n
           Store (Zero, SLPE)\n
           Sleep (0x10)\n
       }\n
       Else\n
       {\n
%1
       }
end;
into definitionblock code_regex . code_regex_not OperationRegion\s*\(PMRS insert
begin
OperationRegion (PMRS, SystemIO, 0x0430, One)\n
Field (PMRS, ByteAcc, NoLock, Preserve)\n
{\n
       ,   4, \n
   SLPE,   1\n
}
end;
into device name_adr 0x001B0000 set_label
begin
HDEF
end;
into_all all code_regex AZAL replaceall_matched
begin
HDEF
end;
into method label _DSM parent_adr 0x001D0007 remove_entry;
into device name_adr 0x001D0007 insert
begin
Method (_DSM, 4, NotSerialized)\n
               {\n
                   Store (Package (0x04)\n
                       {\n
                           "device-id", \n
                           Buffer (0x04)\n
                           {\n
                               0x36, 0x28, 0x00, 0x00\n
                           }, \n
                           "AAPL,clock-id", \n
                           Buffer (One)\n
                           {\n
                               0x01\n
                           }\n
                       }, Local0)\n
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
                   Return (Local0)\n
               }
end;
into method label _DSM parent_adr 0x001B0000 remove_entry;
into device name_adr 0x001B0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
               {\n
                   Store (Package (0x08)\n
                       {\n
                           "codec-id", \n
                           Buffer (0x04)\n
                           {\n
                               0x62, 0x06, 0xEC, 0x10\n
                           }, \n
                           "layout-id", \n
                           Buffer (0x04)\n
                           {\n
                               0x96, 0x02, 0x00, 0x00\n
                           }, \n
                           "device-type", \n
                           Buffer (0x0F)\n
                           {\n
                               "Realtek ALC662"\n
                           }, \n
                           "PinConfigurations", \n
                           Buffer (Zero) {}\n
                       }, Local0)\n
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
                   Return (Local0)\n
               }
end

 

Shutdown

		Method (_PTS, 1, NotSerialized)
	 {
		 If (LEqual (Arg0, 0x05)) {}
		 Else
		 {
			 ... original code
		 }
	 }

 

this should resolve

 

you do not need the "operation region" in definition.block

[color="#FF0000"][b]OperationRegion (PMRS, SystemIO, 0x0830, 0x13)
   Field (PMRS, ByteAcc, NoLock, Preserve)
   {
           ,   4, 
       SLPE,   1
   }[/b][/color]

and

If (LEqual (Arg0, 0x05))
       {
           [color="#FF0000"][b]Store (Zero, SLPE)
           Sleep (0x10)[/b][/color]
       }

 

Tested your dsdt, pc just hangs if i boot without EHCIAcquire flag. Maybe I dont't have some sort of important file or what? If i boot using your dsdt and EHCIacquire flag pc boots normally.

Link to comment
Share on other sites

Tested your dsdt, pc just hangs if i boot without EHCIAcquire flag. Maybe I dont't have some sort of important file or what? If i boot using your dsdt and EHCIacquire flag pc boots normally.

some motherboards from Intel that has the same problem

I use this fix

dsdt.02.zip

and always resolves

 

if it doesn't work

you can try other patches

Link to comment
Share on other sites

Thanks a lot MaLd0n .. i will try it tonight ... but kindly how do I install the new dsdt you created for me ?? :D

put in "Extra Folder" or root of the HD

Link to comment
Share on other sites

put in "Extra Folder" or root of the HD

 

When i disabled "USB Legacy Support" in BIOS pc booted without EHCI flag, but I cannot use USB keyboard until OSX boots up. Tried with both yours fixes and both works if "USB Legacy Support" is set to disabled.

Link to comment
Share on other sites

When i disabled "USB Legacy Support" in BIOS pc booted without EHCI flag, but I cannot use USB keyboard until OSX boots up.

 

USBLegacyOff=Yes

Link to comment
Share on other sites

Yep

 

I think you'll have to use this

 

So why should I use that flag if pc boots with out it? I should use that flag if i want to keep "USB Legacy Support" enabled?, because I tried and pc hangs.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...