AE_BAD_HEX_CONSTANT
Hello,
I am having a few problems with the battery
information with my Acer Aspire 1613Lmi.
I get the following error :
kernel: psparse-1133: *** Error: Method execution failed [\_SB_.PCI0.LPC0.EC__.GBIF] (Node dfe6e480), AE_BAD_HEX_CONSTANT
kernel: psparse-1133: *** Error: Method execution failed [\_SB_.PCI0.LPC0.EC__.BAT0._BIF] (Node dfe6de00), AE_BAD_HEX_CONSTANT
I tracked down to the lines in the ASL code. I've attached part of the DSDT containing this lines. The part that gives the problem is pointed out.
The whole DSDT can be seen at :
http://cern.ch/paulo/dsdt.dsl.orig
Thanks in advance for any help.
Regards,
Paulo
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
Mutex (BATM, 0x07)
Method (GBIF, 2, NotSerialized)
{
Acquire (BATM, 0xFFFF)
/* Problems start here - If commented out the error goes away, but I can't get no information from the battery*/
Store (0x0FA0, Index (Arg1, 0x01))
Store (0x0FA0, Index (Arg1, 0x02))
Store (0x39D0, Index (Arg1, 0x04))
Store (0x0190, Index (Arg1, 0x05))
Store (0x78, Index (Arg1, 0x06))
Store (0x0118, Index (Arg1, 0x07))
Store (0x0E10, Index (Arg1, 0x08))
Store ("Bat 8Cell", Index (Arg1, 0x09))
Store ("236", Index (Arg1, 0x0A))
Store ("Lion", Index (Arg1, 0x0B))
Store ("Acer", Index (Arg1, 0x0C))
/* Problems ends here */
Release (BATM)
Return (Arg1)
}
Method (GBST, 4, NotSerialized)
{
Acquire (BATM, 0xFFFF)
If (Arg1)
{
Store (GBPI (Arg0, 0x01), Local0)
}
If (\_SB.PCI0.LPC0.EC.AC.ACST)
{
If (Arg1)
{
If (And (Local0, 0x20))
{
Store (0x00, Index (Arg2, 0x00))
}
Else
{
If (CLED)
{
Store (0x00, Index (Arg2, 0x00))
}
Else
{
Store (0x02, Index (Arg2, 0x00))
}
}
}
Else
{
Store (0x00, Index (Arg2, 0x00))
Store (0xFFFFFFFF, Index (Arg2, 0x01))
Store (0xFFFFFFFF, Index (Arg2, 0x02))
Store (0xFFFFFFFF, Index (Arg2, 0x03))
Return (Arg2)
}
}
Else
{
Store (0x01, Local5)
If (LEqual (And (\RBEC (0x43), 0x20), 0x00))
{
Or (Local5, 0x04, Local5)
}
Store (Local5, Index (Arg2, 0x00))
}
If (Arg1)
{
Store (GBPI (Arg0, 0x04), Local3)
}
If (BLLW)
{
Store (0x00, BLLW)
Store (0x06, Local4)
}
Else
{
If (LEqual (Local3, 0x64))
{
Store (Arg3, Local4)
}
Else
{
If (LLess (Local3, 0x03))
{
Store (0x00, Local4)
}
Else
{
Multiply (Arg3, Local3, Local5)
Divide (Local5, 0x64, Local6, Local4)
If (Local6)
{
Increment (Local4)
}
}
}
}
Store (Local4, Index (Arg2, 0x02))
Store (0xFFFFFFFF, Local5)
Store (Local5, Index (Arg2, 0x01))
If (Arg0)
{
Store (0x2EE0, Index (Arg2, 0x03))
}
Else
{
Store (0x3E80, Index (Arg2, 0x03))
}
Release (BATM)
Return (Arg2)
}
Device (BAT0)
{
Name (_HID, EisaId ("PNP0C0A"))
Name (_PCL, Package (0x01)
{
\_SB
})
Name (B0ST, 0x00)
Method (_STA, 0, NotSerialized)
{
If (\_SB.PCI0.AGP.EVGA.SWIH)
{
If (And (\RBEC (0x78), 0x04))
{
Store (0x00, B0ST)
}
Else
{
Store (0x01, B0ST)
}
}
Else
{
Store (0x01, B0ST)
}
If (B0ST)
{
Return (0x1F)
}
Else
{
Return (0x0F)
}
}
Name (BT0I, Package (0x0D)
{
0x01,
0x19C8,
0x19C8,
0x01,
0x39D0,
0x014A,
0xDC,
0x012C,
0x0294,
"ANA",
"110",
"Lion",
0x00
})
Method (_BIF, 0, NotSerialized)
{
If (And (\RBEC (0x78), 0x04))
{
Store (0xFFFFFFFF, Index (BT0I, 0x01))
Store (0xFFFFFFFF, Index (BT0I, 0x02))
Store (0xFFFFFFFF, Index (BT0I, 0x04))
Store ("Bad", Index (BT0I, 0x09))
Store ("Bad", Index (BT0I, 0x0A))
Store ("Bad", Index (BT0I, 0x0B))
Store ("Bad", Index (BT0I, 0x0C))
Return (BT0I)
}
Else
{
Return (GBIF (0x00, BT0I))
}
}
Name (BT0P, Package (0x04)
{
0x00,
0xFFFFFFFF,
0x0BB8,
0xFFFFFFFF
})
Method (_BST, 0, NotSerialized)
{
Store (DerefOf (Index (BT0I, 0x02)), Local0)
Return (GBST (0x00, B0ST, BT0P, Local0))
}
}Quoted 12 lines · Paulo da Silva
Hello,
I am having a few problems with the battery
information with my Acer Aspire 1613Lmi.
I get the following error :
kernel: psparse-1133: *** Error: Method execution failed [\_SB_.PCI0.LPC0.EC__.GBIF] (Nodedfe6e480),AE_BAD_HEX_CONSTANT
kernel: psparse-1133: *** Error: Method execution failed [\_SB_.PCI0.LPC0.EC__.BAT0._BIF] (Nodedfe6de00),AE_BAD_HEX_CONSTANT
Quoted 8 lines
I tracked down to the lines in the ASL code. I've attached part of the DSDT containing this lines. The part that gives the problem is pointed out.
The whole DSDT can be seen at :
http://cern.ch/paulo/dsdt.dsl.origThanks in advance for any help.
The problem is here:
Store ("Bat 8Cell", Index (Arg1, 0x09))
Store ("236", Index (Arg1, 0x0A))
Store ("Lion", Index (Arg1, 0x0B))
Store ("Acer", Index (Arg1, 0x0C))If you look at the value being dereferenced as the destination arg, it's a string. So this should really store a string to a string. For some reason, ACPI-CA is attempting to convert the string to an Integer before storing it.
Name (BT0I, Package (0x0D)
{
0x01,
0x19C8,
0x19C8,
0x01,
0x39D0,
0x014A,
0xDC,
0x012C,
0x0294,
"ANA",
"110",
"Lion",
0x00
})Looking more carefully, it looks like commenting out just the last line ("Acer") would suffice. Index 0xC is actually an integer (0x00) so this is what triggers the Integer conversion. I'm not sure how the conversion rules should be modified to take this into account.
Signature · 8 lines
Nate ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Quoted 18 lines · Nate Lawson
Name (BT0I, Package (0x0D)
{
0x01,
0x19C8,
0x19C8,
0x01,
0x39D0,
0x014A,
0xDC,
0x012C,
0x0294,
"ANA",
"110",
"Lion",
0x00
})Quoted 5 lines
Looking more carefully, it looks like commenting out just the last line ("Acer") would suffice. Index
0xCis actually an integer (0x00) so this is what triggers the Integer conversion. I'm not sure how the conversion rules should be modified to take this into account.
I suggest to replace the last integer with a string like "Acer". Since anyway BT0I is expected to be a package returned by a _BIF method, it must be compatible with ACPI spec (look at 11.2.2.1).
Signature · 11 lines
Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Quoted 19 lines · Bruno Ducrot
Quoted 17 lines · Nate Lawson
Name (BT0I, Package (0x0D) { 0x01, 0x19C8, 0x19C8, 0x01, 0x39D0, 0x014A, 0xDC, 0x012C, 0x0294, "ANA", "110", "Lion", 0x00 })
Quoted 8 lines
Quoted 2 lines
Looking more carefully, it looks like commenting out just the last line ("Acer") would suffice. Index
0xCis actually an integer (0x00) so this is what triggers the Integer conversion. I'm not sure how the conversion rules should be modified to take this into account.I suggest to replace the last integer with a string like "Acer". Since anyway BT0I is expected to be a package returned by a
_BIFmethod, it must be compatible with ACPI spec (look at 11.2.2.1).
I agree to test this, but I'd also like to see acpi-ca improved to handle this case with the stock ASL.
Signature · 8 lines
Nate ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8