diff --git a/EFI-OpenCore/EFI/OC/ACPI/SSDT-Keyboard.aml b/EFI-OpenCore/EFI/OC/ACPI/SSDT-Keyboard.aml index 564e879..3d8a2d4 100644 Binary files a/EFI-OpenCore/EFI/OC/ACPI/SSDT-Keyboard.aml and b/EFI-OpenCore/EFI/OC/ACPI/SSDT-Keyboard.aml differ diff --git a/EFI-OpenCore/EFI/OC/config.plist b/EFI-OpenCore/EFI/OC/config.plist index ca29651..844fa48 100644 --- a/EFI-OpenCore/EFI/OC/config.plist +++ b/EFI-OpenCore/EFI/OC/config.plist @@ -1114,6 +1114,40 @@ + + Comment + _Q1F to XQ1F (Keyboard backlight - Fn + Space) + Count + 1 + Enabled + + Find + + X1ExRg== + + Limit + 0 + Mask + + + OemTableId + + + Replace + + WFExRg== + + ReplaceMask + + + Skip + 0 + TableLength + 0 + TableSignature + + + Quirks diff --git a/README.md b/README.md index 0d7c25c..747d715 100644 --- a/README.md +++ b/README.md @@ -25,19 +25,14 @@ ##### Recent | [Changelog Archive](https://github.com/tylernguyen/x1c6-hackintosh/blob/master/docs/CHANGELOG.md) -> ### 2020-5-24 - -#### Added -- Setting instructions better sleep in 5_README-other.md +> ### 2020-5-27 #### Changed -- Bluetooth Toggle is now supported by [ThinkpadAssistant 1.6](https://github.com/MSzturc/ThinkpadAssistant), thank so much [@MSzturc](https://github.com/MSzturc) -- SSDT-keyboard to support ThinkpadAssistant 1.6.0 - -#### Removed -- BetterTouchTool is no longer needed for Fn key functions and has been removed. -- `SMCLightSensor.kext` has been removed as the x1c6 has no ambient light sensor. +- Keyboard backlight is now supported by [ThinkpadAssistant 1.7](https://github.com/MSzturc/ThinkpadAssistant), thank so much [@MSzturc](https://github.com/MSzturc) +- SSDT-keyboard to support ThinkpadAssistant 1.7.0 +- Thank you to [@Sniki](https://github.com/Sniki) [@MSzturc](https://github.com/MSzturc) [@hexart](https://github.com/hexart), and everyone who contributed on [Issue #12](https://github.com/MSzturc/ThinkpadAssistant/issues/12) +- Honestly, what's even left to improve on the keyboard? Open an issue. > ## SUMMARY: diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 2b710f9..7add4ac 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +> ### 2020-5-27 + +#### Changed + +- Keyboard backlight is now supported by [ThinkpadAssistant 1.7](https://github.com/MSzturc/ThinkpadAssistant), thank so much [@MSzturc](https://github.com/MSzturc) +- SSDT-keyboard to support ThinkpadAssistant 1.7.0 +- Honestly, what's even left to improve on the keyboard? Open an issue. + > ### 2020-5-24 #### Added diff --git a/patches/SSDT-Keyboard.dsl b/patches/SSDT-Keyboard.dsl index 87e90fc..aad8537 100644 --- a/patches/SSDT-Keyboard.dsl +++ b/patches/SSDT-Keyboard.dsl @@ -11,8 +11,10 @@ DefinitionBlock("", "SSDT", 2, "OCLT", "x1input", 0) External(_SB.PCI0.LPCB.EC.XQ60, MethodObj) External(_SB.PCI0.LPCB.EC.XQ61, MethodObj) External(_SB.PCI0.LPCB.EC.XQ62, MethodObj) + External(_SB.PCI0.LPCB.EC.XQ1F, MethodObj) External(_SB.PCI0.LPCB.EC.HKEY.MMTS, MethodObj) External(_SB.PCI0.LPCB.EC.HKEY.MMTG, MethodObj) + External(_SB.PCI0.LPCB.EC.HKEY.MLCS, MethodObj) Scope (_SB.PCI0.LPCB.EC) { @@ -161,6 +163,59 @@ DefinitionBlock("", "SSDT", 2, "OCLT", "x1input", 0) \_SB.PCI0.LPCB.EC.XQ62() } } + + Name (LED2, Zero) + + // _Q1F - (Fn+Space) Toggle Keyboard Backlight. + Method (_Q1F, 0, NotSerialized) // cycle keyboard backlight + { + If (_OSI ("Darwin")) + { + // Cycle keyboard backlight states + If ((LED2 == Zero)) + { + // Right Shift + F16. + Notify (\_SB.PCI0.LPCB.KBD, 0x0136) + Notify (\_SB.PCI0.LPCB.KBD, 0x0367) + Notify (\_SB.PCI0.LPCB.KBD, 0x01b6) + // Off to dim + \_SB.PCI0.LPCB.EC.HKEY.MLCS (One) + LED2 = One + } + Else + { + If ((LED2 == One)) + { + // Left Shift + F19. + Notify (\_SB.PCI0.LPCB.KBD, 0x012a) + Notify (\_SB.PCI0.LPCB.KBD, 0x036a) + Notify (\_SB.PCI0.LPCB.KBD, 0x01aa) + // dim to bright + \_SB.PCI0.LPCB.EC.HKEY.MLCS (0x02) + LED2 = 2 + } + Else + { + If ((LED2 == 2)) + { + // Left Shift + F16. + Notify (\_SB.PCI0.LPCB.KBD, 0x012a) + Notify (\_SB.PCI0.LPCB.KBD, 0x0367) + Notify (\_SB.PCI0.LPCB.KBD, 0x01aa) + // bright to off + \_SB.PCI0.LPCB.EC.HKEY.MLCS (Zero) + LED2 = Zero + } + Else + { + // Call original _Q6A method. + \_SB.PCI0.LPCB.EC.XQ1F () + } + } + } + } + } + } Scope (_SB.PCI0.LPCB.KBD)