October 18, 201115 yr Author The commands syntax is described herehttp://Olarila.com/forum/viewtopic.php?f=19&t=62You can use existing patches as exampleshttps://olarila.com/files/DSDT/Patches/ -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
October 18, 201115 yr I have actually been reading a lot of the patches. I now understand how to go about adding, but how would I remove the _DSM section from GFX0 which is contained inside PCI0? I need to make a few changes to that and I can't seem to figure that out. The way removing sections is handled confuses me. Would this be it, with changes to match my DSDT? 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 0x88, 0x08, 0xEC, 0x10\n }, \n "layout-id", \n Buffer (0x04)\n {\n 0x78, 0x03, 0x00, 0x00\n }, \n "device-type", \n Buffer (0x0F)\n {\n "Realtek ALC888"\n }, \n "PinConfigurations", \n Buffer (One)\n {\n 0x00\n }\n }, Local0)\n DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n Return (Local0)\n } end
October 18, 201115 yr Author I don't understand what you want to change. Post the original code and what you want to patch. -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
October 18, 201115 yr I think I figured it out. Thanks though, I may be back. New one: How do I specify where to place something? or does it matter? I want to take this Device (AC) { Name (_HID, "ACPI0003") Name (_PCL, Package (0x01) { _SB }) Method (_PSR, 0, NotSerialized) { Store (^^PCI0.LPCB.EC0.GACS (), Local0) Store (Local0, PWRS) Store (^^PCI0.LPCB.EC0.GPID (), Local1) If (XOr (Local0, ACST)) { \_GPE.HNLP (Zero) ^^PCI0.ACEL.AJAL () \_GPE.VPUP (Local0, Local1) ^^PCI0.LPCB.EC0.SMCP (Local0) } If (LOr (LAnd (Local0, LNot (ACST)), LAnd (Local1, LNot (SMAR)))) { ^^WMID.WGWE (0x03, Zero) } Store (Local0, ACST) Store (Local1, SMAR) Return (Local0) } } And add this to it. Does it matter where it goes? In the dsdt I am basing this off of, it comes right after the HID section. Name (_PRW, Package (0x02) { 0x18, 0x03 }) Also, how would I change a device name from something, say GFX0 to IGPU or AC to ADP1? I want to edit a patch that MaLd0n gave us so everyone can use it to do this automatically.
October 19, 201115 yr Author Just use insert, it adds at the end, the position doesn't matter into device label AC insert begin Name (_PRW, Package (0x02)\n {\n 0x18,\n 0x03\n }) end Check this example. For device rename check this example. -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
October 19, 201115 yr Yeah I figured how to add, just not how to specify where, I didn't know if it mattered. Thanks for all the help, sorry for being a bit n00bish about it, I know its frustrating. But I'm slowly getting the hang of this. Continuing with the renaming, I want to rename the AC device listed2 posts above this. Using this: into device label AC set_label begin ADP1 end; into_all all code_regex AC replaceall_matched begin ADP1 end Makes my DSDT compile with errors all over. But I don't know how to get the device address. I saw somewhere when messing with GFX0 how to do it, so I can rename that, but how could I edit the above code so it works?
October 19, 201115 yr Author To rename the device you need just the first part into device label AC set_label begin ADP1 end The second part replaces all code_regex matches in the file, it it needed only if there are references to device AC that need to be replaced. As "AC" is a very common string you will need to refine the code_regex, something like into_all all code_regex SB.AC replaceall_matched begin SB.ADP1 end Check for compilation errors after renaming AC, if there are no errors the second part is not needed. -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
October 19, 201115 yr Author It's an example. Let's say you get an "Object does not exist (\_SB.MOO.AC)" error after renaming AC to ADP1, then you would do into_all all code_regex SB.MOO.AC replaceall_matched begin SB.MOO.ADP1 end If you use just "AC" it will replace things like "0xAC" to "0xADP1" which will produce a syntax error. -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
October 19, 201115 yr It's an example. Let's say you get an "Object does not exist (\_SB.MOO.AC)" error after renaming AC to ADP1, then you would do into_all all code_regex SB.MOO.AC replaceall_matched begin SB.MOO.ADP1 end If you use just "AC" it will replace things like "0xAC" to "0xADP1" which will produce a syntax error. I now understand. I'll try this tomorrow. Thanks! This should be the last problem. I am trying to turn Method (_RMV, 0, NotSerialized) { If (_OSI ("Windows 2009")) { Return (Zero) } Else { Return (One) } } that last One into a zero. The device this is in is called SMHC which is inside PCI0. Why does this not work? into method label _RMV device label SMHC remove_entry; into device label SMHC insert begin Method (_RMV, 0, NotSerialized)\n {\n If (_OSI ("Windows 2009"))\n {\n Return (Zero)\n }\n Else\n {\n Return (Zero)\n }\n }\n end
October 23, 201115 yr I followed the tutorial in OP for the latest Gigabyte GA-EX58 EXTREME bios from gigabyte's website, F13s. All went well but when I replaced the old DSDT.aml taken form tonycrap's DSDT database that was for F12 with the one that resulted from this tutorial, I would have no sound detected. To note, I am not using a patched HDA, I am using HDA rollback method under 10.7.2 provided through tonycrap's multishit solution. That said, I had 25% FPS increase in Cinebench with the new one! Any ideas on how to restore audio?
October 23, 201115 yr If you use patched AppleHDA you may need to update the HDEF patch according to your audio codec. Make sure layout-id in DSDT (hex) coincides with LayoutID in AppleHDA (decimal) [table=400][trf][tdf]LayoutID (dec)[/tdf] [tdl]layout-id (hex)[/tdl][/trf] [tr][tdf]12[/tdf] [tdl]0x0C, 0x00, 0x00, 0x00 = 0xC[/tdl][/tr] [trl][tdf]889[/tdf] [tdl]0x79, 0x03, 0x00, 0x00 = 0x379[/tdl][/trl][/table] -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
October 23, 201115 yr Thanks I ran the patch as is for my audio chipset and it worked flawlessly! Cheers!
October 24, 201115 yr Would you be so kind to create a script for the Dell Vostro 3750? I tried to apply the script for the Vostro 3550 with the simplified AutoPatcher - I thought it was the same machine just with a smaller display - but that ended up in an error. send_me.zip
October 24, 201115 yr Author I guess you can just remove Arg0 Arg1 Arg2 Arg3 after Return (NVOP) Anything after "return" will be unreachable statement anyway. -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
October 26, 201115 yr Hello. I followed this guid to create my DSDT. My Mobo is a P8P67 Pro (rev 3.0) bios 2001, but I think it did not work as they are not recognized can the USB 3, Bluetooth and other things. What I do wrong?
October 26, 201115 yr The patch for this mobo is available on first page. For USB 3.0 you need PXHCD kext. http://www.lacie.com/more/index.htm?id=10112 Bluetooth I have no idea. -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
October 31, 201115 yr I guess you can just remove Arg0 Arg1 Arg2 Arg3 after Return (NVOP) Anything after "return" will be unreachable statement anyway. Thanks, oldnapalm, will try.
October 31, 201115 yr After removing those 4 lines I could compile the dsdt.aml without errors, just got 2 warnings. Looking forward to try it, I just have to install Lion on an external hd again first.
November 1, 201115 yr The patched dsdt didn't have any effect on screen resolution (1024x768 without any other options). The vostro also only boots with safe system start -x. I installed iATKOS Lion with the extra-folder option checked, anything else default.
Create an account or sign in to comment