-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
StreetComplete uses a lot of battery #1036
Comments
Is it the same if you disable GPS?
Am 29. April 2018 01:36:57 MESZ schrieb Pierre Rudloff <[email protected]>:
…Hello,
I am using a Fairphone 2 with Android 6.0.1. My battery is is 2-3 years
old and does not last very long but it is way worse when I'm using
StreetComplete 5.0. When I'm actively using the app, I lose ~30% of my
battery in 30 minutes.
At first I thought it was mostly due to the GPS, but I disabled
geolocation in Android settings and it still uses a lot of battery.
The strange thing it that in the battery report, most of the battery
usage is not attributed to StreetComplete but to "other usages":
![screenshot_20180428-160922](https://user-images.githubusercontent.com/840125/39401755-7cb8feee-4b4d-11e8-9714-813792bd55a6.png)
(You can see the battery dropping very quickly near the end, when I
started using StreetComplete.)
|
Yes, I tried to completely disable geolocation and it still uses a lot of battery. |
What is "autres utilisations" if you switch the smartphone to English? Did you try to google for what is behind this item? |
He said:
(and DeepL also translates it to "other applications") BTW, personally, I've never seen that entry in the Android battery usage – very strange it cannot attribute such a large amount of battery usage to an app. |
I asked not how one would translate it but how specifically it is translated in Android - so that one can google for it. |
It is called Miscellaneous in English. The detailed view contains some explanation: This article also has some useful explanations: https://medium.com/@dotandroid911/what-is-miscellaneous-battery-drain-in-android-how-to-fix-it-d6eb9035e513 |
Phew, okay. I thought that the battery stats would be smarter. I.e. monitor the CPU usage of apps and calculate the battery usage of these apps based on that, etc. Anyhow, this leaves us (me) with no clue where this might be coming from. It is possible to monitor CPU usage with Android studio, might do that, but I don't think I will see any surprises. |
Is it possible that it was happening in area with poor network connection? I never encountered it, but some people claimed to notice extreme battery consumption with phone attempting to use low quality or missing network connection (constant reconnecting). It would fit that battery consumption was not attributed directly to Street implemented. |
I already encountered the behavior you are talking about, but here it happened in a city with a good 4G signal. I could reproduce the issue several times in the past days, it clearly happens when I'm using StreetComplete, the battery starts draining very fast (almost 1% per minute) and it stops when I kill the app. |
Also if it is in the background?
Am 30. April 2018 10:56:49 MESZ schrieb Pierre Rudloff <[email protected]>:
…I already encountered the behavior you are talking about, but here it
happened in a city with a good 4G signal.
I could reproduce the issue several times in the past days, it clearly
happens when I'm using StreetComplete, the battery starts draining very
fast (almost 1% per minute) and it stops when I kill the app.
|
No, only if the app is in the foreground I think. Edit: I also tried to uninstall/reinstall the app and I can still reproduce the issue. Edit 2: Actually, it uses less battery (but still a lot). |
I can reproduce it. It seems to be caused by the compass on the upper right corner. Will investigate. |
Good that the fairphone battery are out of stock. Otherwise i would have ordered a new one already :) |
It looks like looking for the compass was a red herring. It is true that while the map is shown, even if not moved, rotated etc, 10% CPU is used continuously (as opposed to i.e. 0% when in the settings screen), so I guess this could be the reason for the battery drain. However, even if the compass is never updated, it changes nothing. |
fixed |
Thanks a lot for investigating this! |
Could you push an update to play store? :) |
In #1041 (comment) @westnordost said that he wanted to release an update today/tomorrow |
Hello,
I am using a Fairphone 2 with Android 6.0.1. My battery is is 2-3 years old and does not last very long but it is way worse when I'm using StreetComplete 5.0. When I'm actively using the app, I lose ~30% of my battery in 30 minutes.
At first I thought it was mostly due to the GPS, but I disabled geolocation in Android settings and it still uses a lot of battery.
The strange thing it that in the battery report, most of the battery usage is not attributed to StreetComplete but to "other usages":
(You can see the battery dropping very quickly near the end, when I started using StreetComplete.)
The text was updated successfully, but these errors were encountered: