Contribute
Register

[Guide] Using Clover to "hotpatch" ACPI

Joined
Aug 8, 2017
Messages
312
Motherboard
Lenovo G570-Clover
CPU
i5-2450M
Graphics
HD 6370M+HD 3000
Mac
MacBook Pro
Classic Mac
Apple
Mobile Phone
Android, Other
Using Clover to "hotpatch" ACPI
ASUS H61M-K
I3-2120

NVIDIA GTS 480 1GB

SCREN 1440X900

ALC887

RTL8168

 
Joined
Aug 8, 2017
Messages
312
Motherboard
Lenovo G570-Clover
CPU
i5-2450M
Graphics
HD 6370M+HD 3000
Mac
MacBook Pro
Classic Mac
Apple
Mobile Phone
Android, Other
how do I have to do the first dsdt and then for example SSDT but what should I do with dsdt
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,259
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
how do I have to do the first dsdt and then for example SSDT but what should I do with dsdt
Both your ability to read/write English and your programming skills seem inadequate.

My advice: I don't think your skills are up to this task. You should understand static patch completely before even attempting hotpatch.
 
Joined
Aug 8, 2017
Messages
312
Motherboard
Lenovo G570-Clover
CPU
i5-2450M
Graphics
HD 6370M+HD 3000
Mac
MacBook Pro
Classic Mac
Apple
Mobile Phone
Android, Other
Lenovo Z710 CPU i7-4710QM ys signal HS install apfs hackintosh add ACPI hotpatch how to open SSDT-RMCF.dsl ys add
// TYPE: Indicates the type of computer... desktop or laptop
//
// 0: desktop
// 1: laptop
Name(TYPE, 1)

// HIGH: High resolution/low resolution selection. Affects IGPU injection.
//
// For 1600x900+ on Sandy/Ivy, use 1
// For UHD/QHD+ on Haswell/Broadwell, use 1
// Others (low resolution), use 0
Name(HIGH, 1)

// IGPI: Override for ig-platform-id (or snb-platform-id).
// Will be used if non-zero, and not Ones
// Can be set to Ones to disable IGPU injection.
// For example, if you wanted to inject a bogus id, 0x12345678
// Name(IGPI, 0x12345678)
// Or to disable, IGPU injection from SSDT-IGPU:
// Name(IGPI, Ones)
// Or to set a custom ig-platform-id, example:
// Name(IGPI, 0x01660008)
Name(IGPI, 0x01660008)

// DPTS: For laptops only: set to 1 if you want to enable and
// disable the DGPU _PTS and _WAK.
//
// 0: does not manipulate the DGPU in _WAK and _PTS
// 1: disables the DGPU in _WAK and enables it in _PTS
Name(DPTS, 0)

// SHUT: Shutdown fix, disable _PTS code when Arg0==5 (shutdown)
//
// 0: does not affect _PTS behavior during shutdown
// bit 0 set: disables _PTS code during shutdown
// bit 1 set: sets SLPE to zero in _PTS during shutdown
Name(SHUT, 1)

// XPEE: XHC.PMEE fix, set XHC.PMEE=0 in _PTS when Arg0==5 (shutdown)
// This fixes "auto restart" after shutdown when USB devices are plugged into XHC on
// certain computers.
//
// 0: does not affect _PTS behavior during shutdown
// 1: sets XHC.PMEE in _PTS code during shutdown
Name(XPEE, 1)

// SSTF: _SI._SST fix. To fix LED on wake. Useful for some Thinkpad laptops.
//
// 0: no effect during _WAK
// 1: calls _SI._SST(1) during _WAK when Arg0 == 3 (waking from S3 sleep)
Name(SSTF, 1)

// AUDL: Audio Layout
//
// The value here will be used to inject layout-id for HDEF and HDAU
// If set to Ones, no audio injection will be done.
Name(AUDL, Ones)

// BKLT: Backlight control type
//
// bit0=0: Using IntelBacklight.kext
// bit0=1: Using AppleBacklight.kext + AppleBacklightInjector.kext
// bit1=1: do not set LEVW
// bit2=1: set GRAN
Name(BKLT, 1)

// LMAX: Backlight PWM MAX. Must match framebuffer in use.
//
// Ones: Default will be used (0x710 for Ivy/Sandy, 0xad9 for Haswell/Broadwell)
// Other values: must match framebuffer
Name(LMAX, Ones)

// LEVW: Initialization value for LEVW.
//
// Ones: Default will be used (0xC0000000)
// Other values: determines value to be used
Name(LEVW, Ones)

// GRAN: Initialization value for GRAN.
//
// Note: value not set for GRAN unless bit2 of BKLT set
Name(GRAN, 0)

// FBTP: Framebuffer type. Determines IGPU PWM register layout.
// (advanced use: for overriding default for unsupported IGPU device-id)
//
// 0: Default based on device-id
// 1: Ivy/Sandy
// 2: Haswell/Broadwell/Skylake/KabyLake
Name(FBTP, 2)
fix ys test is it good
 
Joined
Jul 11, 2014
Messages
437
Motherboard
Asus A555LAB
CPU
i3-4005U
Graphics
HD 4400
Mac
MacBook Air
Mobile Phone
iOS
@RehabMan just a quick clarification :

Is IntObj related to values declared as Name(XYZA, val) or Vals less than 32bits?

Is FieldUnitObj related to EC Fields in an Operation Region?

P.S: Just wanna know difference between IntObj and FieldUnitObj.

Thanks
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,259
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
@RehabMan just a quick clarification :

Is IntObj related to values declared as Name(XYZA, val) or Vals less than 32bits?
IntObj refers to objects created with Name that are integers.

Is FieldUnitObj related to EC Fields in an Operation Region?
Or any other Field in other types of OperationRegion (there are OperationRegion types other than EmbeddedControl).
 
Joined
Jul 11, 2014
Messages
437
Motherboard
Asus A555LAB
CPU
i3-4005U
Graphics
HD 4400
Mac
MacBook Air
Mobile Phone
iOS
IntObj refers to objects created with Name that are integers.
Okay. So I guess name fields that have value <= 32bits are Integers? Or there isn’t such thing?

Also, name objects declared as Package are “PkjObj” what about buffer fields then? Are they “UnknownObj” or “IntObj” maybe?

Regards
 
Joined
Aug 29, 2018
Messages
8
CPU
i5-3230M
Graphics
GT 730m + Intel HD 4000
Hi RehabMan, I already followed your tutorial for brightness control, since it's required to change gfx0 to igpu, I try this thread tutorial with plist editor pro. but brightness menu still doesn't show in syspref. below are my files.
need your advice. Thanks Rehabman!
 

Attachments

Top