I installed redshift by using the following command in terminal:
sudo apt-get install redshift redshift-gtk
But while running the program i ended up with errors:
So i installed geoclue with the following command:
sudo apt install geoclue
However even after installing geoclue package, I am still facing the same problem.
The problem is not with
geoclue
package. You don't need to installgeoclue
. It is because you have not configured Redshift. Redshift sets the color temperature according to your location. The simplest fix to this issue is to enable location services:System Settings > Security & Privacy > Location services > Turn ON
But you can manually configure Redshift to set custom values for color temperature and location. For that, open up your browser and search for the latitude and longitude for your area, for example, new york latitude and longitude.
Once you get the values for latitude and longitude for your area, then search for Startup Applications in your computer. Most probably you will have the entry for Redshift. Click on the Redshift entry and then click Edit. Then in the command section enter this command:
Replace
[LATITUDE]
and[LONGITUDE]
with your values. For example my command goes like:Note:- If for some reason you don't see the entry for Redshift in the startup applications menu, just click on the Add button instead of the Edit button, provide a name for example, Redshift and then enter the above command.
The values 6500 and 3400 represent the color temperature values for day and night respectively. The value 6500 makes no color changes and the screen is perfectly calibrated. If you want to eliminate blue light on day time also, change the value 6500 to 5500. Again you can have your own custom values. Just Save the settings and Reboot to apply changes.
Depending on your window manager you may have to manually allow Redshift to access GeoClue.
Edit GeoClue's config
sudo nano /etc/geoclue/geoclue.conf
Append the following lines to
/etc/geoclue/geoclue.conf
Then restart Redshift
kill $(pgrep '[r]edshift*') && redshift-gtk & disown
Redshift stopped working in Ubuntu 16.04 (yes, still using it in 2020).
I edited my
~/.config/redshift.conf
into the following:Note: I'm using
manual
location provider (notgeoclue2
).I suddenly had this problem after using
redshift-gtk
for many years without issue. The screen failed to turn red after startup and there was a geoclue error after disabling from the indicator icon menu.On 18.04, the error is for "geoclue2". However,
geoclue-2.0
was already installed on my system. I fixed this by reinstalling thegeoclue-2.0
package: