There's a manual option to set the times you want GNOME night light to be on and off. I want it always on.
The closest I can get is to set it to turn on at 00:00 and turn off at 23:59. But then at midnight it goes off for a minute which is annoying. Then I have to turn it back on through the settings. How do I force it "always on".
The "native" way for Gnome Shell to always keep your nightlight color on involves to access some hidden options in dconf-editor. dconf-editor is not installed by default on Ubuntu 18.04. You may need to install it first.
night-light-schedule-automatic
to falsenight-light-schedule-from
to 0, andnight-light-schedule-to
to 24 (or any value higher than this)You can also adjust your color temperature there.
In Ubuntu versions later than 18.04, these settings are exposed in "Settings", under "Displays".
I was similarly looking for a way to keep it on at all times but didn't see a way through the GUI. The other answers work but I found a simpler way to enable it via terminal without having to install any additional tools:
To get an idea of temperature value ranges, Redshift uses default values of 3700 at night and 5500 during the day.
Another alternative is
sct
which you can install withsudo apt install sct
.Putting
sct 3500
or whatever other value you prefer in your autostart should do it.The question can be reframed to "How can I have screen color temperature at 5000 all the time?".
In this case you can use
xrandr
to set the color temperature. From these notes:You can see 5000K is:
So you can use
xrandr
like thisDo this on startup and forget about Night Light or any other add on.
Ironically looking at the code
redshift
(at night) mostly entails blue shift + green shift (reduction).