Skip to content

Commit

Permalink
Support 1.1.5 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ab2774 committed Dec 31, 2020
1 parent 9ea75d7 commit 2368bfa
Show file tree
Hide file tree
Showing 12 changed files with 89 additions and 177 deletions.
48 changes: 12 additions & 36 deletions ACPI/SSDT-KBD.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,11 @@
// Guide: https://github.com/Ab2774/Lenovo-IdeaPad-320-14-IKB-Hackintosh
// Fix keyboard and Function Keys
// Pair with VoodooPS2Keyboard kext (inside VoodooPS2Controller kext)
// Pair with _Q11 to XQ11 and_ Q12 to XQ12 Rename Methods

DefinitionBlock ("", "SSDT", 2, "Lenovo", "_KBD", 0)
{
External (_SB_.PCI0.LPCB.EC0_, DeviceObj)
External (_SB_.PCI0.LPCB.EC0_.XQ11, MethodObj) // 0 Arguments
External (_SB_.PCI0.LPCB.EC0_.XQ12, MethodObj) // 0 Arguments
External (_SB_.PCI0.LPCB.PS2K, DeviceObj)

Scope (_SB.PCI0.LPCB.EC0)
{
Method (_Q11, 0, NotSerialized) // _Q11: EC Query
{
If (_OSI ("Darwin"))
{
Notify (PS2K, 0x0357) // (F11) Brightness Down
Notify (PS2K, 0x0365) // (F14) Brightness Down
}
Else
{
\_SB.PCI0.LPCB.EC0.XQ11 ()
}
}

Method (_Q12, 0, NotSerialized) // _Q12: EC Query
{
If (_OSI ("Darwin"))
{
Notify (PS2K, 0x0358) // (F12) Brightness Up
Notify (PS2K, 0x0366) // (F15) Brightness Up
}
Else
{
\_SB.PCI0.LPCB.EC0.XQ12 ()
}
}
}

Scope (_SB.PCI0.LPCB.PS2K)
{
If (_OSI ("Darwin"))
Expand Down Expand Up @@ -94,7 +61,9 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_KBD", 0)
"3c=49", // (F2) Volume Down
"3d=48", // (F3) Volume Up
"e06a=65", // F9
"e06b=6d" // F10
"e06b=6d", // F10
"57=6b", // F11=14
"58=71" // F12=F15
},

"Custom PS2 Map",
Expand All @@ -103,8 +72,15 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_KBD", 0)
Package (){},
"e037=64", // PrtSc=F13
"40=e037", // F9=PrtSc (Disable Trackpad)
"e053=0e" // Delete=Backspace
}
"e053=0e", // Delete=Backspace
"46=2e", // Fn+C=C
"e045=19" // Fn+P=P
},

"RemapPrntScr", // Enable PrtSc
">y"
"Swap command and option", // Win to Command
">y"
}
})
}
Expand Down
44 changes: 9 additions & 35 deletions ACPI/SSDT-LIP320-14IKB.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_LIP", 0)
External (_SB_.PCI0.I2C0.TPD0, DeviceObj)
External (_SB_.PCI0.I2C0.TPD0.SBFG, IntObj)
External (_SB_.PCI0.I2C0.TPD0.SBFS, IntObj)
External (_SB_.PCI0.LPCB.EC0_, DeviceObj)
External (_SB_.PCI0.LPCB.EC0_.XQ11, MethodObj) // 0 Arguments
External (_SB_.PCI0.LPCB.EC0_.XQ12, MethodObj) // 0 Arguments
External (_SB_.PCI0.LPCB.PS2K, DeviceObj)
External (_SB_.PCI0.LPCB.RTC_, DeviceObj)
External (_SB_.PCI0.LPCB.TIMR, DeviceObj)
Expand All @@ -37,7 +34,7 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_LIP", 0)
ZPTS (Arg0)
}

Method (GPRW, 2, NotSerialized) // Fix instant wake by hooking GPRW, pair with _GPRW to XPRW Rename Method
Method (GPRW, 2, NotSerialized) // Fix instant wake by hooking GPRW, pair with GPRW to XPRW Rename Method
{
If (_OSI ("Darwin"))
{
Expand Down Expand Up @@ -229,35 +226,6 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_LIP", 0)
}
}

Scope (_SB.PCI0.LPCB.EC0) // Fix Function Keys, pair with VoodooPS2Keyboard kext (inside VoodooPS2Controller kext), pair with _Q11 to XQ11 and_ Q12 to XQ12 Rename Methods
{
Method (_Q11, 0, NotSerialized) // _Q11: EC Query
{
If (_OSI ("Darwin"))
{
Notify (PS2K, 0x0357) // (F11) Brightness Down
Notify (PS2K, 0x0365) // (F14) Brightness Down
}
Else
{
\_SB.PCI0.LPCB.EC0.XQ11 ()
}
}

Method (_Q12, 0, NotSerialized) // _Q12: EC Query
{
If (_OSI ("Darwin"))
{
Notify (PS2K, 0x0358) // (F12) Brightness Up
Notify (PS2K, 0x0366) // (F15) Brightness Up
}
Else
{
\_SB.PCI0.LPCB.EC0.XQ12 ()
}
}
}

Scope (_SB.PCI0.LPCB.RTC) // Disable Real Time Clock (RTC) device
{
Method (_STA, 0, NotSerialized) // _STA: Status
Expand Down Expand Up @@ -341,7 +309,9 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_LIP", 0)
"3c=49", // (F2) Volume Down
"3d=48", // (F3) Volume Up
"e06a=65", // F9
"e06b=6d" // F10
"e06b=6d", // F10
"57=6b", // F11=14
"58=71" // F12=F15
},

"Custom PS2 Map",
Expand All @@ -350,9 +320,13 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_LIP", 0)
Package (){},
"e037=64", // PrtSc=F13
"40=e037", // F9=PrtSc (Disable Trackpad)
"e053=0e" // Delete=Backspace
"e053=0e", // Delete=Backspace
"46=2e", // Fn+C=C
"e045=19" // Fn+P=P
},

"RemapPrntScr", // Enable PrtSc
">y",
"Swap command and option", // Command to Win
">n"
}
Expand Down
43 changes: 8 additions & 35 deletions ACPI/SSDT-PS2-Map.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,11 @@
// Guide: https://github.com/Ab2774/Lenovo-IdeaPad-320-14-IKB-Hackintosh
// Complete keyboard patches
// Pair with VoodooPS2Keyboard kext (inside VoodooPS2Controller kext)
// Pair with _Q11 to XQ11 and_ Q12 to XQ12 Rename Method

DefinitionBlock ("", "SSDT", 2, "Lenovo", "_PS2Map", 0)
{
External (_SB_.PCI0.LPCB.EC0_, DeviceObj)
External (_SB_.PCI0.LPCB.EC0_.XQ11, MethodObj) // 0 Arguments
External (_SB_.PCI0.LPCB.EC0_.XQ12, MethodObj) // 0 Arguments
External (_SB_.PCI0.LPCB.PS2K, DeviceObj)

Scope (_SB.PCI0.LPCB.EC0)
{
Method (_Q11, 0, NotSerialized) // _Q11: EC Query
{
If (_OSI ("Darwin"))
{
Notify (PS2K, 0x0357) // (F11) Brightness Down
Notify (PS2K, 0x0365) // (F14) Brightness Down
}
Else
{
\_SB.PCI0.LPCB.EC0.XQ11 ()
}
}

Method (_Q12, 0, NotSerialized) // _Q12: EC Query
{
If (_OSI ("Darwin"))
{
Notify (PS2K, 0x0358) // (F12) Brightness Up
Notify (PS2K, 0x0366) // (F15) Brightness Up
}
Else
{
\_SB.PCI0.LPCB.EC0.XQ12 ()
}
}
}

Scope (_SB.PCI0.LPCB.PS2K)
{
If (_OSI ("Darwin"))
Expand Down Expand Up @@ -94,7 +61,9 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_PS2Map", 0)
"3c=49", // (F2) Volume Down
"3d=48", // (F3) Volume Up
"e06a=65", // F9
"e06b=6d" // F10
"e06b=6d", // F10
"57=6b", // F11=14
"58=71" // F12=F15
},

"Custom PS2 Map",
Expand All @@ -103,9 +72,13 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_PS2Map", 0)
Package (){},
"e037=64", // PrtSc=F13
"40=e037", // F9=PrtSc (Disable Trackpad)
"e053=0e" // Delete=Backspace
"e053=0e", // Delete=Backspace
"46=2e", // Fn+C=C
"e045=19" // Fn+P=P
},

"RemapPrntScr", // Enable PrtSc
">y"
"Swap command and option", // Command to Win
">n"
}
Expand Down
4 changes: 2 additions & 2 deletions ACPI/SSDT-Swap-Cmd-Alt.dsl → ACPI/SSDT-Swap-Alt-Cmd.dsl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// WARNING: this patch is only for Lenovo IdeaPad 320-14IKB
// May not work for your device
// Guide: https://github.com/Ab2774/Lenovo-IdeaPad-320-14-IKB-Hackintosh
// Swap Command to Win
// Swap Win to Command
// Pair with VoodooPS2Keyboard kext (inside VoodooPS2Controller kext)

DefinitionBlock ("", "SSDT", 2, "Lenovo", "_Swap", 0)
Expand All @@ -18,7 +18,7 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_Swap", 0)
Package ()
{
"Swap command and option",
">n"
">y"
}
})
}
Expand Down
Binary file removed ALCPlugFix/ALCPlugFix
Binary file not shown.
18 changes: 0 additions & 18 deletions ALCPlugFix/good.win.ALCPlugFix.plist

This file was deleted.

Binary file removed ALCPlugFix/hda-verb
Binary file not shown.
22 changes: 0 additions & 22 deletions ALCPlugFix/install.command

This file was deleted.

16 changes: 0 additions & 16 deletions ALCPlugFix/uninstall.command

This file was deleted.

39 changes: 38 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
- Added back `RtcHibernateAware` in `Clover's` `config.plist` for better sleep (thanks @stevenzhengshiqi)
- Added `Legacy` and `Linux` in `Clover` Bootloader `config.plist` for better compatibility
- Removed `VoodooTSCSync` Kext and replaced with `CpuTscSync` Kext for better compatibility
- Removed `Rename _CRS to XCRS` Rename from both `Clover` and `OpenCore's` Bootloaders `config.plist` because it's no longer needed
- Removed `Rename _CRS to XCRS` Rename Patch from both `Clover` and `OpenCore's` Bootloaders `config.plist` because it's no longer needed
- Removed `Inject` from `Clover's` Bootloader `config.plist` because it's already injected
- Removed `ig-platform-id` from `Clover's` Bootloader `config.plist` because it's no longer needed
- Changed `EnableSafeModeSlide` value from `YES` to `NO` in `Clover's` `config.plist` because it's no longer needed
Expand All @@ -201,3 +201,40 @@
- Changed `ResetHwSig` value from `NO` to `YES` in `Quirks` in `ACPI` in `OpenCore's` `config.plist`
- Changed `Timeout` value from `15` to `0` in `Boot` in `Misc` in `OpenCore's` `config.plist`
- Changed `JumpstartHotPlug` value from `YES` to `NO` in `Boot` in `Misc` in `OpenCore's` `config.plist`

# EFI v1.1.5
- Updated OpenCore Bootloader version to `0.6.4`
- Updated `AirportBrcmFixup` Kext to `2.1.2`
- Updated `AppleALC` Kext to `1.5.5`
- Updated `BrcmPatchRAM` Kext to `2.5.5`
- Updated `CpuTscSync` Kext to `1.0.3`
- Updated `HibernationFixup` Kext to `1.3.8`
- Updated `Lilu` Kext to `1.5.0`
- Updated `VoodooI2C` Kext and Satellites to`2.6.1`
- Updated `VirtualSMC` Kext and Plug-ins to `1.1.9`
- Updated `WhateverGreen` to `1.4.5`
- Updated `SSDT-KBD` to enable `PrtSc`, map F11 to F14 & F12 to F15, move brightness keys support to `BrightnessKeys` Kext and to fix Fn+C and Fn+P
- Updated `SSDT-PS2-Map` to enable `PrtSc`, map F11 to F14 & F12 to F15, move brightness keys support to `BrightnessKeys` Kext and to fix Fn+C and Fn+P
- Updated `SSDT-LIP320-14IKB` to enable `PrtSc`, map F11 to F14 & F12 to F15, move brightness keys support to `BrightnessKeys` Kext
- Updated `OpenCore's` `config.plist` to support `0.6.4` changes
- Added `AHCIPortFixup` Kext fix `Big Sur's` `AppleIntelPchSeriesAHCI`
- Added `AppleBacklightSmoother` Kext to smooth backlight transition
- Added `BrightnessKeys` Kext to support brightness keys
- Added `RestrictEvents` Kext to replace `EFICheckDisabler`
- Added `YogaSMC` Kext to support Fn keys, Fn Lock Mode, Hot Keys Mode, Battery Conversation Mode, and extra battery information (read the guide for more)
- Added `Disable RTC Wake Scheduling` in `OpenCore's` `config.plist` for better sleep
- Removed `Rename _Q11 to XQ11` and `Rename _Q12 to XQ12` Rename Patch and replaced with `BrightnessKeys` Kext for better compatibility
- Removed `EFICheckDisabler` and replaced with `RestrictEvents` Kext for better compatibility
- Removed `SSDT-GPRW` ACPI and replaced with `SSDT-UPRW` ACPI for `USBWakeFixup` compatibility with `Big Sur`
- Changed `CsrActiveConfig` value from `0x0877` to `0x30` in `Clover's` `config.plist` (thanks @stevezhengshiqi)
- Changed `NormalizeHeaders` value from `NO` to `YES` in `Quirks` in `ACPI` in `OpenCore's` `config.plist` for better compatibility
- Changed `EnableSafeModeSlide` value from `NO` to `YES` in `Quirks` in `Booter` in `OpenCore's` `config.plist`
- Changed `PollAppleHotKeys` value from `NO` to `YES` in `Quirks` in `Booter` in `OpenCore's` `config.plist`
- Changed `CsrActiveConfig` value from `77080000` to `30000000` in `NVRAM` in `OpenCore's` `config.plist` (thanks @stevezhengshiqi)
- Changed `MinimumVolume` value from `50` to `20` in `Audio` in `UEFI` in `OpenCore's` `config.plist`
- Changed `VolumeAmplifier` value from `1000` to `125` in `Audio` in `UEFI` in `OpenCore's` `config.plist`
- Changed `SanitiseClearScreen` value from `YES` to `NO` in `Output` in `UEFI` in `OpenCore's` `config.plist`
- Changed `AppleSmcIo` value from `NO` to `YES` in `ProtocolOverrides` in `UEFI` in `OpenCore's` `config.plist`
- Changed `FirmwareVolume` value from `NO` to `YES` in `ProtocolOverrides` in `UEFI` in `OpenCore's` `config.plist`
- Supports macOS Big Sur 11 (`OpenCore` only) & macOS Catalina 10.15.7
- ### Note: please read the guide again with the new releases as there are major changes you need to be aware of, and Happy New Year!
Binary file modified Images/Brightness.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2368bfa

Please sign in to comment.