I'm a Web Developer, working on my Ubuntu 16.04 and I want to update to Ubuntu 17.04 in order to install new gnome-shell version 3.24 just because I really want that new features such as the night light applet, I've tried using flux app but it doesn't work. I've searched for a working alternative but I didn't have any luck.
You can install redshift
from the following command:
sudo apt install redshift
You can just add redshift
to your startup if you are OK with redshift
pulling its own default settings. Or, you can configure it manually like I have laid out below.
You can get your Longitude & Latitude from https://www.latlong.net/
You can then create a config file that redshift
will use in your home folder at ~/.config/redshift.conf
. Add the following lines to it, and I added the lat
and lon
for Portland, OR. But you can add the ones for your location. Make sure to set location-provider=
to manual
then if you want to use the LAT and LONG. However, the application geoclue2
should be able to find your location. Change the temp-day
and temp-night
to your likings.
~/.config/redshift.conf
; Global settings
[redshift]
temp-day=6500K
temp-night=3500
transition=1
gamma=1.000:1.000:1.000
location-provider=geoclue2
adjustment-method=randr
; The location provider and adjustment method settings
; are in their own sections.
; These are the location for Portland, OR.
[manual]
lat=45.523062
lon=-122.676482
Then all you have to do is to add just the application of redshift -c ~/.config/redshift.conf
to your startup applications and it will use your config file at startup by default.
You can check your redshift
parameters by running redshift -pv
or redshift -p
:
terrance@terrance-ubuntu:~$ redshift -pv
Location: 45.55 N, 122.68 W
Temperatures: 6500K at day, 3500K at night
Solar elevations: day above 3.0, night below -6.0
Brightness: 1.00:1.00
Gamma (Daytime): 1.000, 1.000, 1.000
Gamma (Night): 1.000, 1.000, 1.000
Solar elevation: -22.482371
Period: Night
Color temperature: 3500K
Brightness: 1.00
terrance@terrance-ubuntu:~$ redshift -p
Period: Night
Color temperature: 3500K
Brightness: 1.00
Hope this helps!
-
-
You can also change in the
redshift.conf
file,location-provider=
tolocation-provider=manual
to actually use the LAT and LON for your location to be more precise. Thelat
andlon
numbers have to be in their own section for it to work. See wiki.archlinux.org/index.php/redshift#Manual_setup – Terrance Aug 31 '17 at 14:48
A new simple and free software is Iris mini ,all you have to do is open it (as it's in appimage format)
If you have more than one monitor then eyesome might work better for you than redshift, nightlight or Windows 10 as it provides separate brightness and gamma (color temperature) for three monitors.
Instead of Longitude and Latitude you enter your city name and country name, which is usually derived automatically. Sunrise and sunset times are obtained daily for your city. Then over a one to two hour period (more or less) which you define brightness and color temperature is gradually increased after sunrise and decreased before sunset so it unnoticeable.
Even for adaptive brightness TVs you might prefer turning the feature off cranking up the brightness on the TV and using eyesome to control brightness instead.
I wrote it and it's all in bash so you can change it for more monitors (than 3) or for Windows 10 or whatever.
redshift
, then using your Latitude & Longitude to set your location? Then use the settings of6500
for daylight and3700
for night? The command would look likeredshift -l LAT:LONG -t 6500:3700
– Terrance Aug 30 '17 at 22:04