Skip to content

aonez/NightShiftPatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

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

  1. Download the latest stable script from the Releases section
  2. Disable SIP*
  3. Execute NightShiftPatcher.sh script
  4. 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 since 1.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;

About

Enable Night Shift feature on a non supported Mac

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages