documentation icon indicating copy to clipboard operation
documentation copied to clipboard

GPS not working [Solved]

Open magdesign opened this issue 4 years ago • 8 comments

Device: Oneplus 6 (A6003) OS: Ubuntu 16.04 (2021-07-31/2) stable channel

Apps using GPS are not finding GPS at all, even after leaving them open for a full day. In terminal, after entering test_gps

I get:

*** setup signal handler ***
*** get gps interface ***
GPS interface not found :(
Bye!

Location detection is on, also tried with wifi enabled and disabled and with switching to RC channel... nothing did help.

Do I need to install a GPS driver or something? Any help very welcome.

magdesign avatar Aug 11 '21 09:08 magdesign

It's also not working on droidian, however it worked some time ago on ut, back in the days when we were using GSI...

MrCyjaneK avatar Aug 11 '21 11:08 MrCyjaneK

This also happens on my 6T. I can also confirm that, when i was using the GSI, the location services worked quickly and easily.

ljrichards1066 avatar Aug 11 '21 13:08 ljrichards1066

@erfanoabdi have you applied some patches to the systemimage/rootfs to make GPS work?

MrCyjaneK avatar Aug 11 '21 14:08 MrCyjaneK

currently gps is not even working under waydroid

MrCyjaneK avatar Aug 11 '21 14:08 MrCyjaneK

It seems to be working now ;-)

What I did:

sudo ubports-qa install xenial_-_locationbg this will remove libc-ares2 (dont know if this info is important)

Then enabled everything like location, mobile data, wifi... rebooted the phone several times... Going out for a few hours, check location with puremaps... voila.

magdesign avatar Aug 15 '21 15:08 magdesign

I'm wondering how I'll do that on droidian, lol ;p but good it works on ut

MrCyjaneK avatar Aug 15 '21 16:08 MrCyjaneK

Lets us know if you figure it out! Maybe digging in this pull request might lead you into a direction: https://gitlab.com/ubports/core/lomiri/-/merge_requests/6 https://forums.ubports.com/topic/6191/call-for-testing-background-location-updates?_=1629051082654&lang=en-US

magdesign avatar Aug 15 '21 18:08 magdesign

This workaround does not work anymore on OTA-21 or newer. When applying sudo ubports-qa install xenial_-_locationbg the phone will hang at kernel boot-screen... Therefore reopening the issue.....

magdesign avatar Feb 13 '22 10:02 magdesign