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

Automatically pause scanning on low battery #307

Open
mjaakko opened this issue Nov 3, 2024 · 6 comments
Open

Automatically pause scanning on low battery #307

mjaakko opened this issue Nov 3, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@mjaakko
Copy link
Owner

mjaakko commented Nov 3, 2024

When the battery level is critically low, the user most likely has more important use for the remaining battery than scanning networks

This feature should be enabled by default, but be configurable in the settings

@mjaakko mjaakko added the enhancement New feature or request label Nov 3, 2024
@realeatham
Copy link

How low is critically low?

@mjaakko
Copy link
Owner Author

mjaakko commented Nov 4, 2024

How low is critically low?

I was thinking of using BATTERY_LOW broadcast for this

https://developer.android.com/reference/android/content/Intent#ACTION_BATTERY_LOW

@realeatham
Copy link

Ah so 15%

@realeatham
Copy link

You should make it configurable if it isn't too much work

@andrewkolda
Copy link

andrewkolda commented Jan 13, 2025

Nice thing about the intent is you dont have to check the battery, saving work. Would using the power saver mode intent be good for y'all? You can set power save mode to whatever % and then the behavior would be congruous with the rest of your system as well

@mjaakko
Copy link
Owner Author

mjaakko commented Jan 17, 2025

Nice thing about the intent is you dont have to check the battery, saving work. Would using the power saver mode intent be good for y'all? You can set power save mode to whatever % and then the behavior would be congruous with the rest of your system as well

The problem with power saving mode is that it can also be enabled in other situations than low battery, e.g. some devices have routines to automatically turn on power saving mode at night. This could also be beneficial in some cases, but I think it would be better to have another option separate from low battery for pausing scanning in power saving mode

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

3 participants