Jump to content

[Request] Help with patching battery for Asus UL50AG


tim687
 Share

41 posts in this topic

Recommended Posts

Hello!!

 

Yesterday I've installed OS X 10.10.2 on my Asus UL50AG. Today I got the WiFi fixed, so I'm almost there.

 

There is one thing I really want, the battery info.

 

I've attached a 'patched' DSDT of my laptop. Well it's not working, but never the less.

 

When I boot with the -v flag, I quickly see some things flying at the screen, one of them is some kind of ACPI error with the SB.PCI0.SMRG.ECO_.SMBR and with the SB.PCI0.BAT0_BST

 

The last one, I think, has to do with the battery. It throws AE_BAD_PARAMETER to me, and I don't know what that means.

 

If anybody can help me out with this headache,

 

Please!

 

 

I've attached the original DSDT and the 'patched' one.

 

Tim

 

patched battery dsdt.zip

 

dsdt.zip

Link to comment
Share on other sites

  • 2 months later...

Sorry for this very very very late reply, the patching went perfect. No corrections were needed. Just waiting for an installation to complete before I'll reboot and test the dsdt patch.

 

I'll keep you updated!

 

Right now I'm having a trouble booting the system at all, don't know if that's because the dsdt. I got the spinning cursor of death at the login screen.  :(  :(

Link to comment
Share on other sites

I got a strange bug at the battery percentage, the os itself isn't showing anything, but HWMonitor is showing something

Check the box to show it on menu bar.

Link to comment
Share on other sites

Should I enter debug ACPIBatteryManager.kext in the terminal?

I think that's going to be the dat after tomorrow when I've time to do that

https://github.com/RehabMan/OS-X-ACPI-Battery-Driver

 

Also, ACPIDebug.kext can be useful for debugging DSDT:

 

https://github.com/RehabMan/OS-X-ACPI-Debug

 

Chances are you're doing something fundamentally wrong though:

- using DSDT from another computer

- using incorrect DSDT patches

- DSDT not patched for _OSI "Darwin" check

- wrong version of AppleACPIPlatform.kext installed

 

etc.etc..

Link to comment
Share on other sites

With your amazing debugger, I found out that some of the battery stats are actually transmitted into the right part of the dsdt table.

 

However not everything is transmitted though.

 

I've attached my dsdt, IORegistry export file and my system.log.

 

It would be awesome if you can help me out with this!

 

 

Battery patch question.zip

Link to comment
Share on other sites

With your amazing debugger, I found out that some of the battery stats are actually transmitted into the right part of the dsdt table.

 

However not everything is transmitted though.

 

I've attached my dsdt, IORegistry export file and my system.log.

 

It would be awesome if you can help me out with this!

The ioreg was not captured with IORegistryExplorer v2.1. If you want me to look at it, use v2.1.

 

I don't use VoodooBattery.

 

ACPIBatteryManager: https://github.com/RehabMan/OS-X-ACPI-Battery-Driver

Link to comment
Share on other sites

I'll take a look at it tomorrow and post the up to date ioreg

If I use your battery next do I need to rewrite the whole dsdt battery system?

Battery patches required are the same with ACPIBatteryManager as any other kext.

Link to comment
Share on other sites

The ioreg was not captured with IORegistryExplorer v2.1. If you want me to look at it, use v2.1.

 

I don't use VoodooBattery.

 

ACPIBatteryManager: https://github.com/RehabMan/OS-X-ACPI-Battery-Driver

I'll post the IOReg with v2.1 in a minute, I'm using v3.0.2.

 

I'll also install your battery ACPI kext

 

EDIT: Here is the new archive with the IOREg v2.1

Battery patch question 2.zip

Link to comment
Share on other sites

I'll post the IOReg with v2.1 in a minute, I'm using v3.0.2.

 

I'll also install your battery ACPI kext

 

EDIT: Here is the new archive with the IOREg v2.1

I don't see much wrong from ioreg. Although is is *really old hardware*, and I don't have much experience with the old stuff...

 

Could be a problem that "Serial" is empty.

Link to comment
Share on other sites

But how do I find the values that are in the IOReg? How can I link the values to each other?

But how do I find the values that are in the IOReg? How can I link the values to each other?

Look under BAT0->AppleSmartBatteryManager->AppleSmartBattery.

Link to comment
Share on other sites

I see those values, but where are those located in the DSDT?

They don't come directly from DSDT. They are created by ACPIBatteryManager.kext after querying DSDT _BST/_BIF methods. Read the ACPI spec for more info.

Link to comment
Share on other sites

Thanks I'll try something out.

 

Another off-topic question, is the numlock patchable with DSDT aswel? The numlock doesn't work


I've found something in the pdf's you got linked at the github page, but there aren't any addresses? in there. How do I know what is what?

 

PDF:

 

http://www.acpi.info/DOWNLOADS/ACPI_5_Errata%20A.pdf

 

page 533

 

EDIT: I've found the right parameter, how do I pass it to the system?

Link to comment
Share on other sites

Thanks!

 

What about the battery capacity remaining value? I got the right value, but it itsn't passed to the system.

It looked ok in ioreg.

Link to comment
Share on other sites

Jup your right, suddenly the battery icon appeared!

 

Thanks for all of your advice!

 

EDIT: This is very very very strange,

 

Using the Clover bootloader the battery doesn't work, using Chameleon it does.

 

I've installed your kext in the /S/L/E/ folder and not in the clover folder.

 

In the attachement you'll see the patches I've checked.

Clover bootloader problem.zip

Link to comment
Share on other sites

 Share

×
×
  • Create New...