PINE64
Testing GPS - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: UBPorts on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=125)
+---- Thread: Testing GPS (/showthread.php?tid=9886)

Pages: 1 2 3 4 5 6


Testing GPS - Luke - 05-18-2020

Here are the steps to enable and help testing GPS on Ubuntu Touch.

I strongly suggest you open SSH first:

Code:
sudo mount -o rw,remount /
sudo umount /etc/init/ssh.override
sudo rm /etc/init/ssh.override
sudo start ssh


Step 1)
You need to be using OTA version 27 (May 17th) or newer. You should be on devel channel.

Step 2)
Fetch uNav and Pure Maps from OpenStore

Step 3)
Mount the volume so its rewritable

Code:
sudo mount -o rw,remount /


Step 4)
Install gpsd

Code:
sudo ubports-qa install xenial_-_edge_-_gpsd


Step 5)
Start GPS + some magic
Code:
sudo gpsd start
sudo restart ubuntu-location-service
initctl unset-env --global UBUNTU_PLATFORM_API_BACKEND
initctl set-env --global UBUNTU_PLATFORM_API_BACKEND=touch_mirclient

Step 6)
Open uNav and request it to fetch your location.


Report issues, fixes, ideas and everything else related to the topic of location services on Ubuntu Touch in this thread.


RE: Testing GPS - afigegoznaet - 05-19-2020

Unav works, but PureMaps is unable to detect my locatiion.


RE: Testing GPS - drpi - 05-19-2020

OTA 28 here (no update found today)

PureMaps and uNav crash immediately when requesting GPS position.
This means PureMaps is unusable now since it remembers the GPS position request state and crashes immediately after start.

Switching GPS off in the GUI does not solve the problem. PureMaps and uNav still crash.

Where can I find logs to give details ?


RE: Testing GPS - Dedik - 05-19-2020

Thank You! That worked for me.
PureMaps needed some Token like from Mapbox.
But Yes. My PinePhone BH now supports GPs on UT.
Great.


RE: Testing GPS - afigegoznaet - 05-19-2020

GPS only works until the next reboot.
After the reboot I need to reset UBUNTU_PLATFORM_API_BACKEND, and restart GPS service.
I guess, this should be pretty easy to set to run at startup


RE: Testing GPS - colin hodsdon - 05-19-2020

(05-19-2020, 10:20 AM)Dedik Wrote: Thank You! That worked for me.
PureMaps needed some Token like from Mapbox.
But Yes. Its the next functionality.
Great.

if you look at their app when you install it , expand the write up,and it will explain whats needed, just to help keep it free mainly


RE: Testing GPS - Dedik - 05-19-2020

(05-19-2020, 12:18 PM)colinĀ hodsdon Wrote:
(05-19-2020, 10:20 AM)Dedik Wrote: Thank You! That worked for me.
PureMaps needed some Token like from Mapbox.
But Yes. Its the next functionality.
Great.

if you look at their app when you install it , expand the write up,and it will explain whats needed, just to help keep it free mainly

This all is testing.
You are shurely right to have a strange look at your apps.


RE: Testing GPS - Luke - 05-19-2020

(05-19-2020, 10:20 AM)Dedik Wrote: Thank You! That worked for me.
PureMaps needed some Token like from Mapbox.
But Yes. My PinePhone BH now supports GPs on UT.
Great.

Did it work multiple times in a row (without a reboot)?


RE: Testing GPS - Dedik - 05-19-2020

(05-19-2020, 12:03 PM)afigegoznaet Wrote: GPS only works until the next reboot.
After the reboot I need to reset UBUNTU_PLATFORM_API_BACKEND, and restart GPS service.
I guess, this should be pretty easy to set to run at startup

You are right after reboot, its gone.


RE: Testing GPS - afigegoznaet - 05-19-2020

The UBUNTU_PLATFORM_API_BACKEND can be edited in unity8 files in /usr/share/upstart/sessions; I edited both unity8.conf and unity8.override, but possibly just one would suffice.
The gps daemon still needs a restart