-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Improve power usage by not trying to do stuff in background during flight mode #13008
Comments
Hi @SvenLieber - Since many of these issues are specific to not only specific Android OS versions, but many other variables (some which are unknown or we'd have addressed them can you share:
I completely believe you're experiencing this, but as a point of reference I do not on my Pixel 7 and I never charge it overnight either.
There really shouldn't be anything to upload if these are just media folders. Are there any queued up or processed items in the Uploads tab overnight? Since it's unclear what is triggering the usage, it would be potentially helpful to maybe gather logs from the device to see what it's constantly trying to do too (if you're able): https://github.com/nextcloud/android?tab=readme-ov-file#logs |
Hi @joshtrichards, my apologies for not including more context information. Because I used the enhancement issue template and not the one for bugs, I missed adding it.
For auto-upload I only have custom folders, because I started to use the SD card as default storage for WhatsApp and my Camera. Those folders weren't auto-detected after I moved them to the SD card (this also leaves me with a mixed photo/video destination folder for my camera, because the type of media is not something to select for custom-folders. Anyway, this is another problem). Other notable things:
Occasionally I also see the I'd love to gather logs, but unfortunately I don't have a suitable setup at the moment (no root privileges on phone nor computer). But I have a linux VM running in Hyper-V. I could try to run |
Currently, we collect the changed files all the time and only the upload process (which is independent) checks if the file is ready for upload. So we scan the file system regularly even when flight mode is active. |
Is your feature request related to a problem? Please describe.
There is a high battery usage by Nextcloud even when I am in flight mode. When I am already on a lower battery it can happen that the phone turns off at night and I don't even have an alarm in the morning which is frustrating. I am aware that there are obvious solutions which I also list below. But I still think that there could be also a technical solution in which the Nextcloud app behaves more smart.
Describe the solution you'd like
I am aware that I explicitly turned of the "power save check" in Nextcloud to let auto-upload work efficiently.
However, for moments when I (also explicitly) turn the phone into flight mode I would expect Nextcloud to be smart and "knowing" that there currently is no Internet and thus no reason to perform auto-uploading or other background tasks.
I am not an Android developer, so I don't know if it is technically possible to fix this issue.
But I would imagine some sort of check that Nextcloud only wakes up and tries to do uploads when the phone is not in flight mode.
Describe alternatives you've considered
Both technical solutions to manually turn on power saving and later torn it off again seem a bit overkill considering that this need to be done every time.
Additional context
I am aware that in the example shown in the following screenshot there is already a low battery. Something that some people might even consider a very low battery. But still, without active apps, a battery level of around 25% should be enough to survive the night if in flight mode.
The text was updated successfully, but these errors were encountered: