Contribute
Register

[solved] Need help patching DSDT for battery status.

Status
Not open for further replies.
Joined
Sep 8, 2011
Messages
880
Motherboard
HP 250 G5 (81EF) Clover UEFI
CPU
i3 5005u
Graphics
HD 5500 (1366x768)
Mobile Phone
  1. Android
A friend asked me to help him to implement battery status on his Toshiba sattelite pro c660. I tried the "battery_Toshiba-A660-16Z.txt" patch but it outputs these errors after trying the patch. Any help?
 

Attachments

  • origin.zip
    83.1 KB · Views: 59
  • Screen Shot 2017-10-29 at 20.40.41.png
    Screen Shot 2017-10-29 at 20.40.41.png
    464.4 KB · Views: 89
ACPIBatteryManager.kext isn't working?
 
A friend asked me to help him to implement battery status on his Toshiba sattelite pro c660. I tried the "battery_Toshiba-A660-16Z.txt" patch but it outputs these errors after trying the patch. Any help?

The patch file uses B1B4, but the author forgot to add it to the file:
Code:
# B1B4 utility method
into method label B1B4 remove_entry;
into definitionblock code_regex . insert
begin
Method (B1B4, 4, NotSerialized)\n
{\n
    Store(Arg3, Local0)\n
    Or(Arg2, ShiftLeft(Local0, 8), Local0)\n
    Or(Arg1, ShiftLeft(Local0, 8), Local0)\n
    Or(Arg0, ShiftLeft(Local0, 8), Local0)\n
    Return(Local0)\n
}\n
end;
 
The patch file uses B1B4, but the author forgot to add it to the file:
Code:
# B1B4 utility method
into method label B1B4 remove_entry;
into definitionblock code_regex . insert
begin
Method (B1B4, 4, NotSerialized)\n
{\n
    Store(Arg3, Local0)\n
    Or(Arg2, ShiftLeft(Local0, 8), Local0)\n
    Or(Arg1, ShiftLeft(Local0, 8), Local0)\n
    Or(Arg0, ShiftLeft(Local0, 8), Local0)\n
    Return(Local0)\n
}\n
end;
Thank you! You can mark it solved.
 
Status
Not open for further replies.
Back
Top