MirkoCovizzi / thinkpad-p51-hackintosh

GNU General Public License v2.0
41 stars 15 forks source link

Syntax error, unexpected PARSEOP_NAME #7

Closed lucaschen closed 4 years ago

lucaschen commented 5 years ago

I'm getting this error when trying to compile my DSDT.dsl.

Has anyone else experienced this issue or have any experience on how to fix it? I can provide more files to explain my situation as needed.

Boubak729 commented 4 years ago

Hi there, I have the same issues. I've deleted the "One" not working, and marqued as comment with "//" but it always return the error : 6126, syntax error, unexpected PARSEOP_NAME. I use Catalina on a Thinkpad P51 i7 7700HQ, Quadro 1200, intelHD630 graphic, 24 Gig of RAM,. Need some help. Here my files

DSDT.dsl.zip DSDT.aml.zip Screen Shot 2020-02-26 at 3 36 00 PM

MirkoCovizzi commented 4 years ago

As far as I remember, you have to delete those lines with empty "One" instructions, so, in the image example, lines #221 and #223. Let me know if this fixes your problem.

Boubak729 commented 4 years ago

Hi, thanks for the answer. someone seems to find out a way and fixed my file for those error. Now then, my goal at the beginning was to enable the battery status and when I patch it with the DSDT_battery_status_patch.txt content from your EFI folder I end up with some error. I try again with rehabman [bat]Lenovo 230i same error. I correct them all except for one: 31020, 6126, syntax error, unexpected $end and premature End-Of-File. Again, I am stuck. is it possible to get ride out of this error. I use MaciASL 1.5.7.

DSDT.zip

MirkoCovizzi commented 4 years ago

I don't remember dealing with that error. Have you tried deleting the extra empty lines at the end of the file?

Boubak729 commented 4 years ago

Yeah, but the same error occurs again and again. Even delating some code the error keep jumping.

MirkoCovizzi commented 4 years ago

You should consider checking the official tonymacx86 guide for dsdt patching.

https://www.tonymacx86.com/threads/guide-how-to-patch-dsdt-for-working-battery-status.116102/

You will probably find other users that have solved a similar problem in the past.

Boubak729 commented 4 years ago

I hope so, thanks.

Boubak729 commented 4 years ago

I finally found a way. It seems like my extracted dsdt have some problems. So I reextract from windows using AIDA64. Now the dsdt is working fine. Thanks.