Night-Shift-on-Unsupported-Macs

Enable Night Shift on older Unsupported Macs
授权协议 Apache-2.0 License
开发语言 SHELL
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 司空赞
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Night Shift on Unsupported Macs

Version 2.0.1 - GUI InstallerVersion 2.0 - Bash Script

Updated July 31, 2019

Night Shift Enable Script for Unsupported MacsScript 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 support@osxhackers.net, 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
 相关资料
  • 我今天正在开发我的OpenShift应用程序,在没有更改与mongodb连接相关的任何内容的情况下,我开始收到以下消息: 唯一不同的是,我看到出于某种原因mongodb服务尝试了一个新的部署并失败了,所以我手动运行了一个。 我还注意到它试图连接的IP地址是mongodb的集群IP,但是当前运行的pod的节点IP是不同的。 有人能帮我弄清楚是什么触发了连接断开吗? 谢谢

  • Prismatic-Night If you're seeing something unexpected OR the result doesn't match the screenshots OR you want me to add new features to the startpage OR you need help in modifing the existing files, c

  • Bilibili-Night 是 Bilibili 网页端的深色模式 Chrome 扩展程序(插件),适用于 [Chromium](https://www.chromium.org/) 内核的所有浏览器(Google Chrome、QQ浏览器、360浏览器、搜狗浏览器......),欢迎 Star & Fork 参与贡献! 计划 目前本插件的深色模式适配任务量重大,单靠我一人完成将是一件非常困难的

  • Hack Night 是通过 ISIS 实验室运行的开放式每周训练会话。

  • Saturday Night Works Photo by Tim Foster on Unsplash Bu resimdeki manzara ile karşı karşıya değildim belki de ama o yaz gecesi, sahil kenarında oturmuş şehir ışıkları belli belirsiz görülebilen Tekird

  • HTTP 415 Unsupported Media Type客户端错误响应代码指示服务器拒绝接受请求,因为有效内容格式的格式不受支持。 格式问题可能是由于请求的指示Content-Type或Content-Encoding由于直接检查数据所致。 状态 415 Unsupported Media Type 规范 规范 标题 RFC 7231,第6.5.13节:415不支持的媒体类型 超文本传输协议