You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Unable to connect to GeoClue. Unable to get location from provider. #318
Unable to start redshift 1.11 on Fedora 23 since yesterday:
$ redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Geolocation disabled for UID 1000.
Unable to connect to GeoClue.
Unable to get location from provider.
$
This is similar to #158 but the proper fix - having both redshift.desktop and redshift-gtk.desktop files - doesn't help any more. Indeed both files are available in Fedora since #1309177 was closed:
I've found location services had been turned off. After turning on location services redshift runs smoothly.
It makes sense that redshift needs a location. However instead of exiting with a cryptic error message, redshift could display a dialog to manually set a location or turn on location services.
For example gnome-maps doesn't crash when location services are not running:
either you enter a location manually from the search bar,
or gnome-maps offers to turn on location services in settings.
See attached screen capture of gnome-maps:
Reacted by Matthew Wood, Keyur Paralkar, Zev Goldstein, Maxwell, Dwi Satrio W., Potato-Kun, Hugh Gallagher, Nikolas Engelhard, Federico Roman, Demyd and 2 more
@DimitriPapadopoulos where can I "turn on location services" setting you are describing... gnome-maps doesn't work on 14.04. I presume there's an underlying package and not something inherently required about gnome-maps being installed to fix redshift's geoclue2 problems.
Reacted by Michael Seydel, Jamie Hutber and Aleksandar N. Kostadinov
Gnome maps is just an example of an alternative way to handle missing location services. Other than that it is totally unrelated to redshift.
I don't know about Ubuntu 14.04, I have Fedora 23 here and location services can be enabled/disabled from Settings.
My guess is that location services are not disabled on your Ubuntu computer. Also I have just tried an Ubuntu 14.04 workstation and gnome-maps works pretty well once installed. Something might be broken on your computer.
I decided to just install the latest build 1.11 from source and specify my lat:lon manually in the config. Personally I don't travel with my workstation across time zones .... Like ever. So dynamic geoclue calls every time redshift starts aren't really worth the struggle to resolve. Thanks for the reply @DimitriPapadopoulos
Was encountering this and have a clean fix.
Currently using redshift 1.10-5ubuntu on Linux Mint 18 Sarah (straight from repo).
Installed redshift and redshift-gtk packages.
Attempted to run redshift-gtk and encountered this issue.
Ran redshift from command line and got:
$ redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Unable to connect to GeoClue.
Unable to get location from provider.
Installed geoclue-2.0 sudo apt-get install geoclue-2.0.
Ran another time from the terminal.
Started no problems.
Exited the terminal process and started redshift-gtk, no problems.
Hope this helps someone else 🍻
Reacted by Rick McKay, Kranthi2100, eadebayo, akargl, Christian Schaal, mazh91, andrejd1, Bala, CookiesaurusBex, Michael Seydel and 40 more
At least in the .deb, it seems like geoclue-2.0 should be a requirement of the package if it's required. It seems like the .rpm could also use a dependency based on @DimitriPapadopoulos's original post. Can anyone on a .rpm distro comment as to the minimum set of packages they had to install to get redshift to work?
Reacted by Sjardi Djoy Willems, Alan Hernandez, Naiyarah Hussain, tonsV2, Nick R, Ashokkumar Shanmugam, Joshua Kornblum, Vishal Raveendranathan, Cariat Samuel, Andrew and 5 more
Reacted by Ouail Bendidi, Ferdinand Prantl, Matthieu Falce, tonsV2, Sanskar Modi, Vishal Raveendranathan, Cariat Samuel, Mykyta and Yvan
Ok, so it is not possible to run Redshift without location services? It would be nice to be able to set the location manualy (I think I know where I am:) ). I see it as the privacy issue.
Hi All,
I modified geoclue.service to keep geoclue running
in the background:
ExecStart=/usr/libexec/geoclue --timeout=0
Now it is working.
What needs to be fixed is to allow redshift to start
geoclue as a user so geoclue does not have to stay
running in the background.
To work around this issue, I've made the geoclue service autostart on multi-user.target (graphical.target definitely should work as well).
In order to do that I've created the directory and file /etc/systemd/system/geoclue.service.d/multi-user.conf (a systemd drop-in file/override) with the following content.
Based on the original post, the geo2 location provider is already installed. So there are two solutions to this:
1. Run Redshift from command line as root **`sudo redshift`**
2. Turn on Location services: Goto **Settings --> Privacy --> Location Services (ON/OFF)**
Yesterday I after restarting my linux at night I realized suddenly Redshift didn't detect my location. After morning to evening I reinstalled Redshift and changed the geoclue.conf configuration to no avail. instead there is a "Timeout was reached" error message when I run the sudo timeshift command in the terminal.
Desktop Environment: Xfce
Yes. At that time the geoclue agent was already in the Startup list. It turns out that the cause is because the internet connection at home is not reliable. (which I remember at that time)
Can confirm on Ubuntu 22.04 solved with running an agent.
Had to add it to autorun..
Yet I prefer manually setting lon/lat but it seems like .config/redshift/redshift.conf ignored when installing as regular package.
@Reno-Sifana I had the same output on Archlinux using i3. I solved it by running /usr/lib/geoclue-2.0/demos/agent in the background.
For details, refer to the redshift page on Archwiki.
Can confirm on Ubuntu 22.04 solved with running an agent. Had to add it to autorun.. Yet I prefer manually setting lon/lat but it seems like .config/redshift/redshift.conf ignored when installing as regular package.
On Debian you put the file here .config/redshift.conf and not ./config/redshift/redshift.conf
This is mentioned in the man 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...
In my case the problem was two-fold on Ubuntu 22.04 LTS. I had the described problem with geoclue2 and tried overriding this in ~/.config/redshift.conf like this:
However, it seemed like all configuration settings were ignored and it still tried to contact the geoclue2 service, which is not running. The problem was that my ~/.config/redshift.conf was a symlink to the real path ~/dotfiles/.config/redshift.conf. This caused a permission denied error that was also reproducable using redshift -c ~/dotfiles/.config/redshift.conf. The access was denied by apparmor, which is enabled by default on Ubuntu.
The real fix for me was to allow access to my configuration file in the apparmor profile. Maybe this also helps others.
In my case the problem was two-fold on Ubuntu 22.04 LTS. I had the described problem with geoclue2 and tried overriding this in ~/.config/redshift.conf like this:
Since this is still open, and it seems to be some obscure issue on Debian + XFCE especially, something is using wayland in debian XFCE. I've read it's lightDM but not sure, tried to solve it. So, I went ahead and wrote a little script that uses xsct wrapped with yad to provide a super simple screen red light alternative
Activity
DimitriPapadopoulos commentedon Feb 21, 2016
I've found location services had been turned off. After turning on location services redshift runs smoothly.
It makes sense that redshift needs a location. However instead of exiting with a cryptic error message, redshift could display a dialog to manually set a location or turn on location services.
For example gnome-maps doesn't crash when location services are not running:
See attached screen capture of gnome-maps:

mikeatlas commentedon Feb 24, 2016
@DimitriPapadopoulos where can I "turn on location services" setting you are describing... gnome-maps doesn't work on 14.04. I presume there's an underlying package and not something inherently required about gnome-maps being installed to fix redshift's geoclue2 problems.
DimitriPapadopoulos commentedon Feb 25, 2016
Gnome maps is just an example of an alternative way to handle missing location services. Other than that it is totally unrelated to redshift.
I don't know about Ubuntu 14.04, I have Fedora 23 here and location services can be enabled/disabled from Settings.
DimitriPapadopoulos commentedon Feb 25, 2016
As far as I can tell it is quite difficult to disable intrusive services like geoclue (location service) in Ubuntu:
http://askubuntu.com/questions/106916/how-do-i-stop-geoip-from-connecting-to-the-internet-every-time-i-boot
My guess is that location services are not disabled on your Ubuntu computer. Also I have just tried an Ubuntu 14.04 workstation and gnome-maps works pretty well once installed. Something might be broken on your computer.
mikeatlas commentedon Feb 25, 2016
I decided to just install the latest build 1.11 from source and specify my lat:lon manually in the config. Personally I don't travel with my workstation across time zones .... Like ever. So dynamic geoclue calls every time redshift starts aren't really worth the struggle to resolve. Thanks for the reply @DimitriPapadopoulos
clayzermk1 commentedon Nov 21, 2016
Was encountering this and have a clean fix.
Currently using redshift 1.10-5ubuntu on Linux Mint 18 Sarah (straight from repo).
Installed redshift and redshift-gtk packages.
Attempted to run redshift-gtk and encountered this issue.
Ran redshift from command line and got:
Installed geoclue-2.0
sudo apt-get install geoclue-2.0.Ran another time from the terminal.
Started no problems.
Exited the terminal process and started redshift-gtk, no problems.
Hope this helps someone else 🍻
eadebayo commentedon Dec 12, 2016
@clayzermk1
Thanks for the post. Worked for me. Mint 18, MATE.
clayzermk1 commentedon Dec 13, 2016
At least in the .deb, it seems like
geoclue-2.0should be a requirement of the package if it's required. It seems like the .rpm could also use a dependency based on @DimitriPapadopoulos's original post. Can anyone on a .rpm distro comment as to the minimum set of packages they had to install to get redshift to work?mrschaal commentedon Jan 8, 2017
@clayzermk1 thank you very much, helped me a lot. Worked perfectly for me, using Linux Mint 18 KDE
vbsteja commentedon Apr 19, 2017
@clayzermk1 it solved for me. thanks so much.
artforlife commentedon Oct 28, 2017
I am still having this issue on Ubuntu 16.04. I have tried every solution advised in this thread to no avail. Any idea how I can troubleshoot this?
imflash217 commentedon Nov 1, 2017
Based on the original post, the
geo2location provider is already installed.So there are two solutions to this:
sudo redshiftsodomak commentedon Feb 23, 2018
Ok, so it is not possible to run Redshift without location services? It would be nice to be able to set the location manualy (I think I know where I am:) ). I see it as the privacy issue.
helo9 commentedon Feb 24, 2018
No you don't need any location service, simply pass
-l LAT:LONas option on command line.
saif-ellafi commentedon Jun 18, 2018
On Fedora 28 KDE, only thing that worked was redshift-gtk -l 0:0
74 remaining items
ToddAndMargo commentedon Jan 16, 2022
jakob1379 commentedon Jan 17, 2022
I got this error and instead of having to install yet another program I put this snippet together
mhitza commentedon May 6, 2022
To work around this issue, I've made the geoclue service autostart on
multi-user.target(graphical.targetdefinitely should work as well).In order to do that I've created the directory and file
/etc/systemd/system/geoclue.service.d/multi-user.conf(a systemd drop-in file/override) with the following content.sudo systemctl daemon-reload sudo systemctl enable geoclue.serviceReno-Sifana commentedon Jul 8, 2022
Yesterday I after restarting my linux at night I realized suddenly Redshift didn't detect my location. After morning to evening I reinstalled Redshift and changed the geoclue.conf configuration to no avail. instead there is a "Timeout was reached" error message when I run the sudo timeshift command in the terminal.

Desktop Environment: Xfce
goekce commentedon Sep 18, 2022
@Reno-Sifana I had the same output on Archlinux using i3. I solved it by running
/usr/lib/geoclue-2.0/demos/agentin the background.For details, refer to the redshift page on Archwiki.
Reno-Sifana commentedon Sep 18, 2022
Yes. At that time the geoclue agent was already in the Startup list. It turns out that the cause is because the internet connection at home is not reliable. (which I remember at that time)
paxapy commentedon Nov 18, 2022
Can confirm on Ubuntu 22.04 solved with running an agent.
Had to add it to autorun..
Yet I prefer manually setting lon/lat but it seems like
.config/redshift/redshift.confignored when installing as regular package.DeeDeeRanged commentedon Dec 16, 2022
On Debian you put the file here .config/redshift.conf and not ./config/redshift/redshift.conf
This is mentioned in the man redshift.
TomaszWaszczyk commentedon Jun 1, 2023
On Debian same problem:
raimue commentedon Jul 9, 2023
In my case the problem was two-fold on Ubuntu 22.04 LTS. I had the described problem with geoclue2 and tried overriding this in
~/.config/redshift.conflike this:However, it seemed like all configuration settings were ignored and it still tried to contact the geoclue2 service, which is not running. The problem was that my
~/.config/redshift.confwas a symlink to the real path~/dotfiles/.config/redshift.conf. This caused a permission denied error that was also reproducable usingredshift -c ~/dotfiles/.config/redshift.conf. The access was denied by apparmor, which is enabled by default on Ubuntu.The real fix for me was to allow access to my configuration file in the apparmor profile. Maybe this also helps others.
wachin commentedon Oct 12, 2023
Thanks, work in Linux Mint 21 Vanessa using Fluxbox Window Manager. I found the latitude and longitude in: https://www.geodatos.net/
tremby commentedon Oct 15, 2023
This is what did it for me, only on Ubuntu 22 it was at
/usr/libexec/geoclue-2.0/demos/agent.fonzi commentedon Jun 17, 2024
Since this is still open, and it seems to be some obscure issue on Debian + XFCE especially, something is using wayland in debian XFCE. I've read it's lightDM but not sure, tried to solve it. So, I went ahead and wrote a little script that uses xsct wrapped with yad to provide a super simple screen red light alternative
https://github.com/fonzi/bash-tools/tree/master/debian/screen-temp
DeeDeeRanged commentedon Jun 19, 2024
Main issue is that redshift depends on geoclue running see previous comments. above.
unxed commentedon Feb 12, 2025
Fixed the problem by using solution from Linux Mint forum: