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

Configurable "low battery" threshold #182

Open
ianrenton opened this Issue Mar 2, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@ianrenton
Contributor

ianrenton commented Mar 2, 2017

Could you make the battery threshold at which OnoSendai stops background syncing configurable? My phone is unusual, granted, but for me the current default (30%) is about a full day's normal use!

@ianrenton

This comment has been minimized.

Show comment
Hide comment
@ianrenton

ianrenton Mar 3, 2017

Contributor

(Or if possible honour the device's power saving mode setting, but i don't know if that's core Android functionality or a vendor added thing, and if core, what API level.)

Contributor

ianrenton commented Mar 3, 2017

(Or if possible honour the device's power saving mode setting, but i don't know if that's core Android functionality or a vendor added thing, and if core, what API level.)

@haku

This comment has been minimized.

Show comment
Hide comment
@haku

haku Mar 4, 2017

Owner

Hehe, I wondered if this would be requested. The 30% has been hard coded for years, I just made it much more visible. :)
I will have a think and come up with something.
Not sure which device power settings you are referring. As far as I know, there are no settings that apps get any choice about. If they get energy-saved, they can't really avoid it.

Owner

haku commented Mar 4, 2017

Hehe, I wondered if this would be requested. The 30% has been hard coded for years, I just made it much more visible. :)
I will have a think and come up with something.
Not sure which device power settings you are referring. As far as I know, there are no settings that apps get any choice about. If they get energy-saved, they can't really avoid it.

@ianrenton

This comment has been minimized.

Show comment
Hide comment
@ianrenton

ianrenton Mar 4, 2017

Contributor

I meant settings like this that automatically turn on a device-wide power saving mode when you reach a certain battery level:

samsung-galaxy-s6-ultra-power-saving-mode-e1428611548386-640x386

But like I said, I have a suspicion that these features are vendor-specific.

Contributor

ianrenton commented Mar 4, 2017

I meant settings like this that automatically turn on a device-wide power saving mode when you reach a certain battery level:

samsung-galaxy-s6-ultra-power-saving-mode-e1428611548386-640x386

But like I said, I have a suspicion that these features are vendor-specific.

@haku

This comment has been minimized.

Show comment
Hide comment
@haku

haku Mar 28, 2017

Owner

Sorry for taking aaaages to do this. The code is in but barely tested at all.

That OS "power saving" is a recent android addition, 6+ I think. Basically it reduces the frequency at which "alarms" (wot android calls cron entries) fire. OS always tries wakes up every 15 min but then only does stuff if needed. The OS low power thing means that it does almost nothing at each wakeup, making them effectively irreverent (they last less than a second).

Owner

haku commented Mar 28, 2017

Sorry for taking aaaages to do this. The code is in but barely tested at all.

That OS "power saving" is a recent android addition, 6+ I think. Basically it reduces the frequency at which "alarms" (wot android calls cron entries) fire. OS always tries wakes up every 15 min but then only does stuff if needed. The OS low power thing means that it does almost nothing at each wakeup, making them effectively irreverent (they last less than a second).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment