KazWolfe Posted September 20, 2014 Share Posted September 20, 2014 (edited) Hello! I am trying to patch my DSDT, but I keep running into errors. Main DSDT Patch I am currently receiving these errors: 5522, 6126, syntax error, unexpected PARSEOP_ZERO 5589, 6126, syntax error, unexpected PARSEOP_ZERO 7265, 6126, syntax error, unexpected '}', expecting '(' 7326, 6126, syntax error, unexpected '}', expecting '(' 9224, 6126, syntax error, unexpected '}', expecting '(' 9246, 6126, syntax error, unexpected '}', expecting '(' 9408, 6126, syntax error, unexpected '}', expecting '(' 9992, 6126, syntax error, unexpected '}', expecting '(' 11513, 6126, syntax error, unexpected '}', expecting '(' 11527, 6126, syntax error, unexpected '}', expecting '(' 12865, 6126, syntax error, unexpected PARSEOP_ARG0 25134, 6126, syntax error, unexpected PARSEOP_IF 25145, 6126, syntax error, unexpected PARSEOP_IF 25214, 6126, syntax error, unexpected $end and premature End-Of-File How do I patch this file successfully? Also, I need to edit my DSDT to have "Layout_ID=3". How do I do this? Thanks! Edited September 21, 2014 by pacificfils Link to comment Share on other sites More sharing options...
RehabMan Posted September 20, 2014 Share Posted September 20, 2014 Hello! I am trying to patch my DSDT, but I keep running into errors. Main DSDT Patch I am currently receiving these errors: 5522, 6126, syntax error, unexpected PARSEOP_ZERO 5589, 6126, syntax error, unexpected PARSEOP_ZERO 7265, 6126, syntax error, unexpected '}', expecting '(' 7326, 6126, syntax error, unexpected '}', expecting '(' 9224, 6126, syntax error, unexpected '}', expecting '(' 9246, 6126, syntax error, unexpected '}', expecting '(' 9408, 6126, syntax error, unexpected '}', expecting '(' 9992, 6126, syntax error, unexpected '}', expecting '(' 11513, 6126, syntax error, unexpected '}', expecting '(' 11527, 6126, syntax error, unexpected '}', expecting '(' 12865, 6126, syntax error, unexpected PARSEOP_ARG0 25134, 6126, syntax error, unexpected PARSEOP_IF 25145, 6126, syntax error, unexpected PARSEOP_IF 25214, 6126, syntax error, unexpected $end and premature End-Of-File How do I patch this file successfully? Also, I received a DSDT file with a KEXT I needed to install (ALC668). How do I patch in the necessary changes to my DSDT? (Received File) Thanks! Extract all DSDT/SSDT files from Linux. Then disassemble as a group with 'iasl -da DSDT SSDT*'. Work with the resulting *.dsl files (there will be much fewer errors). Link to comment Share on other sites More sharing options...
KazWolfe Posted September 20, 2014 Author Share Posted September 20, 2014 How would I do that? I am completely foreign to the entire concept of DSDT. Link to comment Share on other sites More sharing options...
carbo178 Posted September 20, 2014 Share Posted September 20, 2014 OK, try this... 0 errors, 0 warnings, 0 remarks, 186 optimizations. I added layout-id 3 in _DSM method in HDEF section TEST.aml.zip Link to comment Share on other sites More sharing options...
KazWolfe Posted September 20, 2014 Author Share Posted September 20, 2014 Thank you for that Carbo. Unfortunately, my version of MaciASL is showing 16 errors: Or can I just drop this in directly? Link to comment Share on other sites More sharing options...
carbo178 Posted September 20, 2014 Share Posted September 20, 2014 I use DSDT Editor, with this app i have 0 errors Link to comment Share on other sites More sharing options...
KazWolfe Posted September 20, 2014 Author Share Posted September 20, 2014 Ok. I'll just try to get Clover to use this file. I'll report back on how it works. Link to comment Share on other sites More sharing options...
carbo178 Posted September 20, 2014 Share Posted September 20, 2014 You can re-extract the dsdt with this terminal command (first delete actual DSDT from Clover folder) perl -e 'open(CMD, "ioreg -lw0 \| grep DSDT|") or die; while(){ chomp; if($_ =~ /\"DSDT\.?\d?\"=]*)>/) { $buff = $1; open(PIP,"|xxd -r -p > ~/Desktop/dsdt.aml") or die; print PIP "$1"; } }' Compress and send the file Link to comment Share on other sites More sharing options...
KazWolfe Posted September 20, 2014 Author Share Posted September 20, 2014 When you created that DSDT, did you include the patch in addition to the layout-id? Also, do I run that command in the same directory as the DSDT you gave me? Or do I remove your custom DSDT from Clover and run the command in my home folder? Link to comment Share on other sites More sharing options...
carbo178 Posted September 20, 2014 Share Posted September 20, 2014 Yes, you send me the link of the patch and your audio codec. Have you tried the dsdt? (I think sound doesn't work) If you have problems or KP at boot, insert DSDT=/aaaaaaa in Clover boot-args, then delete the file Link to comment Share on other sites More sharing options...
KazWolfe Posted September 20, 2014 Author Share Posted September 20, 2014 I have tried the DSDT you sent me. There are no kernel panics, but nothing changes. My audio device is detected in the System Profiler, but it doesn't work yet. Let me try the bootargs thing and get back to you. Update: I have deleted your DSDT file and rebooted. Run the command now? Link to comment Share on other sites More sharing options...
carbo178 Posted September 20, 2014 Share Posted September 20, 2014 Yes, tomorrow i attach the new file. Send me the link for audio patch Link to comment Share on other sites More sharing options...
KazWolfe Posted September 20, 2014 Author Share Posted September 20, 2014 Results attached. Audio Patch: http://www.insanelymac.com/forum/topic/293863-applehda-patch-requests/?p=2062623 dsdt.zip Link to comment Share on other sites More sharing options...
KazWolfe Posted September 21, 2014 Author Share Posted September 21, 2014 Also, my CPU is Haswell. It needs this patch instead of the one I linked above (I updated that one): # Patch by EMlyDinEsH (OSXLatitude) # Patches for Controlling Asus keyboard backlight # from my drivers AsusNBFnKeys and ELAN Touchpad # Inserting backlight off control field for ELAN and Fn Keys driver into device label ATKD code_regex Name\s\(BOFF,\sZero\) remove_matched; into device label ATKD insert begin Name (BOFF, Zero) end; # Method SKBL for setting keyboard backlight level into method label SKBL parent_label ATKD remove_entry; into Device label ATKD insert begin Method (SKBL, 1, NotSerialized)\n {\n If (Or (LEqual (Arg0, 0xED), LEqual (Arg0, 0xFD)))\n {\n If (LEqual(Arg0, BOFF))\n {\n Store (Zero, Local0)\n }\n Else\n {\n Return (One)\n }\n }\n Else\n {\n If(Or (LEqual (Arg0, 0xEA), LEqual (Arg0, 0xFA)))\n {\n Store (KBLV, Local0)\n If (LEqual(Arg0, 0xEA))\n {\n Store (0xED, BOFF)\n }\n Else \n {\n Store (0xFD, BOFF)\n }\n }\n Else\n {\n Store (Arg0, Local0)\n Store (Arg0, KBLV)\n }\n }\n Store (DerefOf (Index (PWKB, Local0)), Local1)\n ^^PCI0.LPCB.EC0.WRAM (0x04B1, Local1)\n Return (One)\n } end; # Method GKBL for reading keyboard backlight level into method label GKBL parent_label ATKD remove_entry; into Device label ATKD insert begin Method (GKBL, 1, NotSerialized)\n {\n Return (KBLV)\n } end; Link to comment Share on other sites More sharing options...
carbo178 Posted September 21, 2014 Share Posted September 21, 2014 Try this, applied patches for audio and backlight For audio: Go to Midi Audio Configuration and try all output (also earphones) For MacISL: Go into Preferences, deselect the checkbox as a attached picture dsdt.aml.zip Link to comment Share on other sites More sharing options...
KazWolfe Posted September 21, 2014 Author Share Posted September 21, 2014 Backlights work now !!! Sound, however, still does not. I think it's a KEXT issue. I have put in a new request to Mirone for a new driver that should work. Link to comment Share on other sites More sharing options...
carbo178 Posted September 21, 2014 Share Posted September 21, 2014 Backlights work now !!! Sound, however, still does not. I think it's a KEXT issue. I have put in a new request to Mirone for a new driver that should work. Send also new dsdt to Mirone, maybe is something wrong in the patch Link to comment Share on other sites More sharing options...
Recommended Posts