Giter Club home page Giter Club logo

night-shift-on-unsupported-macs's Introduction

Night Shift on Unsupported Macs

Version 2.0.1 - GUI Installer Version 2.0 - Bash Script

Updated July 31, 2019

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 deeply apologize for the lack of updates. College life was pretty busy.
  • I will work in the Backup and Uninstaller Issues facing the v2.0 patch.
  • It looks like I may need to make a script for re-patching as well.

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
  • iMacPro1,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
  • macOS 10.13 High Sierra Supported
  • macOS 10.14 Mojave Supported

-macOS 10.15 Catalina has not been Tested yet. Stay Tuned for updates.

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.

Note: v2.0 is also compatible with the other scripts for repatching and uninstallation.

Known Bugs

  • Certain Third-party monitors are NOT Compatible with this Patch.
  • Certain Models and configurations can be left with a Disabled Notification Center and the inability to open the DIsplay and/or Energy Saver Preferences Pane in System Preferences.

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 [email protected], let me know in the Issues Tab, or attempt it manually via Pike's original blog post.

Also join the rest of the Unsupported Mac Community on our Discord Server

Have Fun!

Other Notable Night Shift Patches

  1. NightPatch by pookjw
  2. NightShiftPatcher by aonez

night-shift-on-unsupported-macs's People

Contributors

dosdude1 avatar tmrjij avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

night-shift-on-unsupported-macs's Issues

Mac stuck on loading screen - 10.3.6

Hello there,

I have problem with night shift patcher ( booting with verbose mode says that CODE SIGNING PROCESS: rejecting invalid page)

I've installed it via script (2.0.1), restarted my mac and after this, progress bar is loading slowly and stuck at 100%. I've tried to boot in safe mode and restarting mac but still same story. I have SIP disabled.

Any ideas how to repair it ? Maybe uninstalling via single user mode by terminal ? I don't want to reinstall Mac OS because my mac has dedicated graphic failure, which can burn my motherboard at any time.

Model: MacBook Pro 15" early 2011, 10.3.6 High Sierra (AMD graphic disabled permanently in terminal during to failure, works at intel hd 3000 with extended vram to 1024mb)

Thank you in advance !

Credit

Hi - I cited as you as an inspirational reference for some Mojave Light mode patches (for unsupported machines) I am working on.

I have a private repo addressing them and would like to invite you. Do you have an email associated with this account. osx-hackers seems to be down. Look out for an invite but would like chat...I'm on dosdude1's Mojave Unsupported macrumors forum too.

please provide instructions for manual uninstall

I tried installing this on a dekstop mac pro 2012 with High Sierra 10.13.6 which bricks your system as described in this issue.

What would be useful are instructions on how to manually uninstall this software from recovery mode, it shouldn't be that hard.

the way i fixed this issue was by executing the following command from the Recovery Terminal:
rm -d -r /System/Library/PrivateFrameworks/CoreBrightness.framework

before you do this you have to change directory to the disk you installed osx on. you might have to do a couple times 'cd ..' since doing just 'cd' will get you to the root of the recovery thingi. then do cd /Volumes/your_install_disk

Operation not permitted

SIP is disabled, as confirmed by csrutil status.

iMac12,2
macOS 10.13.6

If I run the GUI, I get the following message:

Supported Mac
Your Mac already supports Night Shift. It is not Recommended to use this Patch.

If I run the script, I get the following message:

/bin/bash: bad interpreter: Operation not permitted

Staring at this screen, I feel like Chuck McGill in Better Call Saul. Please help.

Night Shift broke OSX

After I installed Night Shift on 10.13.6 on Macbook Air 13' 2011, OSX stopped working and loading. Needed to perform Recovery to fix things.

Wrong SIP

I turned off SIP, but when I installed the software I still reported that I had not turned off SIP.

Pls fix it. Thanks

Screen Shot 2019-07-08 at 1 50 44 PM
Screen Shot 2019-07-08 at 1 51 28 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.