Apple made Night Shift check for compatibility to exclude older hardware. An easy way to enable it is to patch the CoreBrightness binary. This Gist contains a patch file for enabling it for the MacBook Air 4,1 (mid-2011).
- macOS 10.13
- MacBook Air 4,1 or newer
- Developer CLI tools -
xcode-select --install
- Homebrew -
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- xdelta3 -
brew install xdelta
-
Disable SIP
1.1 Boot into recovery mode (⌘ + R) and open Terminal
csrutil disable reboot
-
Backup the old framework
cp /System/Library/PrivateFrameworks/CoreBrightness.framework/CoreBrightness CoreBrightness.old
-
Patch the existing (old) framework
xdelta3 -d -s CoreBrightness.old CoreBrightness.xdelta3 CoreBrightness
-
Sign the shit
sudo codesign -f -s - CoreBrightness
-
Replace the existing binary with the new and improved version
sudo cp CoreBrightness /System/Library/PrivateFrameworks/CoreBrightness.framework/CoreBrightness sudo reboot
-
Re-enable SIP
6.1 Boot into recovery mode (⌘ + R) and open Terminal
csrutil enable reboot
-
See System Preferences > Displays > Night Shift