{"id":15551555,"url":"https://github.com/aonez/nightshiftpatcher","last_synced_at":"2025-04-23T20:23:21.873Z","repository":{"id":104792720,"uuid":"97826046","full_name":"aonez/NightShiftPatcher","owner":"aonez","description":"Enable Night Shift feature on a non supported Mac","archived":false,"fork":false,"pushed_at":"2019-01-16T12:03:45.000Z","size":28,"stargazers_count":35,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-18T04:55:33.072Z","etag":null,"topics":["macos","nightsifht"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aonez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-20T11:09:48.000Z","updated_at":"2025-01-31T16:49:06.000Z","dependencies_parsed_at":"2023-03-13T14:53:11.124Z","dependency_job_id":null,"html_url":"https://github.com/aonez/NightShiftPatcher","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aonez%2FNightShiftPatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aonez%2FNightShiftPatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aonez%2FNightShiftPatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aonez%2FNightShiftPatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aonez","download_url":"https://codeload.github.com/aonez/NightShiftPatcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250506903,"owners_count":21441875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","nightsifht"],"created_at":"2024-10-02T14:05:24.574Z","updated_at":"2025-04-23T20:23:21.842Z","avatar_url":"https://github.com/aonez.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NightShiftPatcher\n\n**Enable Night Shift on unsupported machines**\n\nOriginal idea by [Pike](https://pikeralpha.wordpress.com/2017/01/30/4398)\n\nMotivated by [NightPatch](https://github.com/pookjw/NightPatch)\n\n## Contributions\n\n- macOS 10.14 Mojave compatibility fix by [@albinoz](https://github.com/albinoz)\n\n## How to use\n\n1. Download the latest stable script from the [Releases](https://github.com/aonez/NightShiftPatcher/releases) section\n2. Disable [SIP](https://developer.apple.com/library/content/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html)[*](https://en.wikipedia.org/wiki/System_Integrity_Protection)\n3. Execute `NightShiftPatcher.sh` script\n4. Don't forget to reenable SIP. This is not required, but recommended for system security ;)\n\n## In case of error\n\n- If the system does not boot, restart in [single-user mode](https://support.apple.com/en-bh/HT201573) or with the [recovery partition](https://support.apple.com/en-us/HT201314)\n\n- You can restore the backup using the `NightShiftPatcher` script since `1.0` version with the `-r` option:\n\n  ```sh\n  ./NightShiftPatcher.sh -r\n  ```\n\n- The backup file can be found here:\n\n  ```sh\n  /System/Library/PrivateFrameworks/CoreBrightness.framework.bak\n  ```\n\n- If you used an old `NightShiftPatcher` script (before September 2018), first remove those files from the backup:\n\n  ```sh\n  sudo -s; f='/System/Library/PrivateFrameworks/CoreBrightness.framework.bak/Versions/Current/CoreBrightness'; rm \"${f}.temp\"; rm \"${f}.tbd\"; exit;\n  ```\n\n- To restore the backup with the terminal, you can use this terminal line:\n\n  ```sh\n  sudo -s; f='/System/Library/PrivateFrameworks/CoreBrightness.framework'; mv \"${f}\" \"${f}.hack\"; mv \"${f}.bak\" \"${f}\"; exit;\n  ```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faonez%2Fnightshiftpatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faonez%2Fnightshiftpatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faonez%2Fnightshiftpatcher/lists"}