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

GPS never powers off #266

Open
dodoradio opened this issue Aug 12, 2023 · 0 comments
Open

GPS never powers off #266

dodoradio opened this issue Aug 12, 2023 · 0 comments

Comments

@dodoradio
Copy link
Contributor

Describe the bug
GPS never powers off after being powered on, which causes excessive battery drain until the device is rebooted. This makes GPS very inconvenient to use

To reproduce
Steps to reproduce the behavior:

  1. Open a GPS enabled app (asteroid-gps, asteroid-map)
  2. Close the app
  3. Watch as your battery drains in real time even after the GPS enabled app has been closed

Expected behavior
GPS module should power off after use.

Additional context
It seems this should be handled by geoclue-hybris, at least by default. It does have cleanup procedures tied to clients (apps) disconnecting from dbus (eg. when they close).

For whatever reason, these cleanup methods are never called, and @MagneFire has suggested that this is linked with AsteroidOS/asteroid-launcher#163 - the proposed explanation is: since the app crashes without properly disconnecting from geoclue-hybris, geoclue-hybris is not made aware that the GPS module is no longer needed and doesn't run the cleanup procedure.

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

1 participant