UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    GPS not working

    Scheduled Pinned Locked Moved Google Nexus 6P
    35 Posts 11 Posters 7.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • lgtrombettaL Offline
        lgtrombetta
        last edited by

        It used to be possible to get GPS location on the N6P but now it has been some time since it has last worked for me. I tried both stable and devel.

        Can anybody confirm whether it is currently working or not?

        R R 2 Replies Last reply Reply Quote 0
        • R Offline
          rocket2nfinity @lgtrombetta
          last edited by

          @lgtrombetta It's currently working for me on Devel.

          lgtrombettaL 1 Reply Last reply Reply Quote 0
          • lgtrombettaL Offline
            lgtrombetta @rocket2nfinity
            last edited by

            @rocket2nfinity any suggestions on what to try?

            R 2 Replies Last reply Reply Quote 0
            • R Offline
              rocket2nfinity @lgtrombetta
              last edited by rocket2nfinity

              @lgtrombetta Install the SensorStatus app from the app store to find out what sensors are working. Or in terminal type: test_gps

              Either will tell you if it's a hardware issue - i.e. sensors not reading

              1 Reply Last reply Reply Quote 0
              • R Offline
                rocket2nfinity @lgtrombetta
                last edited by

                @lgtrombetta There is an intermittent bug with the N6P that causes occasional sensor crashes. Rebooting usually fixes it. The cause for it has not yet been determined.

                lgtrombettaL 1 Reply Last reply Reply Quote 0
                • lgtrombettaL Offline
                  lgtrombetta @rocket2nfinity
                  last edited by

                  @rocket2nfinity

                  Sensor status shows no error but no reading either. No matter how long I wait, it remains stuck as this:

                  fdd54d30-915b-4f49-a3eb-8390f4164148-image.png

                  On the other hand, the output of test_gps is the following:

                  *** setup signal handler
                  *** get gps interface
                  *** device info
                   id = gps
                   name = loc_api GPS Module
                   author = Qualcomm USA, Inc.
                  *** init gps interface
                   ** Creating thread: 'Loc_hal_worker' (start=0x738aee8e68, arg=0xd29d30)
                   ** After thread_create: 'Loc_hal_worker', error=0 (start=0x738aee8e68, arg=0xd29d30)
                   **** Thread wrapper start (start=0x738aee8e68, arg=0xd29d30) ****
                  library "libizat_api_pds.so" not found
                  *** setting positioning mode
                  *** start gps track
                  *** gps tracking started
                  *** tracking.... 
                   Diag_LSM_Init: Failed to open handle to diag driver, error = 13*** set capabilities
                  capability is 00000047
                  *** status callback
                  *** engine on
                  *** status callback
                  *** session begin
                  
                  R C 2 Replies Last reply Reply Quote 0
                  • R Offline
                    rocket2nfinity @lgtrombetta
                    last edited by

                    @lgtrombetta It seems you may be missing a driver. But @Flohack would know better than I.

                    1 Reply Last reply Reply Quote 0
                    • flohackF Offline
                      flohack
                      last edited by

                      There canΒ΄t be a driver missing, since otherwise it would not work for anyone. I personally did not have this issue on my device so far, but it seems that from time to time sensors stack crashes or does other funky things. Does rotation light sensor etc work for you?

                      My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                      lgtrombettaL 1 Reply Last reply Reply Quote 0
                      • lgtrombettaL Offline
                        lgtrombetta @flohack
                        last edited by

                        @flohack Rotation works, light sensor works.

                        Later today I might try to reinstall everything from scratch to see if it helps. On the way maybe I can check if GPS works on android to rule out a hardware issue.

                        lgtrombettaL 1 Reply Last reply Reply Quote 0
                        • lgtrombettaL Offline
                          lgtrombetta @lgtrombetta
                          last edited by lgtrombetta

                          So apparently the GPS works now, it just takes a loooong time to get a fix, which makes it unusable in practice. Specially since you need to keep the screen on and the app focused while you wait. My experience wasn't like this a few months back when I first tried UT on the NP6... how is it for you guys?

                          I don't know if it had any effect, but I did a complete reinstall from scratch. I first tried the GPS on android and it took circa 30 mins to get a fix. Then on fresh UT it was more like 20-25 mins. Finally I restored my backed-up userdata and it also worked after some 20 mins. Once there was a first fix, other apps were able to almost immediately (~ 1 min) get location info. Although maybe this was cached info or something?

                          Btw, the warnings/errors in the output of test_gps that I reported a few days back are still present, so they seem to be harmless.

                          flohackF cowboyaxeC 2 Replies Last reply Reply Quote 0
                          • C Offline
                            cliffcoggin
                            last edited by

                            If the first fix on Android took 30 minutes, while first fix on UT took only 20, that sounds like an improvement. From my own experience with a Nexus 5 and from what I read here your first fix times are normal.

                            1 Reply Last reply Reply Quote 0
                            • flohackF Offline
                              flohack @lgtrombetta
                              last edited by

                              @lgtrombetta Thats definitely still too long. I normally get a fix under 2 mins on coldboot, later on during seconds...

                              My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                              arubislanderA 1 Reply Last reply Reply Quote 0
                              • arubislanderA Online
                                arubislander @flohack
                                last edited by

                                @flohack Maybe the difference in time to a fix is due to the difference in geographic location? The time to a fix was similar on Android and UT for this user.

                                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                Happily running Ubuntu Touch
                                Google Pixel 3a (20.04 DEV)
                                JingPad (24.04 preview)
                                Meizu Pro 5 (16.04 DEV)

                                1 Reply Last reply Reply Quote 0
                                • lgtrombettaL Offline
                                  lgtrombetta
                                  last edited by

                                  I've been doing some more testing:

                                  After many reboot and test cycles the TTFF has been improving. Now it is more in the order of 5 to 10 mins.

                                  Occasionally, after reboot it would not get a fix at all (waiting at least 30+ mins), with the only solution being a reboot. Maybe related to the bug mentioned by @rocket2nfinity ?

                                  I also tested getting location this morning, having had a successful fix last night and no reboot in between. It only took 2 mins.

                                  To give some more context: I haven't used the GPS much since my initial testing of this port in August (staying at home and all). At the time it worked well as @Flohack described. Recently I tried it again a few times and it was not working (hence my original post). Now I see that after many attempts it is sort of "warming up" and performing better. This is pure speculation from my part, but I suspect there is some kind of caching that helps the GPS get subsequent first fixes faster. Over time, if not used frequently, this information becomes outdated. Maybe this is why there is such thing as AGPS? (which, as far as I understand, is not available in UT).

                                  Anyway, I don't think there is much more to do here. Maybe we should mark this as "solved". Thanks everyone!

                                  I will keep doing some more tests. I'd be happy to help testing if there are any projects that aim to improve the overall performance of GPS on UT.

                                  R 1 Reply Last reply Reply Quote 1
                                  • R Offline
                                    rocket2nfinity @lgtrombetta
                                    last edited by

                                    @lgtrombetta That is indeed what A-GPS is for.

                                    1 Reply Last reply Reply Quote 0
                                    • flohackF Offline
                                      flohack
                                      last edited by

                                      Its still very strange, tested a few occasions now, I usually have only 10secs to fix πŸ˜‰

                                      My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                      P 1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        potet @flohack
                                        last edited by

                                        Mine didn't use to work, but now it's pretty reliable. I once made it connect this summer, no luck since before last week. I changed the battery and kept the GPS open for a while, and suddenly it's working.

                                        Did it learn where to look after randomly finding a signal twice? Did I accidentaly push the antenna back into place when changing the battery somehow? Was there a change on the devel channel that made the difference?

                                        I don't know, but it didn't work at all, and now it does.

                                        flohackF 1 Reply Last reply Reply Quote 0
                                        • flohackF Offline
                                          flohack @potet
                                          last edited by

                                          @potet There was no change in software I would say. We use the android container for GPS, so we have 0 influence on what it does ^^ and after a reboot it takes longer to get a fix, so try to keep your device running when possible, that should make future locks faster.

                                          Not that when you close an app with location, GPS will stop so it looses track of all satellites. Thats a privacy feature ^^

                                          My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                          P lgtrombettaL C 3 Replies Last reply Reply Quote 1
                                          • P Offline
                                            potet @flohack
                                            last edited by

                                            @flohack It's quick to reconnect even after reboots now, while earlier I could never make it work at all. So there is truly something that has snapped into place the device.

                                            Not much help for those experiencing problems though - sorry I don't have anything more valuable to add based on my experience!

                                            1 Reply Last reply Reply Quote 0
                                            • lgtrombettaL Offline
                                              lgtrombetta @flohack
                                              last edited by

                                              @flohack said in GPS not working:

                                              Not that when you close an app with location, GPS will stop so it looses track of all satellites. Thats a privacy feature ^^

                                              About that... it can also be an anti-feature, for instance for the purpose of tracking your sport activities. This point has already been raised before, for example here: https://github.com/ubports/ubuntu-touch/issues/1067

                                              1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post