- Joined
- Feb 20, 2015
- Messages
- 269
- Motherboard
- Asus P6T SE
- CPU
- 2.81 GHz Intel Core i7
- Graphics
- Nvidia GTX 650 ti 1024 MB
- Mac
- Mobile Phone
Hello,
I have recently installed OS X El Capitan on my Lenovo Yoga 700, HD520 & i5 6200u. I am in the process of getting the battery percentage to work using Rehabman's guide: https://www.tonymacx86.com/threads/guide-how-to-patch-dsdt-for-working-battery-status.116102/. All 16 bit conversions went fine, but everything >32 bits (the buffers) confuse me even though I have read (and tried to understand) it multiple times.
Side note: I disassembled my DSDT using iasl from terminal.
What I have done so far:
Created a list with fields that have to be changed (12 items)
Renamed all the 16-bit fields to something that does not conflict with the current DSDT
Made appropriate patches for the 16-bit fields
Fixed the methods for the 16-bit fields
Up until this point of the guide I get to understand everything. From here it starts to get too complicated for me, therefore I am asking for some help. Next part on post #2.
I have recently installed OS X El Capitan on my Lenovo Yoga 700, HD520 & i5 6200u. I am in the process of getting the battery percentage to work using Rehabman's guide: https://www.tonymacx86.com/threads/guide-how-to-patch-dsdt-for-working-battery-status.116102/. All 16 bit conversions went fine, but everything >32 bits (the buffers) confuse me even though I have read (and tried to understand) it multiple times.
Side note: I disassembled my DSDT using iasl from terminal.
Code:
cd "to directory where you placed all SSDT/DSDT"
iasl -da -dl *.aml
What I have done so far:
Created a list with fields that have to be changed (12 items)
FWBT, 64,
BFUD, 16,
SMDA, 256,
BMN0, 72,
BDN0, 64,
B1RC, 16,
B1SN, 16,
B1FV, 16,
B1DV, 16,
B1DC, 16,
B1FC, 16,
B1AC, 16,
BFUD, 16,
SMDA, 256,
BMN0, 72,
BDN0, 64,
B1RC, 16,
B1SN, 16,
B1FV, 16,
B1DV, 16,
B1DC, 16,
B1FC, 16,
B1AC, 16,
Renamed all the 16-bit fields to something that does not conflict with the current DSDT
Was: BFUD, 16
FUD0, 8,
FUD1, 8,
Was: B1RC 16
BRC0, 8,
BRC1, 8,
Was: B1SN, 16
BSN0, 8,
BSN1, 8,
Was: B1FV, 16,
BFV0, 8,
BFV1, 8,
Was: B1DV, 16,
BDV0, 8,
BDV1, 8,
Was: B1DC, 16,
BDC0, 8,
BDC1, 8,
Was: B1FC, 16,
BFX0, 8,
BFX1, 8,
Was: B1AC, 16,
BAX0, 8,
BAX1, 8,
FUD0, 8,
FUD1, 8,
Was: B1RC 16
BRC0, 8,
BRC1, 8,
Was: B1SN, 16
BSN0, 8,
BSN1, 8,
Was: B1FV, 16,
BFV0, 8,
BFV1, 8,
Was: B1DV, 16,
BDV0, 8,
BDV1, 8,
Was: B1DC, 16,
BDC0, 8,
BDC1, 8,
Was: B1FC, 16,
BFX0, 8,
BFX1, 8,
Was: B1AC, 16,
BAX0, 8,
BAX1, 8,
Made appropriate patches for the 16-bit fields
into device label H_EC code_regex BFUD,\s+16, replace_matched begin FUD0,8,FUD1,8, end;
into device label H_EC code_regex B1RC,\s+16, replace_matched begin BRC0,8,BRC1,8, end;
into device label H_EC code_regex B1SN,\s+16, replace_matched begin BSN0,8,BSN1,8, end;
into device label H_EC code_regex B1FV,\s+16, replace_matched begin BFV0,8,BFV1,8, end;
into device label H_EC code_regex B1DV,\s+16, replace_matched begin BDV0,8,BDV1,8, end;
into device label H_EC code_regex B1DC,\s+16, replace_matched begin BDC0,8,BDC1,8, end;
into device label H_EC code_regex B1FC,\s+16, replace_matched begin BFX0,8,BFX1,8, end;
into device label H_EC code_regex B1AC,\s+16, replace_matched begin BAX0,8,BAX1,8, end;
into device label H_EC code_regex B1RC,\s+16, replace_matched begin BRC0,8,BRC1,8, end;
into device label H_EC code_regex B1SN,\s+16, replace_matched begin BSN0,8,BSN1,8, end;
into device label H_EC code_regex B1FV,\s+16, replace_matched begin BFV0,8,BFV1,8, end;
into device label H_EC code_regex B1DV,\s+16, replace_matched begin BDV0,8,BDV1,8, end;
into device label H_EC code_regex B1DC,\s+16, replace_matched begin BDC0,8,BDC1,8, end;
into device label H_EC code_regex B1FC,\s+16, replace_matched begin BFX0,8,BFX1,8, end;
into device label H_EC code_regex B1AC,\s+16, replace_matched begin BAX0,8,BAX1,8, end;
Fixed the methods for the 16-bit fields
into method label GBTI code_regex \(BFUD, replaceall_matched begin (B1B2(FUD0,FUD1), end;
into method label GBTI code_regex \(B1RC, replaceall_matched begin (B1B2(BRC0,BRC1), end;
into method label GBTI code_regex \(B1SN, replaceall_matched begin (B1B2(BSN0,BSN1), end;
into method label GBTI code_regex \(B1FV, replaceall_matched begin (B1B2(BFV0,BFV1), end;
into method label GBTI code_regex \(B1DV, replaceall_matched begin (B1B2(BDV0,BDV1), end;
into method label GBTI code_regex \(B1DC, replaceall_matched begin (B1B2(BDC0,BDC1), end;
into method label GBTI code_regex \(B1FC, replaceall_matched begin (B1B2(BFX0,BFX1), end;
into method label GBTI code_regex \(B1AC, replaceall_matched begin (B1B2(BAX0,BAX1), end;
into method label GBTI code_regex \(B1RC, replaceall_matched begin (B1B2(BRC0,BRC1), end;
into method label GBTI code_regex \(B1SN, replaceall_matched begin (B1B2(BSN0,BSN1), end;
into method label GBTI code_regex \(B1FV, replaceall_matched begin (B1B2(BFV0,BFV1), end;
into method label GBTI code_regex \(B1DV, replaceall_matched begin (B1B2(BDV0,BDV1), end;
into method label GBTI code_regex \(B1DC, replaceall_matched begin (B1B2(BDC0,BDC1), end;
into method label GBTI code_regex \(B1FC, replaceall_matched begin (B1B2(BFX0,BFX1), end;
into method label GBTI code_regex \(B1AC, replaceall_matched begin (B1B2(BAX0,BAX1), end;
Up until this point of the guide I get to understand everything. From here it starts to get too complicated for me, therefore I am asking for some help. Next part on post #2.