I've tried with gpsd & geoclue but can't get a fix in any situation. gpsd is running so I can't get a fix with geoclue, but after killing gpsd still no luck with geoclue (service not started). Any suggestions? How to start geoclue service, didn't find anything...

Assigned to
5 months ago
2 months ago
No labels applied.

~stacyharper 5 months ago

You shouldnt need geoclue to have a fix. If you are using a modem device on pmos you should be able to load satelites data ootb. The command you should use through modem manager would looks like iirc

mmcli -m any --location-enable-gps-unmanaged

Also check other --location subcommands to see wich one you need.

Without satelites data having a fix can take 15 minutes while walking upside if you are very lucky.

~stacyharper 5 months ago

You may also need to edit the /etc/gpsd/device-hook script that was hanging the whole gpsd clients in my case

~petersen77 5 months ago

How can I test it? I can't locate in Google Maps after successful mmcli command. Which application do you use for GPS location?

~akrosi8 2 months ago

I'm on postmarketOS edge, and geoclue-based GPS works fine in Gnome Maps once I get a fix. However, I had to manually set up the GeoClue agent to start with wayland, by adding sxmo_daemons.sh start geoclue-agent /usr/libexec/geoclue-2.0/demos/agent to my start hook. I also didn't have to touch gpsd—it's running normally as far as I can tell.

I've gotten accuracy within a few meters, and once there's a solid fix it updates every second.

Register here or Log in to comment, or comment via email.