Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

You did not use refs.txt as I mentioned.
Yes I do. Perhaps does exists another way? With macials acpi 6.1 resolve 2 issues but as I tell you, remains one error
Device (SAT0)
{
Name (_ADR, 0x00170000) // _ADR: Address
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
{
If (PCIC (Arg0))
{
Return (PCID (Arg0, Arg1, Arg2, Arg3))
}

If (CondRefOf (\_SB.PCI0.SAT0.SDSM))
{
Return (SDSM)
Arg0
Arg1
<-------------------------------------- unexpected parseop_arg1:banghead:
Arg2
Arg3
}

Return (Zero)
}

Device (PRT0)
{
Name (_ADR, 0xFFFF) // _ADR: Address
}

Device (PRT1)
{
Name (_ADR, 0x0001FFFF) // _ADR: Address
}

Device (PRT2)
{
Name (_ADR, 0x0002FFFF) // _ADR: Address
}

Device (PRT3)
{
Name (_ADR, 0x0003FFFF) // _ADR: Address
}

Device (PRT4)
{
Name (_ADR, 0x0004FFFF) // _ADR: Address
}

Device (PRT5)
{
Name (_ADR, 0x0005FFFF) // _ADR: Address
}

Method (RDCA, 5, Serialized)
{
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler
OperationRegion (RPAL, SystemMemory, Add (GPCB (), Add (0x000B8100, Arg1)), 0x04)
Field (RPAL, DWordAcc, Lock, Preserve)
{
RPCD, 32
}

OperationRegion (EPAC, SystemMemory, Add (GPCB (), 0x000B8308), 0x08)
Field (EPAC, DWordAcc, Lock, Preserve)
{
CAIR, 32,
CADR, 32
}

OperationRegion (NCRG, SystemMemory, Add (GPCB (), 0x000B8FC0), 0x04)
Field (NCRG, DWordAcc, Lock, Preserve)
{
CRGC, 32
}

If (LGreater (Arg0, 0x02))
{
Return (Zero)
}
Else
{
Store (Arg0, CRGC)
}

While (One)
{
Store (ToInteger (Arg4), _T_0)
If (LEqual (_T_0, Zero))
{
Return (RPCD)
}
ElseIf (LEqual (_T_0, 0x02))
{
Store (Arg1, CAIR)
Return (CADR)
}
ElseIf (LEqual (_T_0, One))
{
And (Arg2, RPCD, Local0)
Or (Arg3, Local0, Local0)
Store (Local0, RPCD)
}
ElseIf (LEqual (_T_0, 0x03))
{
Store (Arg1, CAIR)
And (Arg2, CADR, Local0)
Or (Arg3, Local0, Local0)
Store (Local0, CADR)
}
Else
{
Return (Zero)
}

Break
}
}
 
Last edited:
You did not. Your refs.txt had only the first line (MDBG) in it.
I had a old version macials, too. I free cache and I have repeated the same, as you recommended. So I haven't error but warning, remark and optimizations. Is it the correct way?
 

Attachments

  • DSDT.aml
    140 KB · Views: 140
I had a old version macials, too. I free cache and I have repeated the same, as you recommended. So I haven't error but warning, remark and optimizations. Is it the correct way?

Your question regarding warnings vs. errors is answered in post #1.
 
rehabman can you check why my sleep doesn't work correctly If I push it pc is restarting
 

Attachments

  • RehabMan.zip
    2.4 MB · Views: 58
okay sorry here is fresh one
 

Attachments

  • RehabMan.zip
    2.3 MB · Views: 72
okay sorry here is fresh one

Your ACPI configuration looks fine although a simpler way (given you're doing renames with config.plist) would be DropOem=false, with OEM SSDTs removed from ACPI/patched. But you haven't disabled Nvidia yet, so that may change the suggestion here...

USB is not configured correctly (need to create correct custom SSDT for USBInjectAll.kext).

Maybe your reboot is caused by VoodooI2C... try without.

Make sure you disabled hibernation...
 
Back
Top