barbeau / gpstest

The #1 open-source Android GNSS/GPS test program
Apache License 2.0
1.74k stars 361 forks source link

[Feature Request] (optionaly) disable background service on low battery / when energy saver kicks in #650

Open ChristianTacke opened 1 year ago

ChristianTacke commented 1 year ago

Is your feature request related to a problem? Please describe. I have enabled the "Run GNSS in background" option and sometimes forget to terminate the app (and the background measurements). This drains the battery somewhat and finally my battery is quite low.

Describe the solution you'd like When my battery reaches 30% (my setting), the device automatically enters energy saver mode. It would be great, if gpstest would disable/stop the background measurements at that time to save energy.

Describe alternatives you've considered

Additional context Version: 3.10.2 OS: LineageOS 19.1

stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

barbeau commented 8 months ago

Not stale

gdt commented 5 months ago

This makes sense, and I vote for "disable background service in energy saver mode" with no config.

ChristianTacke commented 5 months ago

This makes sense, and I vote for "disable background service in energy saver mode" with no config.

I don't really care, whether there is a config option or not. I added the "(optionaly)" to the title for the case that somebody thinks that this should be configurable.

In reality the energy saver mode setting itself is probably the "config option"? If you want to not save energy… well… disable the energy saver mode.