RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,056
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
My SGPO code, also on SSDT-7, anything that I should change here?
Code:Method (SGPO, 2, Serialized) { ShiftRight (Arg0, 0x07, Local3) And (Arg0, 0x7F, Arg0) If (LEqual (Local3, Zero)) { Not (Arg1, Local3) And (Local3, One, Local3) } Else { And (Arg1, One, Local3) } If (LLess (Arg0, 0x20)) { ShiftLeft (Local3, Arg0, Local0) ShiftLeft (One, Arg0, Local1) And (\_SB.PCI0.PEG0.PEGP.LVL0, Not (Local1), Local2) Or (Local2, Local0, \_SB.PCI0.PEG0.PEGP.LVL0) } ElseIf (LLess (Arg0, 0x40)) { ShiftLeft (Local3, Subtract (Arg0, 0x20), Local0) ShiftLeft (One, Subtract (Arg0, 0x20), Local1) And (\_SB.PCI0.PEG0.PEGP.LVL1, Not (Local1), Local2) Or (Local2, Local0, \_SB.PCI0.PEG0.PEGP.LVL1) } ElseIf (LLess (Arg0, 0x7F)) { ShiftLeft (Local3, Subtract (Arg0, 0x40), Local0) ShiftLeft (One, Subtract (Arg0, 0x40), Local1) And (\_SB.PCI0.PEG0.PEGP.LVL2, Not (Local1), Local2) Or (Local2, Local0, \_SB.PCI0.PEG0.PEGP.LVL2) } Return (One) }
No EC related code there.
Sorry for the indentation, I think it's correct now:
Code:Method (_REG, 2, NotSerialized) // _REG: Region Availability { If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One))) { Store (One, ECON) If (LAnd (LEqual (ALSE, 0x02), IGDS)) { Store (^ALSD._ALI (), ^^^GFX0.ALSI) } Store (0x03, ^^^GFX0.CLID) Store (ACEX, PWRS) If (LOr (LEqual (And (CPTY, 0x80), 0x80), LNotEqual (TIST, One))) { Store (TZCH (), RIST) Store (RIST, PPCS) } PNOT () } If (LEqual (\ECON, One)) { Store (Zero, \_SB.PCI0.LPCB.H_EC.OPST) } }
As long as you execute it only when Arg0==3 and Arg1==1, you should be fine... It is all covered in the guide, post #1.