anthonya1999 / GoodNight

The first non-jailbroken iOS (and macOS) application to adjust the screen temperature, brightness, and color!
554 stars 63 forks source link

GoodNight

Project name thanks to @Emu4iOS.

Based off of Thomas Finch's GammaThingy.

GoodNight is an app that allows you to directly access the screen's gamma levels, and modify it using IOMobileFramebuffer. With this you can do any of the following:

This application uses dlsym, which loads in the private symbols at runtime, rather than using headers, so no additional setup is needed once you download the source.

Installing

See [here] (Help/README.md) for written instructions.
Click on [this link] (https://www.youtube.com/watch?v=Yu62IlaqPQM) to see the official install video.

Compatibility

I am certain that this app will run on any iOS device running iOS 7 or higher.

Widget

The widget's gamma toggle button just toggles between night gamma and gamma off (like the enable button in the temperature part of the app). It overrides the auto updates until the next cycle:

Bedtime mode will only be activated if at that time the screen has active gamma. Else the bedtime mode will be skipped.

The darkroom button turns on darkroom mode and on deactivation of darkroom mode resumes to automatic mode immediately.

macOS Version

The macOS version of GoodNight is out! You can currently enter RGB values between 0 and 255 for red, green, and blue values, enable a darkroom mode, and adjust the color temperature of the display. It also has Touch Bar support! More features will be coming soon. You can download the always up-to-date binary distribution release from here.

Installing

It is crucial that you copy the application to the applications folder on your Mac. If you get an error while attempting to open the app, open up terminal, and type in this command:
sudo spctl --master-disable
Press return after you enter your password and try again. It should open successfully.