Enable Night Shift on unsupported machines
Original idea by Pike
Motivated by NightPatch
- macOS 10.14 Mojave compatibility fix by @albinoz
- 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 ;)
-
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;