Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

geoclue2 provider: Unable to start GeoClue client #158

Closed

Description

@ajacoutot

Hi.

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.

Activity

  1. jonls commented on Jan 12, 2015

    @jonls
    Collaborator

    None that I know of. Please report back if you figure out what the cause is.

  2. ajacoutot commented on Jan 12, 2015

    @ajacoutot
    Author

    No cause sorry. But it's fully reproducible on Arch Linux as well.

  3. joelmarty commented on Jan 13, 2015

    @joelmarty

    I can reproduce it in archlinux as well

  4. spikebike commented on Jan 13, 2015

    @spikebike

    On 01/13/2015 02:20 PM, Joël Marty wrote:

    I can reproduce it in archlinux as well


    Reply to this email directly or view it on GitHub:
    #158 (comment)

    Ubuntu-14.04 as well.

  5. monkeydump commented on Jan 18, 2015

    @monkeydump

    Anyone worked out a solution for this yet? I too am running arch & have this error.

  6. zbyna commented on Jan 22, 2015

    @zbyna

    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

  7. zbyna commented on Jan 22, 2015

    @zbyna

    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.

  8. SysRivarian commented on Jan 23, 2015

    @SysRivarian

    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):

    Trying location provider `geoclue2'...
    Using provider `geoclue2'.
    Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Access denied.
    
  9. zbyna commented on Jan 23, 2015

    @zbyna

    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
    
  10. jonls commented on Jan 24, 2015

    @jonls
    Collaborator

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

  11. ajacoutot commented on Jan 24, 2015

    @ajacoutot
    Author

    That's correct. Adding this to geoclue.conf did the trick.
    Thanks for the link!

    [redshift]
    allowed=true
    system=false
    users=
    
  12. jonls commented on Jan 24, 2015

    @jonls
    Collaborator

    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.

  13. yafp commented on Feb 21, 2015

    @yafp

    had the same issue on fedora 21 - adding the 3 lines mentioned above in the .conf solved the issue as expected.

    Thanks.

  14. 52 remaining items

  15. jkterry1 commented on Jun 14, 2018

    @jkterry1

    Reproduced in Ubuntu 16.04.

  16. hovancik commented on Jun 14, 2018

    @hovancik

    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

  17. bigon commented on Jun 14, 2018

    @bigon
    Contributor

    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

  18. smetj commented on Jun 22, 2018

    @smetj

    On Fedora KDE, you will need to add yourself to the geoclue group.
    Logout & login and it works

  19. darioseidl commented on Jun 23, 2018

    @darioseidl

    None of the suggestions worked for me (Debian Sid with xfce), except for providing the location manually in ~/.config/redshift.conf:

    [redshift]
    location-provider=manual
    
    [manual]
    lat=48.2
    lon=16.4
    
  20. nycjv321 commented on Jul 6, 2018

    @nycjv321

    @darioseidl your solution, manual redshift.conf, worked. thanks!

  21. tangxinfa commented on Jul 23, 2018

    @tangxinfa

    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

    dex /etc/xdg/autostart/geoclue-demo-agent.desktop
    dex /usr/share/applications/redshift-gtk.desktop
    
  22. stpeters00 commented on Jul 23, 2018

    @stpeters00

    In the second (Startup) step, when editing the .desktop files with dex, what is supposed to be added, changed, or removed?

  23. waldauf commented on Jul 24, 2018

    @waldauf

    I proceeded according @tangxinfa instructions. But instead dex I used kioclient exec (KDE command for run .desktop files):

    1. 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
    
    1. 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 :] )

  24. stpeters00 commented on Jul 24, 2018

    @stpeters00

    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.

    Also, where did redshift-qt come from?

  25. MarcinWieczorek commented on Jul 24, 2018

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

  26. RatanRSur commented on Aug 13, 2018

    @RatanRSur

    I'm also getting this on Arch Linux even after adding the lines to the config:
    redshift 1.12
    geoclue2 2.4.11

  27. bbaserdem commented on Aug 24, 2018

    @bbaserdem

    Same issue here, adding lines to geoconf config does not fix the issue.

  28. jonls commented on Aug 24, 2018

    @jonls
    Collaborator

    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!

  29. Repository owner locked as off topic and limited conversation to collaborators on Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions