GPS problem #282

Open
HendriXXX opened this Issue Oct 3, 2017 · 11 comments

Comments

4 participants
  • Device: Nexus 4 (mako)
  • Channel: Stable (rc, devel also)
  • Build: r1

Steps to reproduce

  1. try to get your location with any gps app

Expected behavoir

In few minutes you should be seeing coordinates or your location on map.

Actual behavior

Nothing happens. uNav and SensorsStatus shows instantly some strange location (lat. 65.2333, log. 25.3833) far away (~20km). I tried at balcony also, same result and no location updates.

Logfiles and additional information

When I run test_gps from terminal, I get location fix (cold start ~7min to fix, re-try ~30sec to fix) and if I open SensorsStatus right after fix, it shows location right and updates it.

uNav and web-browser shows also my real location IF I immediately switch from terminal to an app. In apps location updates when I'm moving. Sometimes it hangs to fake position and sometimes not.

Behavior is same with Wifi on or off.

Without test_gps running in backround:
nofix

test_gps running in terminal:
fix-testgps

SensorsStatus fix with test_gps running in backround:
fix-sensorsstatus

I tried to dig some related logs, but I didn't find any.

ernesst commented Oct 10, 2017

Unfortunatly, i cannot reproduce it with the latest devel image on a fresh install.

ernesst commented Oct 10, 2017

Did you replace some component inside the phone ? What version is your Nexus 4 - 8 or 16g ?

No, I havent touch inside anything else than battery. I replaced it year ago. Gps works with Canonical image. It is 16Gb version.

ernesst commented Oct 10, 2017

Look at these posts :
https://bugs.launchpad.net/ubuntu/+source/location-service/+bug/1368647
https://bugs.launchpad.net/touch-preview-images/+bug/1367884
https://wiki.ubuntu.com/Process/Merges/TestPlan/location-service#Forensics

Some log file are mentioned, try to pull some, i'll try to compare with mine (8 giga).

Between Canonical image and Ubports, did you flash the radio per chance ?

Ok. Thanks! I will try to find something useful from logs to compare. I didn't flash any new radio. I dont know if that Android 4.4.4 has anything to do it. I had that installed for a while between Canonical and Ubports.

HendriXXX commented Oct 21, 2017

I have been trying to solve this gps problem. I managed to get it work couple of times without "test_gps" running backround.
I did run "sudo service ubuntu-location-service status" command and it said service wasnt running so I started it and then GPS worked right away. But it worked only couple of times.

Ernesst, what is your baseband (modem,radio) version?
My version shows here.. M9615A-CEFWMAZM-2.0.1701.03
nexus4-fastboot

Today I try to gather some log info..
Can I change baseband somehow? Long time ago in Android- world I flashed some zip files from recovery when I wanted to try different modems. Is it possible in UT also?

I'm trying to get this phone to my wife, because she want's to try UBports. For she, GPS is a big "must work". She is tired of Android phones and any iphones arent even option for us!

HendriXXX commented Oct 21, 2017

I did some testing with uNAV:

  • Fresh reboot, phone NOT CONNECTED to computer by USB, 10min waiting and no gps fix.
  • Fresh reboot, phone NOT CONNECTED to computer by USB, "sudo /system/bin/logcat > UTLogcat.txt" running, 10min waiting and no gps fix. (see UTLogcat_without_computer.txt)
  • Fresh reboot, phone CONNECTED to computer by USB, 10min waiting and no gps fix.
  • Fresh reboot, phone CONNECTED to computer by USB, adb shell open and "sudo /system/bin/logcat > UTLogcat2.txt" running, 4min,16sec waiting and it had GPS fix. (see UTLogcat_with_computer.txt)

I can reproduce this behavior every time. It is strange why it behaves like this. I'm not any programmer so this goes way over my head..

I found that in this case, GPS did not get more that 1 space vehicles (satellites) ever..
V/LocSvc_api_v02( 892): V/locClientHandleSatReportInd:649]: len = 2568 , altitude assumed = 0, num SV's = 1 validity = 1
UTLogcat_without_computer.txt

In here 22 space vehicles in short time.. in 92seconds.
V/LocSvc_ApiV02( 893): V/void LocApiV02::reportSv(const qmiLocEventGnssSvInfoIndMsgT_v02*):1806]: num of sv = 22
UTLogcat_with_computer.txt

However, it is not possible to get fix again without reboot. Logcat says that same story as "UTLogcat_without_computer.txt"

Hope this helps, I try to get more info later..

Seems like problem is solved for now. I flashed older radio firmware (M9615A-CEFWMAZM-2.0.1700.84) and now gps works good. I extracted it from 4.3 Android factory image.
First phone to the fastboot mode and then I run "fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.84.img"

ernesst commented Oct 22, 2017

@HendriXXX Well done.
I've the same baseband than you the 1700.84.

@NeoTheThird @Flohack74 , Would it be possible to add a note on the Ubports Nexus 4 page ?

Owner

NeoTheThird commented Oct 23, 2017

@ernesst What do you want the note to say?

ernesst commented Oct 23, 2017

I would add a note like :

  • GPS performance is optimal with the radio firmware M9615A-CEFWMAZM-2.0.1700.84

What do you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment