Contribute
Register

[Guide] How to patch DSDT for working battery status

Joined
Jun 7, 2015
Messages
60
Motherboard
10.9.5
CPU
i5-4570
Graphics
HD4600
Mac
Classic Mac
Mobile Phone
Read post #1, "Problem Reporting".
into method label FBST code_regex If\s\(CHGS\s\(Zero\)\)[\s]+\{[\s]+Store\s\(0x02,\sLocal0\)[\s]+\}[\s]+Else[\s]+\{[\s]+Store\s\(One,\sLocal0\)[\s]+\} replaceall_matched begin

If (CHGS (Zero))\n

{\n

Store (0x02, Local0)\n

}\n

Else\n

{\n

Store (Zero, Local0)\n

}

end;
12.png
I don't seem to understand the code. Can you tell me exactly how to do it? Or you can change it for me
 

Attachments

  • DSDT_Revised.dsl
    498.8 KB · Views: 86
Joined
Jun 7, 2015
Messages
60
Motherboard
10.9.5
CPU
i5-4570
Graphics
HD4600
Mac
Classic Mac
Mobile Phone
Read post #1, "Problem Reporting".
I've done it according to your "Problem Reporting". Please help me to solve the problem! thank you very much indeed!
7AFC0D21-9FAC-44EB-A632-1ECE11496618.png
kextstat|grep -y acpiplat:

13 2 0xffffff7f82ce2000 0x60000 0x60000 com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>


kextstat|grep -y applelpc

106 0 0xffffff7f8252f000 0x3000 0x3000 com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <103 12 5 4 3>


083D1C5D-9752-4929-B892-23D412B77ED4.png
Last login: Thu Jul 27 00:00:37 on ttys000

Zhangs-MacBook-Pro:~ zhang$ sudo touch /System/Library/Extensions && sudo kextcache -u /

Password:

AppleBacklightInjector.kext has incorrect permissions; omitting.

kext-dev-mode allowing invalid signature -67054 0xFFFFFFFFFFFEFA12 for kext AppleHDA.kext

KernelCache ID: 6A563316DA9BA8CBA78382B3DB88B629

Zhangs-MacBook-Pro:~ zhang$

 

Attachments

  • Clover_EFI.zip
    5.9 MB · Views: 48
  • RehabMan_Ssurface Pro 3 DSDT&SSDT.zip
    29.6 KB · Views: 65
  • Zhang’s MacBook Pro.ioreg
    4.8 MB · Views: 67
  • DSDT_Original.dsl
    494.5 KB · Views: 89
  • problem videos.zip
    1.9 MB · Views: 59
Joined
Jun 7, 2015
Messages
60
Motherboard
10.9.5
CPU
i5-4570
Graphics
HD4600
Mac
Classic Mac
Mobile Phone
Read post #1, "Problem Reporting".
I've uploaded a little video of the battery problem, upstairs, please check it out! Thank you! The name is "problem videos.zip""
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,490
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I've done it according to your "Problem Reporting". Please help me to solve the problem! thank you very much indeed!
View attachment 268851
kextstat|grep -y acpiplat:

13 2 0xffffff7f82ce2000 0x60000 0x60000 com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>


kextstat|grep -y applelpc

106 0 0xffffff7f8252f000 0x3000 0x3000 com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <103 12 5 4 3>


View attachment 268852
Last login: Thu Jul 27 00:00:37 on ttys000

Zhangs-MacBook-Pro:~ zhang$ sudo touch /System/Library/Extensions && sudo kextcache -u /

Password:

AppleBacklightInjector.kext has incorrect permissions; omitting.

kext-dev-mode allowing invalid signature -67054 0xFFFFFFFFFFFEFA12 for kext AppleHDA.kext

KernelCache ID: 6A563316DA9BA8CBA78382B3DB88B629

Zhangs-MacBook-Pro:~ zhang$


Please provide a clear/detailed description of the problem.
 
Joined
Jun 7, 2015
Messages
60
Motherboard
10.9.5
CPU
i5-4570
Graphics
HD4600
Mac
Classic Mac
Mobile Phone
Please provide a clear/detailed description of the problem.
Hi, I follow the method above you to my Surface Pro 3 battery patch, and used ACPIBatteryManager.kext (the current version is RehabMan-Battery-2014-1016), and I found some bug, specifically a normal display power, while the emergence of a small battery fork. I have tried a higher version (including version 2017). For me, only a small battery fork is displayed after the boot (there is no indication of power at all). The system is macOS 10.12.6.

Note: it has been put on“Fix Mutex with non-zero SyncLevel” but still ineffective

Is that my patch problem or ACPIBatteryManager.kext's problem? Could you please take a look at it for me? Thank you very much.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,490
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Hi, I follow the method above you to my Surface Pro 3 battery patch, and used ACPIBatteryManager.kext (the current version is RehabMan-Battery-2014-1016), and I found some bug, specifically a normal display power, while the emergence of a small battery fork. I have tried a higher version (including version 2017). For me, only a small battery fork is displayed after the boot (there is no indication of power at all). The system is macOS 10.12.6.

Your description is not clear.
Perhaps you should use images to explain (please no video).
 
Joined
Jun 7, 2015
Messages
60
Motherboard
10.9.5
CPU
i5-4570
Graphics
HD4600
Mac
Classic Mac
Mobile Phone
Your description is not clear.
Perhaps you should use images to explain (please no video).
It is my DSDT a patch according to above methods, and the use of "Fix Mutex with non-zero SyncLevel", but after the start of a normal battery can read power, 322C64E2-4896-421D-9F5C-9109C51A9460.png then it becomes a small fork0399A512-F054-4359-8A80-5CEF8F760BFC.png , changed a few versions of the "ACPIBatteryManager.kext" effect is not so good! What should I do?
4345CD57-6E14-4F6F-84B0-CEBAE440C377.png
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,490
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I've done it according to your "Problem Reporting". Please help me to solve the problem! thank you very much indeed!
View attachment 268851
kextstat|grep -y acpiplat:

13 2 0xffffff7f82ce2000 0x60000 0x60000 com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>


kextstat|grep -y applelpc

106 0 0xffffff7f8252f000 0x3000 0x3000 com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <103 12 5 4 3>


View attachment 268852
Last login: Thu Jul 27 00:00:37 on ttys000

Zhangs-MacBook-Pro:~ zhang$ sudo touch /System/Library/Extensions && sudo kextcache -u /

Password:

AppleBacklightInjector.kext has incorrect permissions; omitting.

kext-dev-mode allowing invalid signature -67054 0xFFFFFFFFFFFEFA12 for kext AppleHDA.kext

KernelCache ID: 6A563316DA9BA8CBA78382B3DB88B629

Zhangs-MacBook-Pro:~ zhang$


It is my DSDT a patch according to above methods, and the use of "Fix Mutex with non-zero SyncLevel", but after the start of a normal battery can read power, View attachment 268971 then it becomes a small forkView attachment 268970 , changed a few versions of the "ACPIBatteryManager.kext" effect is not so good! What should I do?

Your ioreg shows multiple battery objects active (BAT0, BAT1).
But there is only a battery attached to BAT0, not BAT1.
As per post #1, you must disable the BAT1 by returning zero from _STA.
 
Joined
Jun 7, 2015
Messages
60
Motherboard
10.9.5
CPU
i5-4570
Graphics
HD4600
Mac
Classic Mac
Mobile Phone
Your ioreg shows multiple battery objects active (BAT0, BAT1).
But there is only a battery attached to BAT0, not BAT1.
As per post #1, you must disable the BAT1 by returning zero from _STA.
How should I change it? I'm a new hand, not very well. Could you direct me?
 
Top