You are not logged in.
I had problems before, but it was solved in an update, and now geoclue2 has been working for months with redshift, but a couple of days ago, again stopped doing so.
I have /usr/lib/geoclue-2.0/demos/agent started by xdg/autostart and redshift-gtk started by systemd. I had to add
ExecStartPre=/usr/bin/sleep 3
to redshift-gtk.service to make it start after geoclue, and add
[redshift]
allowed=true
system=false
users=
to /etc/geoclue/geoclue.conf to make things work, but they did, up until now.
I don't know how to debug this, I'd be grateful for any pointers.
How do I currently check if geoclue is working at all, for instance?
Last edited by mokkurkalve (2019-10-16 03:23:31)
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Offline
/usr/lib/geoclue-2.0/demos/where-am-i
"Does not work" is no good problem description. Error message? Unexpected behavior?
Offline
/usr/lib/geoclue-2.0/demos/where-am-i
"Does not work" is no good problem description. Error message? Unexpected behavior?
Yes, it's a classic bad bug report. Error message? Unexpected behavior? Can't find any of those. The unwanted behavior is that redshift does not change the display as it does not get a location. Previously it changed the display to the desired tone after some delay, when it received geolocation info on the bus. I see this by simply looking at the "info" page of redshift-gtk. When it is all 0.0 redshift has gotten no geolocation info and does nothing. In changing location-provider from 'geoclue2' to 'manual' it works flawless and sets the tone of display. That's why I like to know if there are any way I can test whether geoclue2 works at all or get any debugging info. If i could find any log message I could provide those.
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Offline
/usr/lib/geoclue-2.0/demos/where-am-i
Sorry. It's very early morning. Thanks for providing location of the tool.
Testing it I found I did get a geolocation on the bus, so I set 'geoclue2' as location-provider again in ~/.config/redshift/redshift.conf and rebooted.
Now things are back to normal and redshift get a geolocation. Why it was impossible for approximately 48 hours beats me. I have no explanation. I have done regular system updates, but I can't se any packet updates that should affect this.
As such this issue is solved, even though I could find no explanation.
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Offline
Seems I have to remove the [SOLVED] again. Next boot, same problem. And /usr/lib/geoclue-2.0/demos/where-am-i returns no result.
This time I find something in the log:
geoclue[1072]: Failed to query location: Forbidden
This leads me here:
https://unix.stackexchange.com/question … -forbidden
Which indicates that limit of queries are exceeded.
I'll have to investigate this further...
Last edited by mokkurkalve (2019-10-07 11:54:10)
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Offline
Actually, uncommenting and changing the url= in /etc/geoclue/geoclue.conf to the suggested:
url=https://location.services.mozilla.com/v1/geolocate?key=geoclue
seems to work...
I'll have to test this for a day to feel certain....
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Offline
I don't know your situation, but if you are like I am and use redshift on a static desktop computer at home then maybe it's better not to use geoclue at all, but rather use a configuration file https://wiki.archlinux.org/index.php/Redshift
Offline
I don't know your situation, but if you are like I am and use redshift on a static desktop computer at home then maybe it's better not to use geoclue at all, but rather use a configuration file https://wiki.archlinux.org/index.php/Redshift
It's no doubt faster and safer to use location-provider 'manual' rather than 'geoclue2', and if your computer sits still you should use that. But this is a laptop, and sometimes it goes to other cities, and even abroad.
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Offline
Which server did you use?
Offline
Which server did you use?
I first tried to get www.googleapis.com to work, getting API-key and stuff, but I couldn't make it work and gave up.
Then I just followed the advice on the unix.stackexchange.com discussion page I linked and used:
url=https://location.services.mozilla.com/v1/geolocate?key=geoclue
in /etc/geoclue/geoclue.conf
And this seems to work allright so far...
Come to think of it it might have been what was in the previous /etc/geoclue/geoclue.conf for the Arch package geoclue. There was a new geoclue.conf.pacnew I merged there....
Yes it seems so: https://git.archlinux.org/svntogit/pack … 783b6f6728
Mm, it was after that occasional problems occurred... We'll see if *the old way* works stable over a period....
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Offline
Yeah. No more problems after that.... Time to re-add [SOLVED].
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Offline