aonez / Nightshiftpatcher
Enable Night Shift feature on a non supported Mac
Stars: ✭ 24
Programming Languages
shell
77523 projects
Labels
NightShiftPatcher
Enable Night Shift on unsupported machines
Original idea by Pike
Motivated by NightPatch
Contributions
- macOS 10.14 Mojave compatibility fix by @albinoz
How to use
- Download the latest stable script from the Releases section
- Disable SIP*
- Execute
NightShiftPatcher.sh
script - Don't forget to reenable SIP. This is not required, but recommended for system security ;)
In case of error
-
If the system does not boot, restart in single-user mode or with the recovery partition
-
You can restore the backup using the
NightShiftPatcher
script since1.0
version with the-r
option:./NightShiftPatcher.sh -r
-
The backup file can be found here:
/System/Library/PrivateFrameworks/CoreBrightness.framework.bak
-
If you used an old
NightShiftPatcher
script (before September 2018), first remove those files from the backup:sudo -s; f='/System/Library/PrivateFrameworks/CoreBrightness.framework.bak/Versions/Current/CoreBrightness'; rm "${f}.temp"; rm "${f}.tbd"; exit;
-
To restore the backup with the terminal, you can use this terminal line:
sudo -s; f='/System/Library/PrivateFrameworks/CoreBrightness.framework'; mv "${f}" "${f}.hack"; mv "${f}.bak" "${f}"; exit;
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].