-
Notifications
You must be signed in to change notification settings - Fork 939
/
SSDT-RMCF.dsl
131 lines (114 loc) · 5 KB
/
SSDT-RMCF.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
// configuration data for other SSDTs in this pack
#ifndef NO_DEFINITIONBLOCK
DefinitionBlock("", "SSDT", 2, "hack", "_RMCF", 0)
{
#endif
Device(RMCF)
{
Name(_ADR, 0) // do not remove
Method(HELP)
{
Store("TYPE indicates type of the computer. 0: desktop, 1: laptop", Debug)
Store("HIGH selects display type. 1: high resolution, 2: low resolution", Debug)
Store("IGPI overrides ig-platform-id or snb-platform-id", Debug)
Store("DPTS for laptops only. 1: enables/disables DGPU in _WAK/_PTS", Debug)
Store("SHUT enables shutdown fix. bit 0: disables _PTS code when Arg0==5, bit 1: SLPE=0 when Arg0==5", Debug)
Store("XPEE enables XHC.PMEE fix. 1: set XHC.PMEE to zero in _PTS when Arg0==5", Debug)
Store("SSTF enables _SST LED fix. 1: enables _SI._SST in _WAK when Arg0 == 3", Debug)
Store("AUDL indicates audio layout-id for patched AppleHDA. Ones: no injection", Debug)
Store("BKLT indicates the type of backlight control. 0: IntelBacklight, 1: AppleBacklight", Debug)
Store("LMAX indicates max for IGPU PWM backlight. Ones: Use default, other values must match framebuffer", Debug)
}
// 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, 0)
// 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, 0)
// 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, 0)
// 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, 0)
// 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, 0)
// 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)
// DAUD: Digital audio
//
// 0: "hda-gfx" is disabled, injected as "#hda-gfx" instead
// 1: (default when not specified) "hda-gfx" is injected
Name(DAUD, 1)
// BKLT: Backlight control type
//
// bit0=0: Using IntelBacklight.kext
// bit0=1: Using AppleBacklight.kext + AppleBacklightInjector.kext or AppleBacklightFixup.kext
// bit1=1: do not set LEVW
// bit2=1: set GRAN
// bit3=1: prevent PWM initialization (eg. don't set PWMMax/PWMDuty)
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, 0)
// DWOU: Disable wake on USB
// 1: Disable wake on USB
// 0: Do not disable wake on USB
Name(DWOU, 1)
}
#ifndef NO_DEFINITIONBLOCK
}
#endif
//EOF