Attention folks I have modified our DSDT to get both Sleep/Wake to work
There are still couple issues I am working on. The Republic of Gamers LED and a small strip LED on top of the Lid still flash slowly when sleeping and when you open the lid it won't wake unless you strike a key on the keyboard or a momentarily click the power button.
Another issue I am working on is USB DIsk Insertion error from Wake. So make sure you don't keep any Flash Drives in the USB if it goes to sleep until I figure out a Fix.
These fixes came from various sources over time. Some of which I have applied to my Dell XPS M1530 which works flawless and now almost 100% on my Asus G51JX-X5.
Also the EHC0/EHC1 fix has also fixed the shutdown issue so revert the code back to the way it was from my above post.
There is actually better fix for the Lid sleep but it still won't wake unless you press any key on your keyboard or just click momentarily on you power button. See the Clamshell fix below.
Also for those with the AR9285 Atheros Wireless Cards install this into your /system/library/extensions
Backup up the one there first.
http://www.kexts.com...ros_ar9285.html
Clamshell Fix from a XPS M1530 Thread I used in the past for my Dell XPS M1530: Under _SB add this fix.
Device (PNLF)
{
Name (_HID, EisaId ("APP0002"))
Name (_CID, "backlight")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
}
Exact Location in DSDT is Between Device (P0P1) and Device (HDEF)
Device (P0P1)
{
Name (_ADR, 0x001E0000)
Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x0B, 0x04))
}
}
Device (PNLF)
{
Name (_HID, EisaId ("APP0002"))
Name (_CID, "backlight")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
}
Device (HDEF)
{
Here are the EHC's Modified. Just replace the before code with the after code. Or copy the code from the DSDT I provided below.
Before Fix:
Device (EHC0)
{
Name (_ADR, 0x001D0000)
Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x0D, 0x03))
}
}
Device (EHC1)
{
Name (_ADR, 0x001A0000)
Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x0D, 0x03))
}
}
After Fix:
Device (EHC0)
{
Name (_ADR, 0x001D0000)
Name (_S1D, 0x02)
Name (_S3D, 0x02)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0B)
{
"AAPL,clock-id",
Buffer (One)
{
0x01
},
"device_type",
Buffer (0x05)
{
"EHCI"
},
"AAPL,current-available",
0x04B0,
"AAPL,current-extra",
0x02BC,
"AAPL,current-in-sleep",
0x03E8,
Buffer (One)
{
0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
//Above this code below
Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x0D, 0x03))
}
}
AND
Device (EHC1)
{
Name (_ADR, 0x001A0000)
Name (_S1D, 0x02)
Name (_S3D, 0x02)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0B)
{
"AAPL,clock-id",
Buffer (One)
{
0x01
},
"device_type",
Buffer (0x05)
{
"EHCI"
},
"AAPL,current-available",
0x04B0,
"AAPL,current-extra",
0x02BC,
"AAPL,current-in-sleep",
0x03E8,
Buffer (One)
{
0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
//Above this code below
Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x0D, 0x03))
}
}
Here is my latest DSDT all cleaned up and with the SBUS Fix. This takes care of the "** AppleSMBusPCI::start failed to get acpi path for provider" failure issue.
Asus_G51Jx_Most_Current_Most_Cleaned_Still_Working_On_Insertion_Error_Fix_SBUS_Working_Now.aml.zip 22.76K
124 downloads
I have edited this post several times, so any mods you did from the HP dvt8 link I had provided earlier please remove those fixes. The DSDT I have provided above has all the necessary changes I have provided in this post. Since I am spending a lot of time on this there is a chance I might start a new thread we will see?