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.
geoclue2 provider: Unable to start GeoClue client #158
Using redshift 1.10 on OpenBSD, I cannot use the geoclue2 provider.
It fails with:
$ redshift
Trying location provider geoclue2'... Using providergeoclue2'.
Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Access denied.
Unable to connect to GeoClue.
Unable to get location from provider.
All other apps using geoclue2 work fine (e.g. gnome-maps).
Is there an obvious configuration tweak that I missed?
Thanks.
Mint 17.1 kde the same issue :
Failed to run Redshift
Trying location provider `geoclue2'...
Unable to connect to GeoClue.
Unable to get location from provider.
console output:
./redshift-gtk
** (redshift-gtk:13902): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Slightly progress:
after installing:
Commit Log for Thu Jan 22 21:51:18 2015
at-spi2-core (2.10.2.is.2.10.1-0ubuntu1)
disappeared :
** (redshift-gtk:13902): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
and /usr/share/dbus-1/services/org.a11y.Bus.service was created
output:
./redshift-gtk
Failed to run Redshift
Trying location provider `geoclue2'...
Unable to connect to GeoClue.
Unable to get location from provider.
console output:
nothing
without gui:
./redshift
Zkouší se poskytovatel polohy geoclue2'... trying location provider .. Používám poskytovatelegeoclue2'. using location provider ...
Unable to connect to GeoClue.
Nebylo možné získat polohu od poskytovatele. Unable to get location from provider.
It works, here are all my libs related "geoclue" installed, geoclue-2.0 seems to be the problem (at-spi2-core which I mentioned in previous post can be uninstalled without affecting redshift running 😕 ):
ii geoclue 0.12.99-3ubuntu1 amd64 Geographic information framework
ii geoclue-2.0 2.0.0-4 amd64 geoinformation service
ii geoclue-geonames 0.12.99-3ubuntu1 amd64 Geocoder provider for GeoClue (geonames)
ii geoclue-gpsd 0.12.99-2ubuntu2 amd64 Position server for GeoClue (GPS)
ii geoclue-gsmloc 0.12.99-3ubuntu1 amd64 Position server for GeoClue (GSM)
ii geoclue-gypsy 0.12.99-2ubuntu2 amd64 Position server for GeoClue (GYPSY)
ii geoclue-hostip 0.12.99-3ubuntu1 amd64 Position server for GeoClue (hostip)
ii geoclue-localnet 0.12.99-3ubuntu1 amd64 Position server for GeoClue (local network)
ii geoclue-manual 0.12.99-3ubuntu1 amd64 Position server for GeoClue (manual)
ii geoclue-nominatim 0.12.99-3ubuntu1 amd64 Geocoding and reverse-geocoding server for GeoClue (Nominatim)
ii geoclue-plazes 0.12.99-3ubuntu1 amd64 Position server for GeoClue (Plazes)
un geoclue-provider <žádná> <none> (popis není k dispozici)
ii geoclue-skyhook 0.12.99-3ubuntu1 amd64 Map and geocode server for GeoClue (Skyhook)
ii geoclue-ubuntu-geoip 1.0.2+14.04.20131125-0u amd64 Provide positioning for GeoClue via Ubuntu GeoIP services
ii geoclue-yahoo 0.12.99-3ubuntu1 amd64 Map and geocode server for GeoClue (Yahoo)
ii libgeoclue-dev 0.12.99-3ubuntu1 amd64 C API for GeoClue (development files)
ii libgeoclue0:amd64 0.12.99-3ubuntu1 amd64 C API for GeoClue
ii python-geoclue 0.1.0-4build1 all Python module to access Geoclue data
@ajacoutot@joelmarty@monkeydump Did any of you Arch people try to change /etc/geoclue/geoclue.conf? It seems from this post that it is locked down to a few programs by default.
Reacted by Javad Zarezadeh, Kshitij Dhakal, Tony Fiedler, Hafidz Jazuli Luthfi and rpxomi
That's correct. Adding this to geoclue.conf did the trick.
Thanks for the link!
[redshift]
allowed=true
system=false
users=
Reacted by Peter Petraník, Ben Usman, Patrick Ayoup, Naveen, Justin Quick, Rob, Axel García, Md Tahsin Rahman, Jakub, Ioannis Filippidis and 89 more
Reacted by TÖRÖK Attila
Reacted by Andrzej Wierzbanowski, Melissa Boiko, Konstantin Möllers, Lucy, Vilmar Almeida, John McVeigh, Artur Mróz, Maciej Wróblewski, Tom Hanks Noname, Joe Spencer and 1 more
Great, thanks for testing. This appears to actually be the default setup for more recent versions of GeoClue2 so it will probably also be a problem in other distributions when GeoClue2 is updated.
Debian sid with XFCE: I've installed geoclue-2-demo. After restart it asks me if I wanna allow redshift to access location, but it still doesn't work, same error
I think that an other bug should be opened for that.
The initial bug here was that redshift was not providing a .desktop file
The recent new issues are related to a change in geoclue 2.4.10 and is completely different. As a side note, bugs should be opened in the different DE (KDE, Mate,....) to support the geoclue agent
The geoclue-demo-agent.desktop will activate geoclue.service through DBUS, but geoclue.service will auto exit if no use in 5 seconds, this is the problem.
It works on archlinux with following steps:
1, Append configuration section to /etc/geoclue/geoclue.conf
[redshift]
allowed=true
system=false
users=
2, Startup geoclue-demo-agent.desktop and redshift-gtk.desktop one by one
I proceeded according @tangxinfa instructions. But instead dex I used kioclient exec (KDE command for run .desktop files):
First console:
$ kioclient exec /usr/share/applications/geoclue-demo-agent.desktop
Geolocation service not in use
Geolocation service in use # ... displayed after run redshift command
Second console:
$ redshift-qt
"Using provider `geoclue2'."
"Solar elevations: day above 3.0, night below -6.0"
"Temperatures: 6500K at day, 4500K at night"
"Brightness: 1.00:1.00"
"Gamma (Daytime): 1.000, 1.000, 1.000"
"Gamma (Night): 1.000, 1.000, 1.000"
"Using method `randr'."
"Location: 52.28 N, 9.97 E"
"Color temperature: 6500K"
"Brightness: 1.00"
"Status: Enabled"
"Period: Daytime"
Redshift status change: disabled
"Status: Disabled"
"Period: None"
Redshift status change: enabled
"Status: Enabled"
"Period: Daytime"
... now redshift seems to be started and run (I'll checked it later now I have 9.00 AM :] )
Is there a dex that does something similar to kioclient exec?
I'd never heard of a dex command, but a Fedora 28 dnf search dex turned up a package for a text editor called dex. Some googling turned up other things called dex, but none of them look like a program to run .desktop files.
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Using method `randr'.
Waiting for initial location to become available...
Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying.
Unable to get location from provider.
Downgrading geoclue (2.4.10-1 => 2.4.7-1) worked like a charm.
It looks like some of you are seeing the same error as #636. Please take a look at the summary here: #636 (comment) for workarounds and take a look at the comments by zeenix in that issue.
This issue has been closed for a while and the original issue was resolved with a workaround. What some of you are experiencing is probably different issues that don't belong here so I'll lock this thread and you can go ahead and open new issues if you are still having issues. However, please take a minute to consider if you issue is with your distro or with GeoClue, in which case you should open an issue with those projects instead of here!
Repository owner locked as off topic and limited conversation to collaborators on Aug 24, 2018
Activity
jonls commentedon Jan 12, 2015
None that I know of. Please report back if you figure out what the cause is.
ajacoutot commentedon Jan 12, 2015
No cause sorry. But it's fully reproducible on Arch Linux as well.
joelmarty commentedon Jan 13, 2015
I can reproduce it in archlinux as well
spikebike commentedon Jan 13, 2015
On 01/13/2015 02:20 PM, Joël Marty wrote:
Ubuntu-14.04 as well.
monkeydump commentedon Jan 18, 2015
Anyone worked out a solution for this yet? I too am running arch & have this error.
zbyna commentedon Jan 22, 2015
Mint 17.1 kde the same issue :
Failed to run Redshift
Trying location provider `geoclue2'...
Unable to connect to GeoClue.
Unable to get location from provider.
console output:
./redshift-gtk
** (redshift-gtk:13902): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
zbyna commentedon Jan 22, 2015
Slightly progress:
after installing:
Commit Log for Thu Jan 22 21:51:18 2015
at-spi2-core (2.10.2.is.2.10.1-0ubuntu1)
disappeared :
** (redshift-gtk:13902): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
and /usr/share/dbus-1/services/org.a11y.Bus.service was created
output:
./redshift-gtk
Failed to run Redshift
Trying location provider `geoclue2'...
Unable to connect to GeoClue.
Unable to get location from provider.
console output:
nothing
without gui:
./redshift
Zkouší se poskytovatel polohy
geoclue2'... trying location provider .. Používám poskytovatelegeoclue2'. using location provider ...Unable to connect to GeoClue.
Nebylo možné získat polohu od poskytovatele. Unable to get location from provider.
SysRivarian commentedon Jan 23, 2015
Ditto on up-to-date Arch, except my error message leaves out the last two lines (even after waiting 1.5 hours before hitting CTRL+C):
zbyna commentedon Jan 23, 2015
It works, here are all my libs related "geoclue" installed, geoclue-2.0 seems to be the problem (at-spi2-core which I mentioned in previous post can be uninstalled without affecting redshift running 😕 ):
jonls commentedon Jan 24, 2015
@ajacoutot @joelmarty @monkeydump Did any of you Arch people try to change
/etc/geoclue/geoclue.conf? It seems from this post that it is locked down to a few programs by default.ajacoutot commentedon Jan 24, 2015
That's correct. Adding this to
geoclue.confdid the trick.Thanks for the link!
jonls commentedon Jan 24, 2015
Great, thanks for testing. This appears to actually be the default setup for more recent versions of GeoClue2 so it will probably also be a problem in other distributions when GeoClue2 is updated.
yafp commentedon Feb 21, 2015
had the same issue on fedora 21 - adding the 3 lines mentioned above in the .conf solved the issue as expected.
Thanks.
52 remaining items
jkterry1 commentedon Jun 14, 2018
Reproduced in Ubuntu 16.04.
hovancik commentedon Jun 14, 2018
Debian sid with XFCE: I've installed
geoclue-2-demo. After restart it asks me if I wanna allow redshift to access location, but it still doesn't work, same errorbigon commentedon Jun 14, 2018
I think that an other bug should be opened for that.
The initial bug here was that redshift was not providing a .desktop file
The recent new issues are related to a change in geoclue 2.4.10 and is completely different. As a side note, bugs should be opened in the different DE (KDE, Mate,....) to support the geoclue agent
smetj commentedon Jun 22, 2018
On Fedora KDE, you will need to add yourself to the
geocluegroup.Logout & login and it works
darioseidl commentedon Jun 23, 2018
None of the suggestions worked for me (Debian Sid with xfce), except for providing the location manually in
~/.config/redshift.conf:nycjv321 commentedon Jul 6, 2018
@darioseidl your solution, manual redshift.conf, worked. thanks!
tangxinfa commentedon Jul 23, 2018
The
geoclue-demo-agent.desktopwill activategeoclue.servicethrough DBUS, butgeoclue.servicewill auto exit if no use in 5 seconds, this is the problem.It works on archlinux with following steps:
1, Append configuration section to /etc/geoclue/geoclue.conf
2, Startup
geoclue-demo-agent.desktopandredshift-gtk.desktopone by onestpeters00 commentedon Jul 23, 2018
In the second (Startup) step, when editing the .desktop files with dex, what is supposed to be added, changed, or removed?
waldauf commentedon Jul 24, 2018
I proceeded according @tangxinfa instructions. But instead
dexI usedkioclient exec(KDE command for run .desktop files):... now redshift seems to be started and run (I'll checked it later now I have 9.00 AM :] )
stpeters00 commentedon Jul 24, 2018
Is there a
dexthat does something similar tokioclient exec?I'd never heard of a
dexcommand, but a Fedora 28dnf search dexturned up a package for a text editor calleddex. Some googling turned up other things calleddex, but none of them look like a program to run .desktop files.Also, where did
redshift-qtcome from?MarcinWieczorek commentedon Jul 24, 2018
Downgrading geoclue
(2.4.10-1 => 2.4.7-1)worked like a charm.RatanRSur commentedon Aug 13, 2018
I'm also getting this on Arch Linux even after adding the lines to the config:
redshift 1.12
geoclue2 2.4.11
bbaserdem commentedon Aug 24, 2018
Same issue here, adding lines to geoconf config does not fix the issue.
jonls commentedon Aug 24, 2018
It looks like some of you are seeing the same error as #636. Please take a look at the summary here: #636 (comment) for workarounds and take a look at the comments by zeenix in that issue.
This issue has been closed for a while and the original issue was resolved with a workaround. What some of you are experiencing is probably different issues that don't belong here so I'll lock this thread and you can go ahead and open new issues if you are still having issues. However, please take a minute to consider if you issue is with your distro or with GeoClue, in which case you should open an issue with those projects instead of here!