Shell
Switch branches/tags
Nothing to show
Clone or download
TMRJIJ Small Changes.
High Sierra Curl updated.
Small Adjustments.
Nothing special today :(
Latest commit 3ebfd22 Jan 15, 2018
Permalink
Failed to load latest commit information.
GUI Installer Small Changes. Jan 15, 2018
Resources Small Changes. Jan 15, 2018
macOS Night Shift Enabler.mpkg/Contents Version 1.4 May 15, 2017
Enable NightShift.sh Small Changes. Jan 15, 2018
LICENSE Renewed License May 15, 2017
README.md Small Changes. Jan 15, 2018
Uninstaller.sh Updated Uninstaller May 15, 2017

README.md

Night Shift on Unsupported Macs

Updated January 15, 2018 Note: I am aware of the issue in High Sierra and will fix it accordingly in the next update.

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! Special thanks to pookjw, PeterHolbrook, dosdude1, and aonez for their continued critiques and support from their own source work.

As requested, this script is intended as non-commerical, with no Donation requests, Open Source, and must give thanks to Pike! Blog URL: Click Here

Announcements

  • I am currently testing macOS High Sierra. Now allowing Feature Requests via Email or Pull Requesting.
  • Thinking into solutions that keep the framework patched throughout updates. Open to suggestions.

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 (16E144f) 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 Sierra Supported

Currently Testing

  • macOS 10.13.2

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.
  • macOS 10.13 has alterations in the Framework that will result in the Display Preference in System Preferences to not work, however the Night Shift toggle via Notification Center does seem to work. I will address this issue in the next update.

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!

Other Notable Night Shift Patches

  1. NightPatch by pookjw
  2. NightShiftPatcher by aonez