Yes, I know, it is some time ago that I posted this, but maybe the following additional info is still useful for someone: instead of setting the color calibration manually you can also do this via a script using the following command:
settings put --lineage system display_color_adjustment "0.5 0.5 0.5"
And to restore the default values:
settings put --lineage system display_color_adjustment "1.0 1.0 1.0"
This works a lot better for me than changing the brightness value to the lowest level as described here:
Edited to add:
The main difference between these two solutions is that the minimum brightness value will change back to the default value as soon as you move the brightness slider or turn the screen off and on, while the color calibration will stay the same until you change it again.