Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumes excessive amount of battery when no system location lock #1813

Open
TinfoilSubmarine opened this issue Aug 27, 2024 · 4 comments
Open
Assignees

Comments

@TinfoilSubmarine
Copy link

  • App build number: 420500014
  • Android version: 14
  • Device: Google Pixel 5
  • Installation source: F-Droid

I'm seeing this issue intermittently with microG since MLS stopped working. When I'm somewhere where I can't get a lock from cached WiFi/cell tower or GPS, Owntracks continually requests location and uses tons of battery.

@TinfoilSubmarine

This comment was marked as resolved.

@owntracks owntracks deleted a comment Aug 27, 2024
@growse
Copy link
Collaborator

growse commented Sep 23, 2024

Difficult to know if this is a microG issue or the way in which OT is calling the Aosp Locationmanager:

https://github.com/owntracks/android/blob/master/project/app/src/oss/java/org/owntracks/android/location/AospLocationProviderClient.kt#L34 is the bit where the location source is selected, and it uses GPS when in "HighPriority" (ie, Move) mode, and all three of "FUSED", "NETWORK" & "PASSIVE" otherwise.

It could be that setting up three location requests is not the right thing to be doing here, and that just using FUSED is maybe better?

I'll have a think about how this could be toggled at runtime to make for easier testing.

@growse growse self-assigned this Sep 23, 2024
@kri164
Copy link

kri164 commented Oct 9, 2024

You can try to install Unified Nlp providers to see what happens.

Local NLP Backend
Local GSM Location
NominatimNlpBackend

You can also start to grab geo data for possible Mozilla LS successor
NeoStumbler

@TinfoilSubmarine
Copy link
Author

You can try to install Unified Nlp providers to see what happens.

Local NLP Backend Local GSM Location NominatimNlpBackend

Note that these no longer work since v0.2.28.231657.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants