Contribute
Register

[Guide] How to patch DSDT for working battery status

Your signature lacks details on the internal screen resolution. Please read #2316 carefully.

Not sure what is going on here i entered it twice before hopefully it sticks this time
 

Attachments

  • DSDT1.zip
    58.1 KB · Views: 81
Not sure what is going on here i entered it twice before hopefully it sticks this time

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
if [ -d ~/Downloads/RehabMan ]; then rm -R ~/Downloads/RehabMan; fi
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract

Note: It is easier if you use copy/paste instead of typing the commands manually.

Post contents of Downloads/RehabMan directory (as ZIP).

Also, post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

And output from:
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc

Press F4 in main Clover screen (to gather ACPI/origin), post EFI/Clover folder.
 
Hi RehabMan,

I have Surface Pro 3 i5 and with the following battery issue.
MaxCapacity & DesignCapacity Value are not read by IOReg 0x0. and I believe this is why battery percentage does not work.

I believe the values are there but are not read by ACPIBatteryManager.kext v1.60 for some reason?
ACPIDebug: { "BIF0 _BIX static battery information 0x1", 0x1, }
ACPIDebug: { "BIF1 _BIX static battery information 0x15ab", 0x15ab, }
ACPIDebug: { "BIF2 _BIX static battery information 0x1516", 0x1517, }
ACPIDebug: { "BIF3 _BIX static battery information 0x1", 0x1, }
ACPIDebug: { "BIF4 _BIX static battery information 0x1db0", 0x1db0, }

Please see attached files
 

Attachments

  • sp3_ioreg_dsdt_logs.zip
    582.1 KB · Views: 81
Hi RehabMan,

I have Surface Pro 3 i5 and with the following battery issue.
MaxCapacity & DesignCapacity Value are not read by IOReg 0x0. and I believe this is why battery percentage does not work.

I believe the values are there but are not read by ACPIBatteryManager.kext v1.60 for some reason?
ACPIDebug: { "BIF0 _BIX static battery information 0x1", 0x1, }
ACPIDebug: { "BIF1 _BIX static battery information 0x15ab", 0x15ab, }
ACPIDebug: { "BIF2 _BIX static battery information 0x1516", 0x1517, }
ACPIDebug: { "BIF3 _BIX static battery information 0x1", 0x1, }
ACPIDebug: { "BIF4 _BIX static battery information 0x1db0", 0x1db0, }

Please see attached files

Use the debug ACPIBatteryManager.kext to determine which method(s) are failing.
 
I can see the evaluate object errors but how to follow that back?

Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: fPowerUnit = 0x0
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: currentStatus = 0x0
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: fCurrentRate = 0
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: fCurrentCapacity = 5399
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: fCurrentVoltage = 8625
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: Calculating for WATTS
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: fCurrentRate(mA) = 0
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: fCurrentCapacity(mAh) = 5399
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: fAverageRate = 0
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: Battery is charged.
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: constructAppleSerialNumber called
Oct 24 00:38:21 jc84-SP3 kernel[0]: ACPIBatteryManager: rebuildLegacyIOBatteryInfo called
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: pollingTimeOut called
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: pollBatteryState: path = 2
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: pollBatteryState: path = 1
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: getBatterySTA called
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: evaluateObject error 0xe00002bc
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: getBatteryBIX called
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: evaluateObject error 0xe00002c2
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: getBatteryBST called
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: evaluateObject error 0xe00002bc
 
I can see the evaluate object errors but how to follow that back?

...
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: getBatterySTA called
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: evaluateObject error 0xe00002bc
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: getBatteryBIX called
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: evaluateObject error 0xe00002c2
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: getBatteryBST called
Oct 24 00:38:51 jc84-SP3 kernel[0]: ACPIBatteryManager: evaluateObject error 0xe00002bc

Your DSDT needs patches... All the methods are failing...
 
Guys i've got an issue.

I'm trying to patch my DSDT for battery status with the appropriate patch i found on another thread but i get errors which i cannot go beyond. Also i applied the usb patch for el capitan using maciasl and after that the system reboots when i press shutdown so i manually power off.
The system is a Fujitsu AH552/sl but to my understanding it has the same battery as an AH531 hence the patch i'm trying to use.

I would be extremely grateful if someone could help me deal with those 2 issues

View attachment battery_patch_Fujitsu_AH532_G21.txtView attachment DSDT.aml
 
Hi,
i'm on El Capitan, and the ACPIBatteryManager.kext works fine with chameleon bootloader, but when i use clover it doesn't work.
I'm using the same file and DSDT.aml too.
Does anyone know what can be the problem?
Thanks
 
I can't make battery percentage work :(
In IOREG the status says 0x0, so something is wrong.
With Chameleon works fine but i want it with clover.
Anyone can help me please?
View attachment 159122
 
Guys i've got an issue.

I'm trying to patch my DSDT for battery status with the appropriate patch i found on another thread but i get errors which i cannot go beyond. Also i applied the usb patch for el capitan using maciasl and after that the system reboots when i press shutdown so i manually power off.
The system is a Fujitsu AH552/sl but to my understanding it has the same battery as an AH531 hence the patch i'm trying to use.

I would be extremely grateful if someone could help me deal with those 2 issues

View attachment 158928View attachment 158929

bump
 
Back
Top