redshift icon indicating copy to clipboard operation
redshift copied to clipboard

Redshift GTK no longer connecting to location provider

Open agentl074 opened this issue 1 year ago • 12 comments

This service has been working fine until recently.

"Failed to run Redshift Trying location provider ‘geoclue2’ Waiting for initial location to become available poll: Interrupted system call Unable to get location from provider"

Linux Mint 20.3 Cinnamon -- Native Redshift and Redshift GTK

agentl074 avatar Jun 22 '24 15:06 agentl074

Same issue on Ubuntu 22.04 - also started on the same day the issue was filed.

huguesjohnson avatar Jun 23 '24 21:06 huguesjohnson

same issue here on linux mint 21.3 cinnamon

defensem3ch avatar Jun 27 '24 02:06 defensem3ch

It never connected for me, I had to manually control it but that doesn't even work any more on Mint 21.3

deoxal avatar Jun 28 '24 03:06 deoxal

https://github.com/mozilla/ichnaea/issues/2065#

Oh.

ledufff avatar Jul 07 '24 20:07 ledufff

There is no sign, that Redshift is being maintained, but this workaround works great in Linux Mint 21.1.

https://github.com/jonls/redshift/issues/318#issuecomment-1014234929

0HAg0 avatar Jul 10 '24 00:07 0HAg0

I figured out a workaround with Mint. I removed Redshift GTK and installed QRedShift applet, and all is well for now.

agentl074 avatar Jul 10 '24 01:07 agentl074

The problem seems Geoclue, specifically Geoclue uses Mozilla Location Service, that has been discontinued. sources:

  • https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/186
  • https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/183

So we need to wait for an update from geoclue devs.

Kails0 avatar Aug 02 '24 18:08 Kails0

Linux Mint 22 (solution should work with Ubuntu 24.04 also):

  1. Install redshift-gtk (it is now not a part of standard distribution):
sudo apt install redshift-gtk
  1. Create file
/etc/geolocation

with the following content:

52.5200 # your latitude
13.4050 # your longitude
0 # altitude, set it to 0
1 # accuracy, set it to 1
  1. Do
sudo service geoclue restart
  1. Restart redshift or redshift-gtk or just log out and log in again.

unxed avatar Aug 13 '24 02:08 unxed

sudo service geoclue restart

Do I make the file "geolocation" executable? I did your suggestion but nothing has changed. BTW there is a geolocation service running on my machine as I can get the weather for my city with inxi. geoclue-2.0 is installed. I also made a .config/redshift/redshift.conf flie according to what the author posted somewhere. This is what I get when I run redshift from the command line, it just hangs there and the gui says image

raffles@raffles-GL552VW-DH74:~$ redshift Trying location provider geoclue2'... Using provider geoclue2'. Could not connect to wayland display, exiting. Failed to start adjustment method wayland. Trying next method... Using method `randr'. Waiting for initial location to become available...

Raffles727 avatar Aug 13 '24 17:08 Raffles727

Make sure you have

[static-source]

# Enable the static source
# If you make use of this source, you probably should disable other location
# sources in this file so they won't override the configured static location.
enable=true

in

/etc/geoclue/geoclue.conf

Do I make the file "geolocation" executable?

No.

unxed avatar Aug 13 '24 17:08 unxed

In addition to the above information, Maybe it's because I am using Librewolf browser. Firefox is not installed. Librewolf is a fork of Firefox.

Raffles727 avatar Aug 13 '24 18:08 Raffles727

The method above stopped working for me, so this is a new one.

Create a file ~/.config/redshift.conf with the following content:

[redshift]
location-provider=manual

[manual]
lat=49.98
lon=8.43

(replace lat and lon to your actual latitude and longitude)

NB! The correct path is ~/.config/redshift.conf, NOT ~/.config/redshift/redshift.conf

I also propose using another method of location determination, see https://github.com/jonls/redshift/issues/903 https://github.com/droidian/geoclue/issues/1

unxed avatar Jan 27 '25 22:01 unxed