mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-22 11:00:16 +10:00
keyboard_backlight.py: Fix patchset
This commit is contained in:
@@ -63,7 +63,7 @@ class KeyboardBacklight(BaseHardware):
|
|||||||
|
|
||||||
def patches(self) -> dict:
|
def patches(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Patches for Legacy Backlight Control
|
Patches for Legacy Keyboard Backlight
|
||||||
"""
|
"""
|
||||||
if self.native_os() is True:
|
if self.native_os() is True:
|
||||||
return {}
|
return {}
|
||||||
@@ -72,22 +72,9 @@ class KeyboardBacklight(BaseHardware):
|
|||||||
return {}
|
return {}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"Legacy Backlight Control": {
|
"Legacy Keyboard Backlight": {
|
||||||
PatchType.OVERWRITE_SYSTEM_VOLUME: {
|
PatchType.EXECUTE: {
|
||||||
"/System/Library/Extensions": {
|
"/usr/bin/defaults write /Library/Preferences/.GlobalPreferences.plist Moraea_BacklightHack -bool true": True,
|
||||||
"AppleBacklight.kext": "10.12.6",
|
}
|
||||||
"AppleBacklightExpert.kext": "10.12.6",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
PatchType.MERGE_SYSTEM_VOLUME: {
|
|
||||||
"/System/Library/PrivateFrameworks": {
|
|
||||||
"DisplayServices.framework": "10.12.6",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
PatchType.REMOVE_SYSTEM_VOLUME: {
|
|
||||||
"/System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns": [
|
|
||||||
"AGDCBacklightControl.kext",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user