Contribute
Register

Need help with Laptop DSDT Edit, I Don't understand the guide..

Status
Not open for further replies.
What would i do if there is a parseop_integar error, when i have a edited value right below another edited value? Ex:
BT10,8,BT11,8,
1SN1,8,1SN2,8
EDIT: Nevermind, solved the issue. it was a conflicting thing.
 
I am having a issue with this segment of code, how would i fix it?
it says B1FC doesn't exist, because i changed it to b1zz and b2zz. Here is the segment of code:
{
Store (B1B2(B1ZZ,B2ZZ), Local0)
Multiply (Local0, 0x0A, Local0)
Store (Local0, Index (PBIF, One))
Store (B1B2(B2FC,B3FC), Local0)
Multiply (Local0, 0x0A, Local0)
Store (Local0, Index (PBIF, 0x02))
Store (B1B2(B1ZZ,B2ZZ), Index (PBIF, 0x04))
If (B1FC)
{
Store (Divide (Multiply (B1B2(B2FC,B3FC), 0x0A), 0x0A, ), Index (PBIF, 0x05))
Store (Divide (Multiply (B1B2(B2FC,B3FC), 0x0A), 0x19, ), Index (PBIF, 0x06))
Store (Divide (Multiply (B1B2(B1ZZ,B2ZZ), 0x0A), 0x64, ), Index (PBIF, 0x07))
}
 
What would i do if there is a parseop_integar error, when i have a edited value right below another edited value? Ex:
BT10,8,BT11,8,
1SN1,8,1SN2,8
EDIT: Nevermind, solved the issue. it was a conflicting thing.

In ASL, identifiers must start with an alpha character.
 
Ok, but now i have another problem. i posted a reply about it, with the quote for it.
 
I am having a issue with this segment of code, how would i fix it?
it says B1FC doesn't exist, because i changed it to b1zz and b2zz. Here is the segment of code:

You use B1B2 to access the now separated field. I can't really tell what you're doing as you have partially patched code and confusing names.
 
should i post the edited DSDT? I am about halfway through, and i am stuck at B1FC.
EDIT: I'm getting a object does not exist error. I know thats because i am using the b1b2 patch, but is there anyway to fix it in that specific section?
 
should i post the edited DSDT? I am about halfway through, and i am stuck at B1FC.

Let's say you split B1FC into two parts B1F1 and B1F2.

You would want to translate the 'If (B1FC)' into 'If (B1B2(B1F1,B1F2))'...
 
But then it gives me syntax errors at the next part. I can post the whole thing that i edited.
If (LEqual (ECON, One)) {
Store (B1B2(B1ZZ,B2ZZ), Local0)
Multiply (Local0, 0x0A, Local0)
Store (Local0, Index (PBIF, One))
Store (B1B2(DDD1,DDD2), Local0)
Multiply (Local0, 0x0A, Local0)
Store (Local0, Index (PBIF, 0x02))
Store (B1B2(B1ZZ,B2ZZ), Index (PBIF, 0x04))
If (B1B2(DDD1,DDD2)
{
Store (Divide (Multiply (B1B2(DDD1,DDD2), 0x0A), 0x0A, ), Index (PBIF, 0x05))
Store (Divide (Multiply (B1B2(DDD1,DDD2), 0x0A), 0x19, ), Index (PBIF, 0x06))
Store (Divide (Multiply (B1B2(B1ZZ,B2ZZ), 0x0A), 0x64, ), Index (PBIF, 0x07))
}
Edit: Forgot to mention i changed b1f1/b1f2 to ddd1 and ddd2 to see if it would fix it, it didn't.
Edit 2: I derped. I forgot to add a extra parenthesis for the statement If (b1b2(DDD1,DDD2))
 
But then it gives me syntax errors at the next part. I can post the whole thing that i edited.

Edit 2: I derped. I forgot to add a extra parenthesis for the statement If (b1b2(DDD1,DDD2))

Keep working at it. As you can see, the compiler is able to help you find some of your mistakes.
 
I Am working on the fields FWBT, SMDA, BMN0, and BDN0, but how would i find the offsets of those?
 
Status
Not open for further replies.
Back
Top