Fixes based off issue#1

This commit is contained in:
Mykola Grymalyuk
2020-02-12 16:01:44 -07:00
parent 00aa9be485
commit 833ac33120
11 changed files with 78 additions and 26 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,4 @@
.DS_Store .DS_Store
icons/.DS_Store
icons/.DS_Store

View File

@@ -5,6 +5,4 @@ So what this SSDT does is create a PNLF device for macOS to play with, specifica
No configuration required for most, just drop the prebuilt file into your EFI: [SSDT-PNLF](https://github.com/khronokernel/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PNLF.aml) No configuration required for most, just drop the prebuilt file into your EFI: [SSDT-PNLF](https://github.com/khronokernel/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PNLF.aml)
Note: there are some cases where the iGPU is called `IGPU` in the DSDT, you can double check by searching for both `PCI0.GFX0` and `PCI0.IGPU`. Whichever shows up is your device Note: there are some rare cases where the iGPU is called `GPU0` or `VID`in the DSDT, you can double check by searching for `PCI0.GFX0`, `PCI0.VID` and `PCI0.GPU0`. Whichever shows up is your device

View File

@@ -37,7 +37,7 @@ As you can see from the table below, we'll be renaming our EC listed in the DSDT
| :--- | :--- | :--- | | :--- | :--- | :--- |
| Enabled | String | YES | | Enabled | String | YES |
| Count | Number | 0 | | Count | Number | 0 |
| Limit | Nuber | 0 | | Limit | Number | 0 |
| Find | Data | xxxxxxxx | | Find | Data | xxxxxxxx |
| Replace | Data | xxxxxxxx | | Replace | Data | xxxxxxxx |

View File

@@ -1,5 +1,54 @@
# Fixing Trackpads # Fixing Trackpads
This SSDT is used to create a stub for VoodooI2C to connect to. This SSDT is used to force enable our GPIO for VoodooI2C to connect onto.
No configuration required, just drop the prebuilt file into your EFI: [SSDT-GPIO](https://github.com/khronokernel/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-GPIO.aml) With most modern laptop DSDTs, there's a variable called `GPEN` or `GPHD` which are used for setting the status of the GPIO device. For us, we want to enable the device.
## Finding our GPIO
So first things we need to do is find out what variable is used to enable our GPIO device, lets open up our decompiled SSDT and search for `Device (GPIO)`. Should give you a desult similar to this:
![](https://media.discordapp.net/attachments/456913818467958789/677279455525208096/Screen_Shot_2020-02-12_at_3.25.27_PM.png?width=1674&height=1256)
What we care about from this is the `_STA` method:
```
Method (_STA, 0, NotSerialized)
{
If ((GPHD == One))
{
Return (0x03)
}
Return (0x0F)
}
```
What we want is for this to always return `0x0F` when booting macOS, so we want to make an SSDT that will return `GPHD == Zero` in macOS.
**NOTE that you may have the other way around where GPHD needs to be set as `One` to return `0x0F`**. And your device name may also be different, don't throw random SSDTs in thinking it'll work
Once you found the variable and what it should be set to, grab a copy of [SSDT-GPI0.dsl](https://github.com/khronokernel/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-GPI0.dsl) and make the required edits. Then clean up with compiling it
## More examples:
![](https://media.discordapp.net/attachments/456913818467958789/677283983322775572/Screen_Shot_2020-02-12_at_3.34.26_PM.png?width=1674&height=1704)
With this example, we can see that we need both `SBRG` and `GPEN` to return `One`. If only one is present, it'll create some issues so in our SSDT we'll want to have both of them return `One`:
```
DefinitionBlock("", "SSDT", 2, "ACDT", "GPI0", 0)
{
External(GPEN, FieldUnitObj)
External(SBRG, FieldUnitObj)
Scope (\)
{
If (_OSI ("Darwin"))
{
GPEN = One
SBRG = One
}
}
}
```

View File

@@ -74,48 +74,42 @@ Please see the **specific ACPI section of your config.plist**, all SSDTs needed
* [EC ACPI Patch](/Laptops/laptop-ec.md) * [EC ACPI Patch](/Laptops/laptop-ec.md)
* [CPU-PM](https://github.com/Piker-Alpha/ssdtPRGen.sh) * [CPU-PM](https://github.com/Piker-Alpha/ssdtPRGen.sh)
* [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl) * [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl)
* [SSDT-XOSI](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-XOSI.aml) * [SSDT-GPI0](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [SSDT-GPIO](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [IRQ SSDT](https://github.com/corpnewt/SSDTTime) * [IRQ SSDT](https://github.com/corpnewt/SSDTTime)
**Haswell:** **Haswell:**
* [EC ACPI Patch](/Laptops/laptop-ec.md) * [EC ACPI Patch](/Laptops/laptop-ec.md)
* [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl) * [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl)
* [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl) * [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl)
* [SSDT-XOSI](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-XOSI.aml) * [SSDT-GPI0](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [SSDT-GPIO](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [IRQ SSDT](https://github.com/corpnewt/SSDTTime) * [IRQ SSDT](https://github.com/corpnewt/SSDTTime)
**Broadwell:** **Broadwell:**
* [EC ACPI Patch](/Laptops/laptop-ec.md) * [EC ACPI Patch](/Laptops/laptop-ec.md)
* [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl) * [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl)
* [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl) * [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl)
* [SSDT-XOSI](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-XOSI.aml) * [SSDT-GPI0](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [SSDT-GPIO](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [IRQ SSDT](https://github.com/corpnewt/SSDTTime) * [IRQ SSDT](https://github.com/corpnewt/SSDTTime)
**Skylake:** **Skylake:**
* [EC ACPI Patch](/Laptops/laptop-ec.md) * [EC ACPI Patch](/Laptops/laptop-ec.md)
* [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl) * [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl)
* [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl) * [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl)
* [SSDT-XOSI](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-XOSI.aml) * [SSDT-GPI0](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [SSDT-GPIO](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [IRQ SSDT](https://github.com/corpnewt/SSDTTime) * [IRQ SSDT](https://github.com/corpnewt/SSDTTime)
**Kabylake:** **Kabylake:**
* [EC ACPI Patch](/Laptops/laptop-ec.md) * [EC ACPI Patch](/Laptops/laptop-ec.md)
* [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl) * [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl)
* [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl) * [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl)
* [SSDT-XOSI](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-XOSI.aml) * [SSDT-GPI0](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [SSDT-GPIO](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [IRQ SSDT](https://github.com/corpnewt/SSDTTime) * [IRQ SSDT](https://github.com/corpnewt/SSDTTime)
**Coffeelake(8th Gen):** **Coffeelake(8th Gen):**
* [EC ACPI Patch](/Laptops/laptop-ec.md) * [EC ACPI Patch](/Laptops/laptop-ec.md)
* [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl) * [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl)
* [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl) * [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl)
* [SSDT-XOSI](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-XOSI.aml) * [SSDT-GPI0](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [SSDT-GPIO](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [IRQ SSDT](https://github.com/corpnewt/SSDTTime) * [IRQ SSDT](https://github.com/corpnewt/SSDTTime)
**Coffeelake(9th Gen):** **Coffeelake(9th Gen):**
@@ -124,6 +118,5 @@ Please see the **specific ACPI section of your config.plist**, all SSDTs needed
* [SSDT AWAC](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-AWAC.dsl) * [SSDT AWAC](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-AWAC.dsl)
* [SSDT-PMC](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PMC.dsl) * [SSDT-PMC](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PMC.dsl)
* [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl) * [SSDT-PNLF](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/SSDT-PNLF.dsl)
* [SSDT-XOSI](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-XOSI.aml) * [SSDT-GPI0](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [SSDT-GPIO](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-GPIO.aml)
* [IRQ SSDT](https://github.com/corpnewt/SSDTTime) * [IRQ SSDT](https://github.com/corpnewt/SSDTTime)

View File

@@ -16,14 +16,13 @@
* [Embedded Controllers](/Laptops/laptop-ec.md) * [Embedded Controllers](/Laptops/laptop-ec.md)
* [Backlight PNLF](/Laptops/backlight.md) * [Backlight PNLF](/Laptops/backlight.md)
* [Trackpad GPIO](/Laptops/trackpad.md) * [Trackpad GPI0](/Laptops/trackpad.md)
## Universal ## Universal
* [Plugin type](/Universal/plug.md) * [Plugin type](/Universal/plug.md)
* [AWAC vs RTC](/Universal/awac.md) * [AWAC vs RTC](/Universal/awac.md)
* [NVRAM PMC](/Universal/nvram.md) * [NVRAM PMC](/Universal/nvram.md)
* [XOSI](/Universal/xosi.md)
* [IRQ Fix](/Universal/irq.md) * [IRQ Fix](/Universal/irq.md)
* [GPU Spoof](/Universal/spoof.md) * [GPU Spoof](/Universal/spoof.md)

13
extra-files/SSDT-GPI0.dsl Normal file
View File

@@ -0,0 +1,13 @@
// Source: https://github.com/daliansky/OC-little
DefinitionBlock("", "SSDT", 2, "ACDT", "GPI0", 0)
{
External(GPEN, FieldUnitObj)
Scope (\)
{
If (_OSI ("Darwin"))
{
GPEN = One
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -12,10 +12,8 @@ So what **can't** SSDTTime do?:
* This is because you need to use an ACPI rename over an SSDT on laptops * This is because you need to use an ACPI rename over an SSDT on laptops
* **SSDT-PNLF**: * **SSDT-PNLF**:
* No need to configuration required for most, use prebuilt file [here](https://github.com/khronokernel/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PNLF.aml) * No need to configuration required for most, use prebuilt file [here](https://github.com/khronokernel/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PNLF.aml)
* **SSDT-GPIO**: * **SSDT-GPI0**:
* No need to configuration required, use prebuilt file [here](https://github.com/khronokernel/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-GPIO.aml) * Need to be configured to your system: [SSDT-GPI0.dsl](https://github.com/khronokernel/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-GPI0.dsl)
* **SSDT-XOSI**:
* No need to configuration required, use prebuilt file [here](https://github.com/khronokernel/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-XOSI.aml)
* **AWAC and RTC0 SSDTs**: * **AWAC and RTC0 SSDTs**:
* 300 series intel boards will also need to figure his out(Z390 systems are most common for requiring this but some gigabyte Z370 do as well) * 300 series intel boards will also need to figure his out(Z390 systems are most common for requiring this but some gigabyte Z370 do as well)
* **PMC SSDT**: * **PMC SSDT**: