Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redshift GTK no longer connecting to location provider #895

Open
agentl074 opened this issue Jun 22, 2024 · 11 comments
Open

Redshift GTK no longer connecting to location provider #895

agentl074 opened this issue Jun 22, 2024 · 11 comments

Comments

@agentl074
Copy link

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

@huguesjohnson
Copy link

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

@defensem3ch
Copy link

same issue here on linux mint 21.3 cinnamon

@deoxal
Copy link

deoxal commented Jun 28, 2024

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

@ledufff
Copy link

ledufff commented Jul 7, 2024

mozilla/ichnaea#2065

Oh.

@0HAg0
Copy link

0HAg0 commented Jul 10, 2024

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

#318 (comment)

@agentl074
Copy link
Author

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

@Kails0
Copy link

Kails0 commented Aug 2, 2024

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

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

@unxed
Copy link

unxed commented Aug 13, 2024

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.

@Raffles727
Copy link

Raffles727 commented Aug 13, 2024

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...

@unxed
Copy link

unxed commented Aug 13, 2024

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.

@Raffles727
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants