ubports-oneplus6 / documentation

Documentation on Ubports / Halium for Enchilada / Fajita
21 stars 3 forks source link

GPS not working [Solved] #15

Open magdesign opened 3 years ago

magdesign commented 3 years ago

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.

MrCyjaneK commented 3 years ago

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

ljrichards1066 commented 3 years ago

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

MrCyjaneK commented 3 years ago

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

MrCyjaneK commented 3 years ago

currently gps is not even working under waydroid

magdesign commented 3 years ago

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.

MrCyjaneK commented 3 years ago

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

magdesign commented 3 years ago

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 commented 2 years ago

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.....