Jump to content
calmesal

DSDT compile error

20 posts in this topic

Recommended Posts

Advertisement

I think you can replace the problematic code:

 

            If (IGDS)
            {
                If (\_SB.PCI0.GFX0.SCIP (\_SB.PCI0.GFX0.GLID (Local0), Else
                        {
                        })) {}
            }
by this one:

 

 

            If (IGDS)
            {
                If (\_SB.PCI0.GFX0.SCIP (\_SB.PCI0.GFX0.GLID (Local0))) {}
                Else {}
            }
The last reported error (with "premature End-Of-File") is resulting from previous or other syntax errors...

Share this post


Link to post
Share on other sites

Thanks again for your help, but unfortunately the error just move down to next line.

Appreciate if you can try to compile it with MaciASL to se if it works.

Share this post


Link to post
Share on other sites

If this is an unpatched extracted/raw table, can you please post the original .aml file?

Yes it is. I just extracted to patch it for my Intel HD 4400 to get QE/CI to work.

Delete 3960

Local0

should compile after that.

Tian you. It just compiled but I have many errors and try to patch it now.

Share this post


Link to post
Share on other sites

I have been working on this Laptop, not the one in my signature, for a while trying to patch it for a working hach. I have managed to make the most of the things to work quite good, but now I have problem with the battery level. That battery icon is there with Acpibattery.kext but it showing 0%. I looked at the every possible patch existing on the forum but without success.

The model is HP 15 r85no withe core i5 2.3G, 8G ram and HD4400 graphic/Nvida 820m, QE/CI working.

I post my dsdt, iron and the Acpibattery debug output. I hope some one can help with solving the batter %.

 

dsdt.zip

Share this post


Link to post
Share on other sites

Thanks for your reply. But non of these patches is suiteble or working for my dsdt. These patched refers to some values that doesn't exist in the dads.

Share this post


Link to post
Share on other sites

Hello!

 

Can some one please help me with two syntax error I have when compiling a clean DSDT with patchomatic-mac Iasl.

The key is correct disassembly. You're doing it wrong.

 

You must disassemble with SSDTs as context. Get DSDT.aml and all native SSDTs in a single folder, then use: "iasl -da -dl *.aml" to disassemble all of them at once.

Share this post


Link to post
Share on other sites

The key is correct disassembly. You're doing it wrong.

 

You must disassemble with SSDTs as context. Get DSDT.aml and all native SSDTs in a single folder, then use: "iasl -da -dl *.aml" to disassemble all of them at once.

Thanks RehabMan for that. Now I extracted all the tables and compiled without errors. But still no battery 0%  in battery indicator.

I tried all your batt. patches but nothing. Any ides?

Share this post


Link to post
Share on other sites

Thanks RehabMan for that. Now I extracted all the tables and compiled without errors. But still no battery 0%  in battery indicator.

I tried all your batt. patches but nothing. Any ides?

There is a battery patching guide (not here) written by me if you google for it.

Share this post


Link to post
Share on other sites

There is a battery patching guide (not here) written by me if you google for it.

Yes I know you mean this http://www.tonymacx86.com/threads/guide-how-to-patch-dsdt-for-working-battery-status.116102/

But I don't understand, it refers to some values like ECF2 in EC I can't find it in any of my acpi tables. I have Device BAT1 and EC0.

Can you please look at the DSDT, attached in my previous post above, and se were can I patch.

Thanks in advance.

Share this post


Link to post
Share on other sites

Yes I know you mean this http://www.tonymacx86.com/threads/guide-how-to-patch-dsdt-for-working-battery-status.116102/

But I don't understand, it refers to some values like ECF2 in EC I can't find it in any of my acpi tables. I have Device BAT1 and EC0.

Can you please look at the DSDT, attached in my previous post above, and se were can I patch.

Thanks in advance.

EmbeddedControl:

OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)

OperationRegion (ECPR, EmbeddedControl, Zero, 0xFF)

OperationRegion (ECRM, EmbeddedControl, Zero, 0xFF)

 

So, then you search for "Field (ERAM", "Field (ECPR", and "Field (ECRM" and patch multibyte EC registers as necessary.

 

There is probably an existing patch already for your DSDT. But clearly your signature is wrong, as it indicates Dell, yet the DSDT indicates HP.

Share this post


Link to post
Share on other sites

I have been working on this Laptop, not the one in my signature, for a while trying to patch it for a working hach. I have managed to make the most of the things to work quite good, but now I have problem with the battery level. That battery icon is there with Acpibattery.kext but it showing 0%. I looked at the every possible patch existing on the forum but without success.

The model is HP 15 r85no withe core i5 2.3G, 8G ram and HD4400 graphic/Nvida 820m, QE/CI working.

I post my dsdt, iron and the Acpibattery debug output. I hope some one can help with solving the batter %.

 

 

EmbeddedControl:

OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)

OperationRegion (ECPR, EmbeddedControl, Zero, 0xFF)

OperationRegion (ECRM, EmbeddedControl, Zero, 0xFF)

 

So, then you search for "Field (ERAM", "Field (ECPR", and "Field (ECRM" and patch multibyte EC registers as necessary.

 

There is probably an existing patch already for your DSDT. But clearly your signature is wrong, as it indicates Dell, yet the DSDT indicates HP.

Thanks again. As you can se in my previews post this is a HP laptop I working on it. I found the regions an patched as you guide says but I get many errors upon compile. You existing patches doesn't work either. Please look if i the DSDT I posted and try to patch it.

I will appreciate it.

dsdt.zip

Share this post


Link to post
Share on other sites

Thanks again. As you can se in my previews post this is a HP laptop I working on it. I found the regions an patched as you guide says but I get many errors upon compile. You existing patches doesn't work either. Please look if i the DSDT I posted and try to patch it.

I will appreciate it.

You can try each HP patch in the repo. Patches with a high ratio of patches/changes are likely candidates, and may work as is or need only small tweaks. You should verify offsets of large EC fields/etc. Since writing the guide, I'm no longer creating any more patches myself unless I need them for my own laptop.

Share this post


Link to post
Share on other sites

Thanks again for your help it has been useful. I will try to find out where to change these values in the register. I seems that this is a very buggy dsdt.

Share this post


Link to post
Share on other sites

I seems that this is a very buggy dsdt.

I don't see why you would say that. The bug in this case is in the OS X implementation of ACPI.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×