Contribute
Register

[Guide] How to patch DSDT for working battery status

hi sir i applied all battery patches but no luck and i couldn't follow your guide it is very difficult for me even i applied Fujitsu-Lifebook-A555 but no luck please help me

i attached my dsdt.dsl please consider for my compiled dsdt
View attachment 265817 problem look like this I couldn't find patch for battery please patch for me

Read post #1, "Problem Reporting".
 
hi sir I was attached my dsdt.dsl file for battery patch. you didn't reply me

read post 1 problem reporting I didn't understand
 
read post 1 problem reporting I didn't understand

Problem reporting requirements are in post #1, under the heading "Problem Reporting".
You did not provide the required files.
 
I have a problem battery stuck in 100% I attached my dsdt&ssdt pm I downloaded battery patch from another website
I think embedded controller region is wrong please check and make I attached also battery patch.text but I have a fujitsu
lifebook AH512
your sincerely
 

Attachments

  • orig-DSDT-SSDT-pyker.zip
    16.5 KB · Views: 80
  • battery_Fujitsu-AH530-HD6-orig.txt
    5 KB · Views: 67
I have a problem battery stuck in 100% I attached my dsdt&ssdt pm I downloaded battery patch from another website
I think embedded controller region is wrong please check and make I attached also battery patch.text but I have a fujitsu
lifebook AH512
your sincerely

Read post #1, "Problem Reporting".
 
how can I find read post 1
 
Edit: it is working now without modify the Values.

Can you help me to patch my DSDT that the Battery is also working? I tried several things but it doesn't work.
 
Last edited:
Edit: it is working now without modify the Values.

Can you help me to patch my DSDT that the Battery is also working? I tried several things but it doesn't work.

No idea what you're asking...
Anything not related to battery status is off-topic here.
 
So I'm working to fix my DSDT for battery status.
Following the guide I've found 3 items larger than 8 bits and which are accessed.
Here they are:

- VER, 24, [line 3363] = 24 bits fix (3x8 bits)
- Accessed at line 18318, method WMAB: Store (VER, Local0)
- Fixing with these 3 patches:
Code:
into device label EC code_regex VER,\s+24, replace_matched begin ER00,8,ER01,8,ER02,8, end;

into method label B1B3 remove_entry;
into definitionblock code_regex . insert
begin
Method (B1B3, 3, NotSerialized)\n
{\n
    Store(Arg2, Local0)\n
    Or(Arg1, ShiftLeft(Local0, 8), Local0)\n
    Or(Arg0, ShiftLeft(Local0, 8), Local0)\n
    Return(Local0)\n
}\n
end;

into method label WMAB code_regex \(VER, replaceall_matched begin B1B3(ER00,ER01,ER02), end;
- Result:
Code:
[line 3363] ER00,8,ER01,8,ER02,8,
[line 18318] Store (B1B3(ER00,ER01,ER02), Local0)

- CBT, 16, [line 3518] = 16 bits fix (2x8 bits)
- Accessed at line 17741, method WMBB: S_DW (Local0, 0x14, CBT)
- Fixing with these 3 patches:
Code:
into device label EC code_regex CBT,\s+16, replace_matched begin BT00,8,BT01,8, end;

into method label B1B2 remove_entry;
into definitionblock code_regex . insert
begin
    Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n
end;

into method label WMBB code_regex \CBT\) replaceall_matched begin B1B2(BT00,BT01)) end;
- Result:
Code:
[line 3518] BT00,8,BT01,8,
[line 17741] S_DW (Local0, 0x14, B1B2(BT00,BT01))

- BMFG, 72, [line 3519] = 72 bits buffer field (need help here)
- Accessed at line 4406, method XBIF: Store (ToString (BMFG, Ones), Index (PBIF, 0x09))
- I only have this 1 patch yet:
Code:
into device label EC code_regex (BMFG,)\s+(72) replace_matched begin MFGX,%2,//%1%2 end;
- Note: I can't figure out the offset which this field is placed. Here's a screenshot from the code: http://i.imgur.com/sa0kz19.png

Can someone help me with this? This is my first try patching the DSDT, if something is wrong please tell me.

Also, is it possible to use both ACPI hotpatches and DSDT static patches? My HD4400 config.plist from RehabMan's repo has some hotpatches that seems to be working fine, I can boot my Hackintosh with them and also with the unmodified DSDT.aml.

Thanks!

EDIT: DSDT.aml (extracted with F4 Clover) and DSDT.dsl (disassambled with iasl 6.1) attached. Both are not modified/not with patches above included.
 

Attachments

  • DSDT.aml
    74.1 KB · Views: 136
  • DSDT.dsl
    719.5 KB · Views: 119
Last edited:
Back
Top