Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

Joined
Jun 6, 2020
Messages
1
Motherboard
Lenovo C930
CPU
i7-8550u
Graphics
UHD620
Hello.
I am new here. I tried to use almost every IASL and MaciASL version in order to modify my DSDT file.

And yes, I also used RehabMan iasl/MaciASL files.

I used all of the available Compiler Options with 5.0A,5.1,6.0, 6.2a, 6.3 ... Nothing works for me ...

I have a Lenovo C930 with i7-8550u, 620UHD etc.
For this Notebook there is already a guide in this forum. There it is mentioned that I need to modify the DSDT file in order to get touch screen, touch pad, native USB 3.1 and also maybe thunderbolt to work.

But I can't compile ... always have errors ... and I don't know how to fix it.
Maybe someone can have a look inside my file. Here the attachment.

Thank you already so far.
 

Attachments

Joined
Apr 16, 2020
Messages
3
Motherboard
hp spectre x360
CPU
i7-1065G7
Graphics
intel iris plus
Mac
MacBook Air
Mobile Phone
iOS
I got this error message when I try to patch my battery!
Can someone help me?
 

Attachments

Feartech

Moderator
Joined
Aug 3, 2013
Messages
17,975
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
iMac
Mobile Phone
iOS
I got this error message when I try to patch my battery!
Can someone help me?
make sure to use version 6.2a of iasl under preferences
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
17,975
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
iMac
Mobile Phone
iOS
Here!
Thanks for helping!
using:
Code:
iasl -dl DSDT.aml SSDT*.aml
and using iasl from Rehabman:
results in no errors

also you could try a battery patch that is already present in macIASL, one of those may do the job for you, you will have to trial and error, but only patch 1 battery patch at a time, go back to a clean dsdt.dsl if you need to test another patch
 
Last edited:
Joined
Dec 7, 2019
Messages
1
Motherboard
WhiteTip Mountain1 Fab2 SharkBay Platform HM76 - Clover UEFI
CPU
i7-4550U
Graphics
HD 4400
Mac
MacBook Pro
Mobile Phone
Android
Hello!
There is a problem. I cannot patch DSDT.
Help me fix DSDT for battery.
Corrected some parameters but stuck here:

Code:
            OperationRegion (ECF2, EmbeddedControl, Zero, 0xFF)
            Field (ECF2, ByteAcc, Lock, Preserve)
            {
                Offset (0x18),
                SPTR,   8,
                ...
                Offset (0x64),
                BFV0,8,BFV1,8,
                BCR0,8,BCR1,8,
                Offset (0x6A),
                BRC0,8,BRC1,8,
                B1FC,   16,
                Offset (0x76),
                B1DV,   16,
                B1DC,   16
            }

I need to fix B1FC + B1DV + B1DC here:
Code:
                   If (ECAV)
                    {
                        If (LAnd (LAnd (ECRD (RefOf (B1DV)), ECRD (RefOf (B1FC))), ECRD (RefOf (B1DC))))
                        {
                            Store (ECRD (RefOf (B1DC)), Index (BPKG, One))
                            Store (ECRD (RefOf (B1FC)), Index (BPKG, 0x02))
                            Store (ECRD (RefOf (B1DV)), Index (BPKG, 0x04))
                            Store (Divide (Multiply (ECRD (RefOf (B1FC)), 0x04), 0x64, ), Index (BPKG, 0x05))
                            Store (Divide (Multiply (ECRD (RefOf (B1FC)), 0x03), 0x64, ), Index (BPKG, 0x06))
                        }
                    }
 

Attachments

Joined
Mar 30, 2013
Messages
112
Motherboard
Gigabyte Z170X Ultra Gaming
CPU
6600K
Graphics
RX 580
Mac
iMac, MacBook, MacBook Air
Can I copy the contents of the origin folder to another computer to compile them?
 
Top