We have moved to a new Sailfish OS Forum. Please start new discussions there.
7

mozilla location service not present on 2.0.4/2.0.5

asked 2016-11-25 00:00:41 +0300

Fuzzillogic gravatar image

If I'm not mistaken, Mozilla Location Services are available as an alternative to Here's location services since SFOS 2.0.4. However, in the GPS settings on my J1 device, there is no mention what so ever of these MLS. Now that I've updated to 2.0.5 EA, still no trace.

Looking for relevant packages yields this:

Available       geoclue-provider-mlsdb-0.0.12-1.3.1.armv7hl     Geoinformation Service from Mozilla Location Services Database Provider
Available       geoclue-provider-mlsdb-0.0.12-1.3.1.source      Geoinformation Service from Mozilla Location Services Database Provider
Available       geoclue-provider-mlsdb-agreements-0.0.12-1.3.1.armv7hl  Mozilla Location Services privacy policy agreements
Available       geoclue-provider-mlsdb-data-au-0.0.12-1.3.1.armv7hl     Cell id to location data (.au)
Available       geoclue-provider-mlsdb-data-fi-0.0.12-1.3.1.armv7hl     Cell id to location data (.fi)
Available       geoclue-provider-mlsdb-data-in-0.0.12-1.3.1.armv7hl     Cell id to location data (.in)
Available       geoclue-provider-mlsdb-debugsource-0.0.12-1.3.1.armv7hl Debug sources for package geoclue-provider-mlsdb
Available       geoclue-provider-mlsdb-tool-0.0.12-1.3.1.armv7hl        Cell id to location database tool for geoclue-provider-mlsdb

As you can see, none is installed. What's wrong? Can I fix it?

edit retag flag offensive close delete

Comments

2

You can install it by: "devel-su pkcon install geoclue-provider-mlsdb geoclue-provider-mlsdb-agreements geoclue-provider-mlsdb-data-fi". I guess we forgot to modify the J1 pattern to ensure they're installed as part of the device upgrade.

chris.adams ( 2016-11-25 06:33:41 +0300 )edit

@chris.adams may be that, as happened here for location services, also bluetooth tethering does work on Jolla C but not in Jolla 1 because of missing installed packages?

See for example https://together.jolla.com/question/137132/bluetooth-tethering-jolla-c/

Thank you

c.la ( 2016-12-02 15:45:40 +0300 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2016-11-25 18:39:22 +0300

Fuzzillogic gravatar image

@chris.adams actually gave the answer. I've installed mls by pkcon install geoclue-provider-mlsdb. No devel-su needed, agreement package is included as dependency. I now have the MLS options available.

Unfortunately there's no offline db package for cell towers for the Netherlands available, so the default selected offline-only option would be quite useless here, I guess. I enabled the online option as well, and revoked the Here agreement. I didn't need to accept mls's agreement though.

edit flag offensive delete publish link more

Comments

2

You can generate data for the Netherlands manually on your own device, by using the geoclue-mlsdb-tool to generate the appropriate data file for the Netherlands based on the bounding box (see https://github.com/mer-hybris/geoclue-providers-mlsdb/blob/master/mlsdbtool/main.cpp#L442 - big thanks to community member Nokius for providing the bounding box data!) from a full cell export .csv from Mozilla (https://location.services.mozilla.com/downloads).

The data files should then be placed into the appropriate locations (i.e., /usr/share/geoclue-provider/mlsdb/nl/1..9/mlsdb.data, see the end of https://github.com/mer-hybris/geoclue-providers-mlsdb/blob/master/rpm/geoclue-providers-mlsdb.spec for similar examples for Finland and Australia and India).

(Alternatively, you might be able to ask Nokius on IRC to provide the data files for you, I believe he has them pre-generated, in a repo somewhere.)

You can then run the plugin with QT_LOGGING_RULES="*.debug=true" devel-su -p /usr/libexec/geoclue-mlsdb before opening your mapping application, to get detailed debug output from the plugin, to determine if the cell data was able to be used correctly.

In the future, we're planning to provide data for a variety of different countries to be downloaded from the official repositories, after selecting the regions via the Settings application; however discussions continue about how to do that properly (specifically, how to store the data and update it appropriately in the build infrastructure for releases, etc).

chris.adams ( 2016-11-29 09:31:57 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2016-11-25 00:00:41 +0300

Seen: 466 times

Last updated: Nov 25 '16