Testing GPS
#1
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.
You can find me on IRC, Discord and Twitter


  Reply
#2
Unav works, but PureMaps is unable to detect my locatiion.
  Reply
#3
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 ?
  Reply
#4
Thank You! That worked for me.
PureMaps needed some Token like from Mapbox.
But Yes. My PinePhone BH now supports GPs on UT.
Great.
  Reply
#5
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
  Reply
#6
(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
  Reply
#7
(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.
  Reply
#8
(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)?
You can find me on IRC, Discord and Twitter


  Reply
#9
(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.
  Reply
#10
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
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Testing Crust Deep-sleep Luke 53 80,246 08-06-2020, 11:10 AM
Last Post: erikinkinen
  Testing and Donating jmasters 2 4,575 06-30-2020, 11:32 PM
Last Post: jmasters

Forum Jump:


Users browsing this thread: 4 Guest(s)