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

Release wake lock when not moving #254

Open
mjaakko opened this issue Sep 25, 2024 · 0 comments
Open

Release wake lock when not moving #254

mjaakko opened this issue Sep 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mjaakko
Copy link
Owner

mjaakko commented Sep 25, 2024

Currently the scanner service keeps a wake lock active even when not scanning. To reduce battery consumption, the wake lock could be released when scanning is paused and reacquired when scanning is started again. This should work at least when the significant motion sensor is used to detect movement as the sensor should be a wake-up sensor (i.e. works when a wake lock is not active): https://source.android.com/docs/core/interaction/sensors/sensor-types#significant_motion

@mjaakko mjaakko added the enhancement New feature or request label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant