5

People have asked about this bug before, but it hasn't really been answered yet.

Redshift used to work fine for me, but now it doesn't any more. I don't know how that happened. There seems to be some problem with the geoclue service or something.

Can't we

  1. Manually toggle Redshift on and off, without needing any location?
  2. Set the location manually?

I don't really care about any of the automation, I just want a working screen dimmer. There is an alternative called "Iris" but it's a paid app.

Here is what happens

 arun@arun-GP70-2OD:~$ redshift
 Trying location provider `geoclue'...
 Started Geoclue provider `Geoclue Master'.
 Using provider `geoclue'.

 ** (process:4125): WARNING **: Could not get location, 3 retries left.


 ** (process:4125): WARNING **: Could not get location, 2 retries left.


 ** (process:4125): WARNING **: Could not get location, 1 retries left.


 ** (process:4125): WARNING **: Provider does not have a valid location available.
 Unable to get location from provider.

The same thing happens when I use gtk-redshift and redshift-gtk.

Fiksdal
  • 2,181

4 Answers4

6

As per the documentation for the configuration file, you can specify manually location, color temperature, etc…

For example, if you were in Copenhagen, you could run redshift-gtk -l 55.7:12.6. That will also launch the panel indicator.

Sadi
  • 11,074
dobey
  • 41,650
0

There seems to be a geoclue-2.0 available, which solves the issue for me (Ubuntu Mate 16.04, redshift-gtk) and for this guy (Linux Mint).

I removed redshift first (just a security step) by

apt-get purge redshift

And then did how instructed in russian:

sudo apt-get install redshift-gtk geoclue-2.0
rüdiger
  • 29
  • 6
0

Update /etc/geoclue/geoclue.conf config file!

whitelist=org.freedesktop.DBus;_geoclue-demo-agent;gnome-shell;io.elementary.desktop.agent-geoclue2

[org.freedesktop.DBus]
allowed=true
system=true
users=

0

Solution that worked for me:

Create a file ~/.config/redshift.conf

The content of the file can be minimal, only the configuration that is different than default:

[redshift]
location-provider=manual

[manual] lat=49.01 lon=8.40

unxed
  • 121