I got same issue like you before but i fixed by a custom geoclue config, so not more king kong locations.
After i configured the geoclue the GNSS worked very solid.
At the moment there are no decent mapping apps for Phosh yet, the only promising mapping apps it is: Mepo
What is this geoclue config - why would GPS not be used first before network?
One answer is: if you are inside a building then GNSS may be unusable (signal too weak / lots of reflections) whereas that is probably where WiFi gives its best results (most likely for there to be a WAP at all, and WAPs don’t move around much).
Even so, if you want to be sure that GNSS is working then you need to ignore / disable other sources of location information (as recommended above).
How do you configure L5 to ignore wifi? Is it in the settings or a file in /etc/ ;
About wifi. Something must be wrong here. I am on an island but maps using wifi puts me in Athens, where I guess that Athens is a place where the ISP line passes through. So L5 chooses a wrong point to locate me through wifi.
/etc/geoclue/geoclue.conf
Thanks @irvinewade I will edit the file.
Still the wifi issue must be solved because as others have said when in a building gps cannot be used for location easily.
Is there a way to specify priority? Like “if no gnss, use WiFi”?
Wlan(aGNSS) it help to GNSS to quick process the g.n.s.s data. So putting to False the Wlan will make that GNSS take the default time that it is 4 minutes to get real location. So in this case something it wrong in the geoclue, that not work good, in that case it better to False all aGNSS.
I would say Pure Maps with OSM Scout server is the most developed, since you can basically be offline and still get directions, maps, searches, routing (once GPS works efficiently - aquisition of initial position, download of satellite data etc)
I know the Sailfish-PureMaps but Librem 5 deserve a better gnu mapping client. Seems that Mepo may be.
What did you set in the file to see GPS location - does it work even around zero wifi devices?
Personally, I am wary of ever using WiFi for location - as it involves unpleasant privacy issues. If you are not worried about that then I understand you just want it to work (but in that case for testing you would want to disable using the GNSS and enable only WiFi and really see whether it is working and/or get to the bottom of why it isn’t working).
That was me actually who said that. With GNSS only and no WiFi then your device would be expected to identify the location at which you entered the building (i.e. last known location) until such time as you leave the building. That won’t be far wrong, depending on how big the building is i.e. should be fine for your house.
There are in-building location systems (besides WiFi) but they are either proprietary or raise even worse privacy issues or both.
I was just using grep
on the raw GNSS device, not using geoclue
. Yes, it worked (produced plausible coordinates that closely match my iPhone). There’s another topic on doing that.
Enable 3G source
enable=false
CDMA source configuration options
[cdma]
Enable CDMA source
enable=false
Modem GPS source configuration options
[modem-gps]
Enable Modem-GPS source
enable=false
WiFi source configuration options
[wifi]
Enable WiFi source
enable=false
Thanks for sharing, after an incomprehensible amount of time my phone finally got a fix.
I’ve noticed that it loses the gps signal not only inside buildings but, contrary to all the phone I’ve owned in the last ten years, also in my car, making it virtually useless
Today I tried to use maps and it still shows me at some other place, the headquarters of the mobile provider (I am with mobile data on).
I checked /etc/geoclue/geoclue.conf
and I have
[network-nmea]
enable=true
nmea-socket=/var/run/gnss-share.sock
[3g]
enable=false
[cdma]
enable=false
[modem-gps]
enable=false
[wifi]
enable=false
How can I force only gps location?
I using my L5 with pure GNSS only, so it possible do that.
After config like this REBOOT then wait till 15 minutes till get location.
Purism is working on a new version of gnss-share to rapid get gnss location in L5, not yet shipped.
I’m trying to setup geoclue on the Librem 5 to pull GPS coordinates from a GPS receiver plugged into the USB port. It’s a standard receiver, BU-353S4. So far, this thread has been quite helpful. I’m hoping someone here might have a quick hack to solve my issue.
I turn all forms of GPS off, except for the NMEA, in geoclue.conf. From here, I note that GPS data is incoming using gpsd, which creates the /var/run/gpsd.sock and I can see the data in gpsmon. How do I link up the gpsd.sock to geoclue?
So far, I’ve tried pointing geoclue.conf directly to the gpsd.sock but no luck. I get “Permission denied” when I try to point geoclue to gpsd.sock.
I also tried changing the sock in the /etc/gnss-share.conf file to gpsd.sock (also changing device to /dev/gps0). This was another long shot with no success.
I also added the user to dialout and geoclue groups in the hopes of getting the permission needed above.
Finally, I found that gnss-share appears to be holding the keys here and is still in development: https://gitlab.com/postmarketOS/gnss-share/-/tree/ee8f466aac007b3cbdaf964c6ad66033612ab6cb
Can anyone suggest another option? My hope is to leave the GPS receiver in my car and plug it into the L5 when I’m on the road for a good, solid signal. I know Navit will use gpsd, but it’s clunky. I prefer PureMaps for a lot of reasons. Cheers!
Why use an external GPS when the phone has a gps?
Do you have all the switches set to the “allow” position?
BTW if you are developing something yourself this howto I posted might help?
There are issues with the GPS antenna and as far as I’m aware there is no solution yet for the problem.
So attaching an external GPS module is an interresting experiment.
Post ls -l
output?
Can you amend the permissions / ownership after the fact (from root
obviously)?
Some solutions may be unsatisfactorily secure but let’s take this as proof-of-concept and worry about security later.
Which user?