Got rid of the four warnings with the following edits and compiled the DSDT.
Still does not sleep or shutdown properly. Screen goes blank and the power on button LED is constantly on (not blinking indicating sleep mode). Have to power down in order to go any further.
Line 7714 Warning Not all control paths return a value (_CRS)
Line 7714 Warning Reserved method must return a value (Buffer required for _CRS)
Line 7714 is as follows:
Method (_CRS, 0, NotSerialized)
http://www.tonycrapx86.com/viewtopic.php?t=9229&p=255840
ORIGINAL UNMODIFIED CODE;
Method (_CRS, 0, NotSerialized)
{
If (IGDS)
{
Return (CRS)
}
}
}
}
}
FIXED CODE;
Method (_CRS, 0, NotSerialized)
{
If (IGDS)
{
Return (CRS)
}
Return (Buffer (One)
{
0x00
})
}
}
}
}
Line 12641 Warning Statement is unreachable
Line 12649 Warning Statement is unreachable
Lines 12461 and 12469 are both as follows:
Return (Ones)
http://ubuntuforums.org/archive/index.php/t-857654.html
ORIGINAL UNMODIFIED CODE;
Method (RBAT, 2, Serialized)
{
If (LNot (ECAV ()))
{
Return (Ones)
}
Acquire (MUEC, 0xFFFF)
Store (0x03, Local0)
While (Local0)
{
Store (Arg0, CDT2)
Store (Arg1, Local1)
ShiftLeft (Local1, 0x01, Local1)
Add (Local1, 0xDA, Local1)
Store (Local1, CMD1)
Store (0x7F, Local1)
While (LAnd (CMD1, Local1))
{
Decrement (Local1)
Sleep (0x01)
}
If (LEqual (CMD1, 0x00))
{
Store (CDT1, Local1)
Store (Zero, Local0)
}
Else
{
Store (Ones, Local1)
Decrement (Local0)
}
}
Release (MUEC)
Return (Local1)
Return (Ones)
}
Method (WBAT, 3, Serialized)
{
Or (Arg0, 0x80, Local3)
If (LNot (ECAV ()))
{
Return (Ones)
}
Acquire (MUEC, 0xFFFF)
Store (0x03, Local0)
While (Local0)
{
Store (Arg2, CDT1)
Store (Local3, CDT2)
Store (Arg1, Local1)
ShiftLeft (Local1, 0x01, Local1)
Add (Local1, 0xDA, Local1)
Store (Local1, CMD1)
Store (0x7F, Local1)
While (LAnd (CMD1, Local1))
{
Decrement (Local1)
Sleep (0x01)
}
}
Release (MUEC)
Return (Local1)
Return (Ones)
}
FIXED CODE;
}
Method (RBAT, 2, Serialized)
{
If (LNot (ECAV ()))
{
Return (Ones)
}
If (LEqual (Acquire (MUEC, 0xFFFF), 0x00))
{
Store (0x03, Local0)
While (Local0)
{
Store (Arg0, CDT2)
Store (Arg1, Local1)
ShiftLeft (Local1, 0x01, Local1)
Add (Local1, 0xDA, Local1)
Store (Local1, CMD1)
Store (0x7F, Local1)
While (LAnd (CMD1, Local1))
{
Decrement (Local1)
Sleep (0x01)
}
If (LEqual (CMD1, 0x00))
{
Store (CDT1, Local1)
Store (Zero, Local0)
}
Else
{
Store (Ones, Local1)
Decrement (Local0)
}
}
Release (MUEC)
Return (Local1)
}
Return (Ones)
}
Method (WBAT, 3, Serialized)
{
Or (Arg0, 0x80, Local3)
If (LNot (ECAV ()))
{
Return (Ones)
}
If (LEqual (Acquire (MUEC, 0xFFFF), 0x00))
{
Store (0x03, Local0)
While (Local0)
{
Store (Arg2, CDT1)
Store (Local3, CDT2)
Store (Arg1, Local1)
ShiftLeft (Local1, 0x01, Local1)
Add (Local1, 0xDA, Local1)
Store (Local1, CMD1)
Store (0x7F, Local1)
While (LAnd (CMD1, Local1))
{
Decrement (Local1)
Sleep (0x01)
}
}
Release (MUEC)
Return (Local1)
}
Return (Ones)
}