Hello, Mr.
@RehabMan. I want to disable my Nvidia, my Clover haven't been patched because I'm still confused.
After search using grep command I found this code inside \_SB.PCI0.RP01.PXSX scope in SSDT-4.dsl
Code:
Method (_OFF, 0, Serialized) // _OFF: Power Off
{
If (LEqual (CCHK (Zero), Zero))
{
Return (Zero)
}
If (LNotEqual (GPRF, One))
{
Store (VREG, VGAB)
}
HGOF ()
Return (Zero)
}
I can't found SPIN method in my SSDT, so I think I can skip step to modify _OFF method.
I found _INI method also in SSDT-4.dsl (same SSDT with _INI method).
So, I must patching SSDT-4 using this patch code, right?
Code:
into method label _INI parent_label \_SB.PCI0.RP01.PXSX insert
begin
//added to turn nvidia/radeon off\n
_OFF()\n
end;
And to patch _REG in DSDT I must use patch code like this, right?
Code:
into method label _REG parent_hid PNP0C09 insert
begin
//added to turn nvidia/radeon off\n
If (LAnd(LEqual(Arg0,3),LEqual(Arg1,1)))\n
{\n
External(\_SB.PCI0.RP01.PXSX._OFF, MethodObj)\n
\_SB.PCI0.RP01.PXSX._OFF()\n
}\n
end;
And if I facing Sleep Wake Problems I must fix it using patch code like this, right?
Code:
into method label _PTS code_regex ([\s\S]*) replace_matched
begin
External(\\_SB.PCI0.RP01.PXSX._ON, MethodObj)\n
If (CondRefOf(\\_SB.PCI0.RP01.PXSX._ON)) { \\_SB.PCI0.RP01.PXSX._ON() }\n
%1
end;
into method label _WAK code_regex (Return\s+\(.*) replace_matched
begin
External(\\_SB.PCI0.RP01.PXSX._OFF, MethodObj)\n
If (CondRefOf(\\_SB.PCI0.RP01.PXSX._OFF)) { \\_SB.PCI0.RP01.PXSX._OFF() }\n
%1
end;
I also attach my required attachment below.
Please correct me. Thank you very much.