SOLVED uNav GPS not working
AppLee last edited by
On android I don't trust the OS with my location.
But UT doesn't use this information when you don't need it and GPS being passive it's not a threat for me.
@AppLee this is why I said it "gives you the feeling of".
Yea I'm going to keep it enabled. Thanks for your support.
After some time I am still in love with this wonderful OS. It has even got better and better since the last updates and newest apps.
I have GPS enabled ever since @AppLee told me to.
But only a couple of times GPS worked and I was able to navigate using the phone. Since the last months I was not even able to get my position a single time. This is really frustrating as it is the only thing left from enabling me to use this system only without any Android backup phone..
I can lay the phone outside on a table for 20 mins or take a walk for 20 min but I get no GPS position in neither on of the apps available. It would be awesome to find a way so that I could rely on navigation. When I travel and need to find certain place I can not wait for 30 minutes until GPS is working...
test_gpsis printing a lot of information continuously but I do not understand it. Should I post the output here?
Thanks for your support.
orked and I was able to navigate using the phone. Since the last months I was not even able to get my position a single time. This is really frustrating as it is the only thing left from enabling me to use this system only without any Android backup phone..
No please dont post the output. You can check there if it prints a valid longitude/latitude after some time.
Is your device second-hand? Some devices loose goot contact with the GPS antenna over time, this might need to be readjusted. Ubuntu Touch cannot do much about it, we take the GPS coordinates from the Android service. So its probably a problem with your hardware, sorry too say.
@flohack Thanks for you kind answer, but how should I know what valid/invalid data looks like?
Whats the difference between
*** location callbackand
*** location callbackprovides a latitude, magnitude and an accuracy of 10.000.
Its prints some coordinates. Sometimes the
nmea (nr):rows have some empty fields
,,but not always.
jOHn sILVEr last edited by jOHn sILVEr
with my 2 N5 it is exactly the same... if I install LineageOS ( https://sourceforge.net/projects/hammerhead-lineageos/files/17.1/ ) both work fine ( only with GPS ) ...
( with Ubuntu ) if it has found the location it goes faster afterwards. But when you restart the device, the whole procedure starts again...
@manjushri thanks for your feedback.
May I ask how long it takes to initially get your location on these devices and where/how you place them to find it?
Are there devices that are known to have a quicker GPS localization?
I love this OS so much and it would be awesome to find a solution I could rely on. Thanks for your help.
I was able to run
test_gpsand see changes in my position while walking outside in less then 5 min.
I start to feel like I have a different problem with my OP1. I do not know if they are related but to sum up:
- rotation does not spin the display (even though lock is disabled) which worked before
- SensorStatus App is not able to access any of the sensors available on my device, some worked before
@jimmypesto Yes Oneplus 1 has a bug that the Android sensor API crashes from time to time, so you wont have any rotation, light, proximity etc sensors working. Very annoying but hard to fix.
You may want to wait for a few weeks as we are finishing the port for the Android 7.1 base, that might be more stable.
Regarding GPS, it could be a similar issue, but not sure. GPS is independent from sensors API
@flohack You guys are doing awesome. Thanks for the info. Just donated to this project again.
Do you know the difference of how test_gps gets sensor data to the way apps do? Because I was able to somehow proof that test_gps seems to work.
jOHn sILVEr last edited by
you're welcome, I do not have an optimal location, hills and mountains , but it works. Put the device outside on a wooden post. The first time takes 10-25min with my devices....
then 2-3 min ... the better the reception the faster... but if I uNav a few days not use it needs again 10-25min or it finds nothing more, then only helps to reinstall the app ... so I have already installed 4 times LineageOS to see if it works, it always worked fine even over time ( only GPS ) .
possibly this is also a possibility, had a friend of mine ... https://www.youtube.com/watch?v=CvIiNXf-NKo
@manjushri at least it sounds like a nice location besides hills and mountains
Nice thanks for that info's! I will give it a new try after reinstalling uNav.
@jimmypesto its fed into Qt location API via a custom Qt module and the platform API which in turn tries to get Androids location API. But that part did not change for a long time, I dont see a reason why test_gps would work, but location wouldnt, tbh. So I am out of ideas ^^
@flohack I see.
I will need to setup a fresh system I guess.
Initially I did a full factory reset on the phone. After installling Pure Maps again it did not Work. It was not even listed in the GPS settings. Also SensorStatus and uNav failed to access GPS.
I then decided to install the full system again with the awesome UBports Installer. Initially I wasnt sure how to do so as I found no documentation without running Android on the phone. But it was as easy as expected. I enabled Dev.-Mode from the phones system settings, started the installer and booted into recovery ...
I went back to the
stablerelease to be save.
SensorStatus does not longer print any errors in the GPS tab. Still none of the other sensor tabs is able to provide data. Also the screen rotation feature is not working. What should I do about this?
BUT within less then 10 min. I had a valid GPS position in Pure Maps! Awesome!
I will do futher tests in the next days.
jOHn sILVEr last edited by
so, I have my 2 devices 3 days ago freshly installed, 1x rc - channel and 1x devel ( wipe, bootstrap and format system part. , with installer 0.8.2-beta ) since then runs uNav on both devices well, the first start about 7-10 minutes then 1-2 minutes and location is detected ... hope it stays like this...
Yes I can confirm again the first fix is done in less then 10 min and afterwards its even faster!
A fresh installation after over one year of usage was a good idea.
Rotation sensor started to work too. Within SensorStatus and display rotation. Awesome!
How can I mark this as solved? Sry I am blind...
Lakotaubp last edited by
@JimmyPesto Topic Tools (cog wheel, bottom right) ask as question, then mark as solved. Any problems let me know.