2

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,121

3 Answers3

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
  • 10,996
dobey
  • 40,982
  • 1
    Yes, I was able to run it with this redshift -l 12.1:79.3 -t 5700:2000 -g 0.8 -m vidmode -v and it works great. But does this mean that I can no longer see the GUI, like the panel icon? – Fiksdal Mar 31 '16 at 20:06
  • No, if you modify the configuration file, you can have redshift-gtk start at login still, and the options will be preserved across logins/reboots, so you don't have to run redshift manually every time. – dobey Mar 31 '16 at 20:10
  • 2
    I guess you merely need to replace redshift with redshift-gtk in the command above. – Sadi Mar 31 '16 at 20:12
  • @Sadi I'm sleepy, I'll get back to you and Dobey tomorrow. This is very interesting. I've gotta make this work. – Fiksdal Mar 31 '16 at 20:14
  • 1
    No problem. I actually use the command killall redshift && redshift-gtk [MyOptions...] in a shell script, and then enter its full path in the ~/.config/autostart/redshift-gtk.desktop file's Exec= line. – Sadi Mar 31 '16 at 20:37
  • @Sadi This worked great, I added that to a shell script, which can be added to startup applications or assigned to a keyboard shortcut. – Fiksdal Apr 01 '16 at 06:45
  • I did this but it doesn't seem to pay attention to the time, thinks it's daytime at night. – Gringo Suave Dec 31 '19 at 02:28
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=