Redshift GTK no longer connecting to location provider
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
Same issue on Ubuntu 22.04 - also started on the same day the issue was filed.
same issue here on linux mint 21.3 cinnamon
It never connected for me, I had to manually control it but that doesn't even work any more on Mint 21.3
https://github.com/mozilla/ichnaea/issues/2065#
Oh.
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
I figured out a workaround with Mint. I removed Redshift GTK and installed QRedShift applet, and all is well for now.
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.
Linux Mint 22 (solution should work with Ubuntu 24.04 also):
- Install
redshift-gtk(it is now not a part of standard distribution):
sudo apt install redshift-gtk
- 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
- Do
sudo service geoclue restart
- Restart
redshiftorredshift-gtkor just log out and log in again.
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
raffles@raffles-GL552VW-DH74:~$ redshift Trying location provider
geoclue2'... Using providergeoclue2'. 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...
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.
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.
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