Contribute
Register

[Guide] How to patch DSDT for working battery status

thanks, i think it work! Is this fully work, sir?
Code:
Last login: Sat May 19 23:10:03 on console
Trans-MacBook-Pro:~ tranchuc$ sudo cp -R ~/Downloads/RehabMan-Battery-2017-1001/Release/ACPIBatteryManager.kext /System/Library/Extensions
Password:
Trans-MacBook-Pro:~ tranchuc$  sudo kextcache -i /
/ locked; waiting for lock.
Lock acquired; proceeding.
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa271760250 [0x7fff85b4aaf0]> { URL = "AppleBacklightInjector.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa26f516850 [0x7fff85b4aaf0]> { URL = "ACPIBatteryManager.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
KernelCache ID: F841A2EF03F83A99FD5CD9AFAECF2028
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ff20dc1b9d0 [0x7fff85b4aaf0]> { URL = "ACPIBatteryManager.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ff210604390 [0x7fff85b4aaf0]> { URL = "AppleBacklightInjector.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }
Trans-MacBook-Pro:~ tranchuc$
View attachment 331917

From that image, seems like it is...
 
Hi RehabMan.
After getting a clean dump and patched the DSDT with "[bat] Lenovo X230i", battery status is working fine on my ThinkPad P51. Thanks for your help!
Maybe you can add a comment in the patch to tell others the patch can also work on Lenovo ThinkPad P51.
hi ,can you share your dsdt? I can't deal with the batter of my p51
 
hi ,can you share your dsdt? I can't deal with the batter of my p51
shouldn't share DSDT, as you can cause more harm than good, ie, different BIOS versions, different BIOS options etc.

you should patch your own DSDT
 
shouldn't share DSDT, as you can cause more harm than good, ie, different BIOS versions, different BIOS options etc.

you should patch your own DSDT

thank you for replay me,I failed to try to deal with the error of dsdt,here is my dsdt,can help me to deal with the bat manger of p51?
 

Attachments

  • origin.zip
    71.3 KB · Views: 81
thank you for replay me,I failed to try to deal with the error of dsdt,here is my dsdt,can help me to deal with the bat manger of p51?
i disassembled your files and saw an error, i commented out lines 153 and 155, resulting no errors

i haven't done any patches, that can be your job :)
 

Attachments

  • DSDT.dsl
    916.3 KB · Views: 158
%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202018-05-21%20%E4%B8%8B%E5%8D%886.22.20.png
i disassembled your files and saw an error, i commented out lines 153 and 155, resulting no errors

i haven't done any patches, that can be your job :)
thank you for your job!,my batter manger run well!
 
Hello @RehabMan,

thank you for your great guide and sharing all this knowledge :)

Please find attached:
  • Hardware information about my notebook (Tuxedo Infinitybook 13v2 [a Clevo rebrand])
  • The battery DSDT patch I created using your guide
  • My native acpi files
Battery status is showing and changes normally. Still I created the patch today and did not have much time to observe it.

EDIT: Sorry, there is one issue: The status lags behind and is not updated for some periods of time (see screenshot added to attachment).

Best regards,
Fox
 

Attachments

  • InfinityBook_13v2_Battery_Status_Patch.zip
    35.2 KB · Views: 64
  • battery_status_lags.png
    battery_status_lags.png
    67.9 KB · Views: 93
Last edited:
Back
Top