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:
- Change the screen temperature
- Put the brightness lower than iOS would normally allow you to
- Adjust the RGB values of the framebuffer
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:
- So if you enable gamma with the widget while auto is in day mode it will keep gamma enabled until auto will turn to day the next morning.
- If you enable gamma and after that disable gamma with the widget, both during daytime, it will keep gamma deactivated until the next day sunset.
- If you disable gamma with the widget while auto is in night mode it will keep gamma disables until auto will turn to day the next evening.
- If you disable gamma and after that enable gamma with the widget, both during night time, it will keep gamma activated the complete next day until it reaches sunrise again.
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.