bletnieehjom / Night-Shift-on-Unsupported-Macs

Enable Night Shift on older Macs.

Home Page:http://osxhackers.net/NightShift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Night Shift on Unsupported Macs

Updated May 16, 2017

Night Shift Enable Script for Unsupported Macs Script made by Isiah Johnson (TMRJIJ) / OS X Hackers & Dosdude1

alt tag

This script will replace the CoreBrightness.framework with one already patched with the matching hex value in CoreBrightness.framework for most older/unsupported hardware.

All credits for this work goes to Piker Alpha. Thanks! As requested, this script is intended as non-commerical, with no Donation requests, Open Source, and must give thanks to Pike! Blog URL: https://pikeralpha.wordpress.com/2017/01/30/4398/

alt tag

History

macOS Sierra 10.12.4 brings iOS's Night Shift mode to the Mac for the first time. Night Shift, first introduced on iOS devices in iOS 9.3, is designed to gradually shift the display of a device from blue to a subtle yellow, cutting down on exposure to blue light. Blue light is believed to interrupt the circadian rhythm, disrupting sleep patterns.

Night Shift is activated through the Displays section of System Preferences, where a setting to have it come on at sunset and turn off at sunrise is available. It can also be set to turn on and off at custom times. Night Shift can also be toggled on manually using the Notification Center or Siri.

Night Shift was introduced in macOS Sierra 10.12.4 (Build 16E144f and Public Beta 1) and is controlled by the CoreBrightness.framework. The official minimum requirements for this feature are:

  • MacBookPro9,x
  • iMac13,x
  • Macmini6,x
  • MacBookAir5,x
  • MacPro6,x
  • MacBook8,x

Of course, this patch is intended to bypass this check completely.

OS Version Requirements

  • macOS 10.12.4 (16E195) Supported
  • macOS 10.12.5 (16F73) Supported
  • macOS 10.12.6 Developer Preview 1 (16G8c) Supported

Patching Instructions

Note: System Integrity Protection must be disabled beforehand in order to patch the framework. You can re-enable it after you're done. Software Updates may revert this patch so always check this repository for updates. HOW TO DISABLE SIP?

Always BACKUP before attempting this patch!

Installer Patching:

  1. Open the Installer in the Root of the Repository
  2. Follow the steps and agree to the terms
  3. Install
  4. Upon Completion, Restart your Mac
  5. You will see that the Night Shift tab is now available in System Preferences > Display as well as the toggle at the top of your Notification Center.

alt tag

Script Patching:

  1. Open the Terminal app in your Applications Folder
  2. Drag the 'Enable NightShift.sh' into the Terminal Window
  3. Following the instructions
  4. After Patching. Restart your Mac.
  5. You will see that the Night Shift tab is now available in System Preferences > Display as well as the toggle at the top of your Notification Center.

alt tag

Uninstall

  1. Open the Terminal app in your Applications Folder
  2. Drag the 'Uninstaller.sh' into the Terminal Window
  3. Following the instructions
  4. After Reverting. Restart your Mac.
  5. You will see that the Night Shift tab is no longer available.

Known Bugs

  • Certain Third-party monitors are NOT Compatible with this Patch.

Support

As such, if something goes wrong (like the Display tab in System Preference crashing) or if this framework copy doesn't work. Please feel free to email me at support@osxhackers.net, let me know in the Issues Tab, or attempt it manually via Pike's original blog post.

Have Fun!

About

Enable Night Shift on older Macs.

http://osxhackers.net/NightShift

License:Apache License 2.0


Languages

Language:Shell 100.0%