总览
下文中出现的所有内核扩展均放入clover/kext/10.11
1.声卡(alc-1150/DP)(内建模拟线性输入输出,DP/HDMI数字输出) 使用 dsdt 位置 Device (HDEF) - Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
- {
- Store (Package (0x10)
- {
- "AAPL,slot-name",
- Buffer (0x09)
- {
- "Built in"
- },
- "codec-id",
- Buffer (0x04)
- {
- 0x00, 0x09, 0xEC, 0x10
- },
- "layout-id",
- Unicode ("\x01"),
- "model",
- Buffer (0x26)
- {
- "Realtek ALC1150 7.1 Channels HD Audio"
- },
- "name",
- Buffer (0x16)
- {
- "Realtek ALC1150 Audio"
- },
- "device_type",
- Buffer (0x11)
- {
- "Audio Controller"
- },
- "MaximumBootBeepVolume",
- Buffer (One)
- {
- 0x01
- },
- "PinConfigurations",
- Buffer (Zero) {}
- }, Local0)
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
- Return (Local0)
- }
复制代码dsdt定位Device (PEG0) 加一个 - Device (HDAU)
- {
- Name (_ADR, One) // _ADR: Address
- Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
- {
- Store (Package (0x02)
- {
- "hda-gfx",
- Buffer (0x0A)
- {
- "onboard-1"
- }
- }, Local0)
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
- Return (Local0)
- }
复制代码dsdt定位到显卡根据显卡接口数自行添加如下代码 - Device (PEGP)
- {
- Name (_ADR, Zero) // _ADR: Address
- Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
- {
- Store (Package (0x18)
- {
- "AAPL,slot-name",
- Buffer (0x07)
- {
- "Slot-1"
- },
- "model",
- Buffer (0x15)
- {
- "MSI GTX970 Gaming 4G"
- },
- "name",
- Buffer (0x17)
- {
- "NVIDIA GeForce GTX 970"
- },
- "device-id",
- Buffer (0x04)
- {
- 0xC2, 0x13, 0x00, 0x00
- },
- "device-type",
- Buffer (0x13)
- {
- "Graphic Controller"
- },
- "@0,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@1,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@2,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@3,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@4,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@5,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "hda-gfx",
- Buffer (0x0A)
- {
- "onboard-1"
- }
- }, Local0)
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
- Return (Local0)
- }
- }
- }
复制代码
2.网卡(intel i217v/bcm94360cd) 使用 dsdt定位到Device (GLAN) - Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
- {
- Store (Package (0x0C)
- {
- "AAPL,slot-name",
- Buffer (0x09)
- {
- "Built in"
- },
- "built-in",
- Buffer (One)
- {
- 0x01
- },
- "name",
- Buffer (0x17)
- {
- "Intel Gigabit Ethernet"
- },
- "model",
- Buffer (0x29)
- {
- "Intel I217V PCI Express Gigabit Ethernet"
- },
- "device-id",
- Buffer (0x04)
- {
- 0x3B, 0x15, 0x00, 0x00
- },
- "device_type",
- Buffer (0x14)
- {
- "Ethernet Controller"
- }
- }, Local0)
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
- Return (Local0)
- }
复制代码
dsdt定位到 RP05下的Device (PXSX) - Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
- {
- Store (Package (0x0C)
- {
- "AAPL,slot-name",
- Buffer (0x07)
- {
- "Slot-2"
- },
- "built-in",
- Buffer (One)
- {
- 0x01
- },
- "name",
- Buffer (0x22)
- {
- "Broadcom Wireless Network Adapter"
- },
- "model",
- Buffer (0x33)
- {
- "Broadcom BCM4360 802.11ac Wireless Network Adapter"
- },
- "device-id",
- Buffer (0x04)
- {
- 0xA0, 0x43, 0x00, 0x00
- },
- "device_type",
- Buffer (0x10)
- {
- "AirPort Extreme"
- }
- }, Local0)
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
- Return (Local0)
- }
复制代码
3.修正sata dsdt 定位到Device (SATA) - Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
- {
- Store (Package (0x0E)
- {
- "model",
- Buffer (0x2E)
- {
- "Intel 9 Series Chipset Family SATA Controller"
- },
- "device_type",
- Buffer (0x10)
- {
- "AHCI Controller"
- },
- "device-id",
- Buffer (0x04)
- {
- 0x82, 0x8C, 0x00, 0x00
- },
- "AAPL,slot-name",
- "Built In",
- "name",
- "Intel AHCI Controller",
- "compatible",
- "pci8086,8c83",
- "IOName",
- "pci8086,8c83"
- }, Local0)
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
- Return (Local0)
- }
- }
复制代码
4.修正LPC dsdt定位到Device (LPCB) - Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
- {
- If (LEqual (Arg2, Zero))
- {
- Return (Buffer (One)
- {
- 0x03
- })
- }
- Return (Package (0x02)
- {
- "compatible",
- "pci8086,9c43"
- })
- }
复制代码
====================================================== clover 设置 15,1smbios 开启防黑屏,trim
|