mirror of
https://github.com/tylernguyen/x1c6-hackintosh.git
synced 2025-02-05 01:23:14 -06:00
Added Backlight HUD per ThinkpadAssistant 1.7. Thank you @Sniki @MSzturc and @hexart
This commit is contained in:
parent
c2012eb2b9
commit
6f4658407f
5 changed files with 102 additions and 10 deletions
Binary file not shown.
|
@ -1114,6 +1114,40 @@
|
|||
<data>
|
||||
</data>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Comment</key>
|
||||
<string>_Q1F to XQ1F (Keyboard backlight - Fn + Space)</string>
|
||||
<key>Count</key>
|
||||
<integer>1</integer>
|
||||
<key>Enabled</key>
|
||||
<true/>
|
||||
<key>Find</key>
|
||||
<data>
|
||||
X1ExRg==
|
||||
</data>
|
||||
<key>Limit</key>
|
||||
<integer>0</integer>
|
||||
<key>Mask</key>
|
||||
<data>
|
||||
</data>
|
||||
<key>OemTableId</key>
|
||||
<data>
|
||||
</data>
|
||||
<key>Replace</key>
|
||||
<data>
|
||||
WFExRg==
|
||||
</data>
|
||||
<key>ReplaceMask</key>
|
||||
<data>
|
||||
</data>
|
||||
<key>Skip</key>
|
||||
<integer>0</integer>
|
||||
<key>TableLength</key>
|
||||
<integer>0</integer>
|
||||
<key>TableSignature</key>
|
||||
<data>
|
||||
</data>
|
||||
</dict>
|
||||
</array>
|
||||
<key>Quirks</key>
|
||||
<dict>
|
||||
|
|
15
README.md
15
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:
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue