Jump to content

Asus Q550-LF DSDT Help


KazWolfe
 Share

17 posts in this topic

Recommended Posts

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 by pacificfils
Link to comment
Share on other sites

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

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

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

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

Backlights work now :D!!!

 

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

 Share

×
×
  • Create New...