# Android app consumes too much battery when IDLE

**URL:** https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954
**Category:** Android
**Created:** [June 14, 2017, 7:05pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954 "2017-06-14T19:05:10Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Ian1](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/ebca7d/32.png) [@Ian1](https://forum.syncthing.net/u/Ian1)
#### Post date: [June 14, 2017, 7:05pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/1 "2017-06-14T19:05:10Z")

</div>

There is an issue opened since 2015 on battery usage: [High Power Consumption · Issue #368 · syncthing/syncthing-android · GitHub](https://github.com/syncthing/syncthing-android/issues/368)

I believe there is a factor 4X in improvement possible for IDLE power consuption. If we could reach a factor 2X it would already mean we can use the app. Otherwise it is consuming way too much (see attached pic) Battery is really critical for smartphone, if I have to let my phone plug to a wall…this is a regular PC…not a phone 😃

I have tried the latest version of Syncthing (not my compile;) ), on samsung galaxy a3 2017 android 6.0.1. Interestingely Samsung is providing a profiling of the Syncthing app over time. Which shows a huge increase of consumsion after 2 Hours. The phone keeps on saying we have to “optimise” the app, means shut it down after 1 hour;)

In short , users are prety much invited not to use syncthing, which is a problem I believe. Please note that I have NO folder synchtonised, Syncthing is just supposed to be sitting IDLE. An app like whatsapp that I use all the time consume 7%. And Syncthing IDLE consume 27% of my batterie in the same time ☹

QUESTION: a) What could make this huge increase in power used after 2 hours b)Is iddle power used by syncthing service or android java ap? c)If it is the service, could we stop and restart it every hour for example as a workaround ?

---

<div class="post-metadata">

### Author: ![Ian1](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/ebca7d/32.png) [@Ian1](https://forum.syncthing.net/u/Ian1)
#### Post date: [June 14, 2017, 7:06pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/2 "2017-06-14T19:06:50Z")

</div>

Pictures of consuption of batterie, without any folder synchronised :

: [https://user-images.githubusercontent.com/26340942/26892358-533ccd56-4bb8-11e7-87bf-6b671d1d73c9.png](https://user-images.githubusercontent.com/26340942/26892358-533ccd56-4bb8-11e7-87bf-6b671d1d73c9.png)

---

<div class="post-metadata">

### Author: ![Ian1](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/ebca7d/32.png) [@Ian1](https://forum.syncthing.net/u/Ian1)
#### Post date: [June 14, 2017, 7:07pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/3 "2017-06-14T19:07:35Z")

</div>

![](https://forum-uploads.syncthingcdn.net/original/2X/2/25b44e4d8d2739eec6b9907992e33467ed661979.png)

---

<div class="post-metadata">

### Author: ![Ian1](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/ebca7d/32.png) [@Ian1](https://forum.syncthing.net/u/Ian1)
#### Post date: [July 10, 2017, 6:36pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/4 "2017-07-10T18:36:05Z")

</div>

Anyone is experiencing the same problem on the forum ?

---

<div class="post-metadata">

### Author: ![nicuh](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/n/7c8e57/32.png) [@nicuh](https://forum.syncthing.net/u/nicuh)
#### Post date: [August 13, 2017, 7:27am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/5 "2017-08-13T07:27:55Z")

</div>

Hi @Ian1,

I had a similar issue but on Android 7.0. I just posted the solution on [https://github.com/syncthing/syncthing-android/issues/368](https://github.com/syncthing/syncthing-android/issues/368).

Not sure if will work for you but it worth a try.

---

<div class="post-metadata">

### Author: ![totoba](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/b38774/32.png) [@totoba](https://forum.syncthing.net/u/totoba)
#### Post date: [August 23, 2017, 10:16pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/6 "2017-08-23T22:16:28Z")

</div>

The one issue that causes battery drain is file syncing errors. When syncthing encounters errors, it keeps trying these files forever very frequently therefor causing a lot of battery usage. This is most ot the time not user fault but some sync related issue.

I realized this causality when I moved from the gui app to arm compiled version in terminal (like termux) where I could see the logs. Trying to fix these sync issues (like ignoring, deleting troubling files etc) massively decrease the cpu use.

Also syncthing client can get very chatty with other clients, which in my opinion is the another battery sucking “feature” of syncthing.

---

<div class="post-metadata">

### Author: ![Ian1](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/ebca7d/32.png) [@Ian1](https://forum.syncthing.net/u/Ian1)
#### Post date: [August 24, 2017, 7:06am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/7 "2017-08-24T07:06:13Z")

</div>

Hi @Nicuh, i have tried it yesterday "restartOnWakeup " OFF, but it doesn t seam to change anything on my android 6.0. After 8H the app with nothing to sync; uses 25% of the batter (3% / hour as samsung says).

It looks like we have several battery draining causes…

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 24, 2017, 7:32am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/8 "2017-08-24T07:32:39Z")

</div>

My guess would be that it, while running, keeps network sockets open and sends pings over them. This prevents the CPU and cellular modem / WiFi from sleeping.

---

<div class="post-metadata">

### Author: ![Ian1](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/ebca7d/32.png) [@Ian1](https://forum.syncthing.net/u/Ian1)
#### Post date: [August 24, 2017, 8:31am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/9 "2017-08-24T08:31:21Z")

</div>

Dear @calmh, That s exactly my guess too !!! I have found that when on WIfi it uses much less power than on 4G. I believe this is because it cost much less power to send on Wifi data ALL THE TIME. On wifi syncthing uses 3% per 8 hours on 4G 25% sittinf IDLE! The battery cost of sending packets over wifi is much lower than 4G, therefore it stays unoticed for wifi users.

We need to implement something around this solution explained by android devs, it is called “BATCHING” and "SCHEDULING" [https://developer.android.com/topic/performance/power/network/action-app-traffic.html](https://developer.android.com/topic/performance/power/network/action-app-traffic.html)

[https://developer.android.com/topic/performance/power/network/index.html](https://developer.android.com/topic/performance/power/network/index.html)

Happy this issue is on the agenda

Cheers Hubyhuby

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 24, 2017, 8:37am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/10 "2017-08-24T08:37:23Z")

</div>

It is not on the agenda, as such. However the batching mentioned there could be implemented by the Android wrapper as something simple like pausing all devices, and then periodically:

- unpausing
- giving things a while to connect
- observing sync status; if syncing, leave it connected for a little while longer
- when all connected devices are in sync, pause all devices

---

<div class="post-metadata">

### Author: ![paullittlefield](https://forum.syncthing.net/user_avatar/forum.syncthing.net/paullittlefield/32/1519_2.png) [@paullittlefield](https://forum.syncthing.net/u/paullittlefield)
#### Post date: [March 13, 2018, 2:45pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/12 "2018-03-13T14:45:13Z")

</div>

![android_battery_syncthing_usage](https://forum-uploads.syncthingcdn.net/original/2X/9/97b8c47824f455befa1d39465481b3e3459d6dbf.png)

Oh, it’s not normally this bad.

☹

Paully

Google Pixel (sailfish) Android 8.1.0 Syncthing for Android 0.10.5

---

<div class="post-metadata">

### Author: ![kluppy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/kluppy/32/4197_2.png) [@kluppy](https://forum.syncthing.net/u/kluppy)
#### Post date: [March 13, 2018, 7:34pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/13 "2018-03-13T19:34:41Z")

</div>

I think it is related to the bug in the latest version.

> [@syncthing 0.14.45 no longer syncs to Android (7.1.2)](https://forum.syncthing.net/t/syncthing-0-14-45-no-longer-syncs-to-android-7-1-2/11371/):
>
> The Problem I upgraded syncthing (on linux laptops and Androids) to 0.14.45 on the 10th March, and as of yesterday, syncing to Android no longer works. syncing laptop to laptop is ok. The androids are a Google 6P and Px running 7.1.2. Symptoms creating a new file on the Android is not copied to the laptop. creating a new file (say abc.txt) on the laptop leads to, on the android: a. file .syncthing.abc.txt.tmp is created but just stays there and is never renamed. b. the folder shows “…

---

<div class="post-metadata">

### Author: ![EricBrunel](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/e/e8c25b/32.png) [@EricBrunel](https://forum.syncthing.net/u/EricBrunel)
#### Post date: [March 15, 2018, 12:19pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/14 "2018-03-15T12:19:52Z")

</div>

Or maybe not… I have the latest syncthing for Android app installed (0.10.6, with syncthing 0.14.45), and I’m still getting way too high CPU usage. The app itself says it uses less than 5% of CPU, but if I go to the app monitor, I see a usage around 20 or 25%. And I fear the monitor is right, since my battery gets drained much faster than usual if I leave syncthing running. My device is a Samsung Galaxy Note 3 with Android 5.0.

---

<div class="post-metadata">

### Author: ![JohnVeness](https://forum.syncthing.net/user_avatar/forum.syncthing.net/johnveness/32/3956_2.png) [@JohnVeness](https://forum.syncthing.net/u/JohnVeness)
#### Post date: [March 17, 2018, 3:12pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/15 "2018-03-17T15:12:36Z")

</div>

I’ve noticed high CPU and battery usage too, with Android versions 0.10.5 and 0.10.6. Not noticed a problem with precious versions.

---

<div class="post-metadata">

### Author: ![JohnVeness](https://forum.syncthing.net/user_avatar/forum.syncthing.net/johnveness/32/3956_2.png) [@JohnVeness](https://forum.syncthing.net/u/JohnVeness)
#### Post date: [March 18, 2018, 8:19am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/16 "2018-03-18T08:19:55Z")

</div>

I should explain that in my case the battery drain occurs if “Always run in background” is ticked (I also have “Run only on WiFi” ticked). Same settings prior to Android 0.10.5 didn’t have this problem as far as I know.

All my folders are synced and I also reset the database, but still the drain occurs. I have three synced folders, 7 files/400 KiB, 700 files/2.5 GiB, 6 files/180 MiB. Scan interval is 5 mins.

---

<div class="post-metadata">

### Author: ![hc-syncthing-forum](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/h/a8b319/32.png) [@hc-syncthing-forum](https://forum.syncthing.net/u/hc-syncthing-forum)
#### Post date: [March 23, 2018, 10:33am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/17 "2018-03-23T10:33:09Z")

</div>

![2018-03-23-11_22_41-screenshot](https://forum-uploads.syncthingcdn.net/original/2X/f/fb68be820bbe9dc810f7bc6f7d5105cfba765978.png)

Huge power consume on two Xperia Z2 with latest Syncthing.

In that 30 minuttes xiia was playing internetradio.

---

<div class="post-metadata">

### Author: ![hc-syncthing-forum](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/h/a8b319/32.png) [@hc-syncthing-forum](https://forum.syncthing.net/u/hc-syncthing-forum)
#### Post date: [March 23, 2018, 10:58am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/18 "2018-03-23T10:58:34Z")

</div>

![2018-03-23-11_53_49-screenshot](https://forum-uploads.syncthingcdn.net/original/2X/6/682a87cbaf6166a47c7fea3339339a64e6037b36.png)

Second Z2

---

<div class="post-metadata">

### Author: ![EricBrunel](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/e/e8c25b/32.png) [@EricBrunel](https://forum.syncthing.net/u/EricBrunel)
#### Post date: [April 2, 2018, 11:55am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/19 "2018-04-02T11:55:13Z")

</div>

I switched back to Syncthing for Android v0.10.4 via FDroid (that still has it) and the battery consumption issues are gone. Now I see CPU usage for Syncthing when idle at 0% when it was at 20~25% with the next versions… I hope this version will keep on working.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [April 2, 2018, 1:00pm UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/20 "2018-04-02T13:00:13Z")

</div>

So I’d love to fix this but I can’t repro on my pixel.

---

<div class="post-metadata">

### Author: ![Martchus](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@Martchus](https://forum.syncthing.net/u/Martchus)
#### Post date: [April 3, 2018, 8:46am UTC](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954/21 "2018-04-03T08:46:19Z")

</div>

I can actually reproduce on my Samsung Galaxy S4. It drains the battery much faster than it did before without any changes to the configuration (of Syncthing or the Phone).

Maybe I can look into it, but I haven’t been developing for Android for quite a while now and I think the usage of Go makes this even harder than average. But I could gather some logs at least.

The workaround is currently to only enable the app if I want to sync something. It is ok, but far from ideal.

[Next page](https://forum.syncthing.net/t/android-app-consumes-too-much-battery-when-idle/9954.md?page=2)
