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

Battery usage #2498

Closed
scroom opened this issue Feb 19, 2015 · 8 comments
Closed

Battery usage #2498

scroom opened this issue Feb 19, 2015 · 8 comments
Assignees

Comments

@scroom
Copy link

scroom commented Feb 19, 2015

Since one of the last updates TextSecure uses a lot the battery of my smartphone.
Here are the logs:
https://gist.github.com/95e27acc2af1b32d7a13

@mcginty
Copy link
Contributor

mcginty commented Feb 19, 2015

@alex42ka since you're on KitKat, if you have ADB you can run:

adb shell dumpsys batterystats org.thoughtcrime.securesms

This will get detailed battery stats that can help us work out what exactly is happening with the low battery usage. Unfortunately the logcat isn't very revealing on its own.

@scroom
Copy link
Author

scroom commented Feb 20, 2015

Here comes the output:

Battery History:
       -3h10m47s787ms 099 46120040 status=discharging health=good plug=none temp=242 volt=4309 +screen +wifi +wifi_running +wifi_full_lock +wake_lock signal_strength=great
       -3h10m45s502ms 099 44120030 -wifi_full_lock signal_strength=good
       -3h10m42s501ms 099 44120030 volt=4252
       -3h10m37s905ms 099 46120040 volt=4223 +wifi_full_lock signal_strength=great
       -3h10m35s600ms 099 46120040
       -3h10m29s517ms 099 44120040 -wifi_full_lock
       -3h09m18s500ms 099 44120040 temp=252
       -3h08m42s300ms 099 44120030 signal_strength=good
       -3h08m18s537ms 099 44020030 -screen
       -3h07m37s727ms 099 46120030 +screen +wifi_full_lock
       -3h07m35s266ms 099 46120030
       -3h07m31s898ms 099 44120030 -wifi_full_lock
       -3h07m29s803ms 099 47020030 -screen +wifi_full_lock +wifi_scan
       -3h07m27s093ms 099 44020030 -wifi_full_lock -wifi_scan
       -3h06m51s125ms 099 4c020100 +phone_scanning signal_strength=none phone_state=out
       -3h06m14s591ms 099 4e120100 +screen +wifi_full_lock
       -3h06m12s055ms 099 4c120101 -wifi_full_lock brightness=dim
       -3h06m08s098ms 099 4e120101 +wifi_full_lock
       -3h06m05s772ms 099 4c120101 -wifi_full_lock
       -3h06m00s502ms 099 4c120101 volt=4193
       -3h05m54s498ms 099 4c120101 volt=4216
       -3h05m12s502ms 099 4c120101 temp=262 volt=4194
       -3h05m06s501ms 098 4c120101
       -3h04m12s480ms 098 4c120101 temp=272
       -3h04m00s467ms 098 4c120101
       -3h03m58s041ms 098 4c120100 brightness=dark
       -3h03m50s060ms 098 4c120101 brightness=dim
       -3h02m32s998ms 098 4c120100 brightness=dark
       -3h02m23s156ms 098 4c120101 brightness=dim
       -3h00m60s501ms 098 4c120101 temp=282
       -2h59m36s491ms 098 4c120101 temp=292
       -2h59m31s302ms 098 4e120101 +wifi_full_lock
       -2h59m28s702ms 098 4c120101 -wifi_full_lock
       -2h59m06s501ms 097 4c120101
       -2h59m04s206ms 097 4f120101 +wifi_full_lock +wifi_scan
       -2h59m02s092ms 097 4c120101 -wifi_full_lock -wifi_scan
       -2h59m01s986ms 097 4e120101 +wifi_full_lock
       -2h58m59s730ms 097 4c120101 -wifi_full_lock
       -2h58m34s268ms 097 4c120100 brightness=dark
       -2h58m30s176ms 097 4c120101 brightness=dim
       -2h58m09s117ms 097 4c120100 brightness=dark
       -2h58m06s753ms 097 4c120101 brightness=dim
       -2h58m00s176ms 097 4e120100 +wifi_full_lock brightness=dark
       -2h57m57s903ms 097 4f020100 -screen +wifi_scan
       -2h57m54s534ms 097 4c020100 -wifi_full_lock -wifi_scan
       -2h57m45s308ms 097 44020020 -phone_scanning signal_strength=moderate phone_state=in
       -2h57m30s003ms 097 4c020100 +phone_scanning signal_strength=none phone_state=out
       -2h57m00s486ms 097 4c020100 temp=282
       -2h56m48s363ms 097 4c020100
       -2h55m52s398ms 097 44020020 -phone_scanning signal_strength=moderate phone_state=in
       -2h55m24s860ms 097 46120021 +screen +wifi_full_lock brightness=dim
       -2h55m22s178ms 097 44120031 -wifi_full_lock signal_strength=good
       -2h55m19s438ms 097 44120040 brightness=dark signal_strength=great
       -2h55m13s864ms 097 44120041 brightness=dim
       -2h55m07s868ms 097 46120040 volt=4170 +wifi_full_lock brightness=dark
       -2h55m05s487ms 097 44120040 -wifi_full_lock
       -2h55m00s495ms 097 44120040 temp=272
       -2h54m57s970ms 097 44120030 signal_strength=good
       -2h54m54s039ms 097 44120031 brightness=dim
       -2h54m51s246ms 097 44120041 signal_strength=great
       -2h54m40s050ms 097 46120041 +wifi_full_lock
       -2h54m37s713ms 097 44120041 -wifi_full_lock
       -2h54m33s839ms 097 46120041 +wifi_full_lock
       -2h54m31s504ms 097 44120041 -wifi_full_lock
       -2h54m22s834ms 097 46120041 +wifi_full_lock
       -2h54m20s500ms 097 44120041 -wifi_full_lock
       -2h54m06s447ms 097 44120031 signal_strength=good
       -2h53m59s111ms 097 44120030 brightness=dark
       -2h53m52s683ms 097 47020030 -screen +wifi_full_lock +wifi_scan
       -2h53m49s789ms 097 44020030 -wifi_full_lock -wifi_scan
       -2h53m42s484ms 097 44020030 volt=4192
       -2h53m12s489ms 097 44020030 temp=262
       -2h53m06s489ms 096 44020030
       -2h51m30s497ms 096 44020030 temp=252
       -2h50m17s030ms 096 46120031 +screen +wifi_full_lock brightness=dim
       -2h50m14s637ms 096 44120031 -wifi_full_lock
       -2h50m12s496ms 096 44120031 volt=4170
       -2h50m05s638ms 096 46120030 +wifi_full_lock brightness=dark
       -2h50m03s027ms 096 44120040 -wifi_full_lock signal_strength=great
       -2h49m54s498ms 096 44120040 volt=4144
       -2h49m48s479ms 096 44120040 volt=4185
       -2h48m54s483ms 096 44120040 volt=4164
       -2h48m06s493ms 096 44120040 temp=262
       -2h47m21s544ms 096 46120040 +wifi_full_lock
       -2h47m18s244ms 096 44020040 -screen -wifi_full_lock
       -2h47m17s799ms 096 47020040 +wifi_full_lock +wifi_scan
       -2h47m15s056ms 096 44020040 -wifi_full_lock -wifi_scan
       -2h47m12s493ms 096 44020040 volt=4185
       -2h45m36s485ms 096 44020040 temp=252
       -2h44m42s062ms 096 46120040 +screen +wifi_full_lock
       -2h44m39s545ms 096 44120040 -wifi_full_lock
       -2h44m36s490ms 096 44120040 volt=4154
       -2h44m30s491ms 096 44120040 volt=4176
       -2h44m27s743ms 096 46120040 +wifi_full_lock
       -2h44m25s305ms 096 44120040 -wifi_full_lock
       -2h44m17s889ms 096 46120040 +wifi_full_lock
       -2h44m15s452ms 096 44120040 -wifi_full_lock
       -2h44m06s486ms 095 44120040
       -2h43m49s023ms 095 46120040 +wifi_full_lock
       -2h43m46s648ms 095 44120040 -wifi_full_lock
       -2h43m37s247ms 095 46120040 +wifi_full_lock
       -2h43m34s857ms 095 44120040 -wifi_full_lock
       -2h43m32s783ms 095 46120040 +wifi_full_lock
       -2h43m30s423ms 095 44120040 -wifi_full_lock
       -2h43m28s255ms 095 46120040 +wifi_full_lock
       -2h43m24s766ms 095 44120040 -wifi_full_lock
       -2h43m22s105ms 095 45120040 +wifi_scan
       -2h43m18s749ms 095 45120040 temp=262
       -2h43m13s858ms 095 45120040
       -2h43m09s775ms 095 45120040
       -2h43m06s495ms 095 44120040 volt=4148 -wifi_scan
       -2h42m42s494ms 095 44120040 volt=4170
       -2h42m24s487ms 095 44120040 temp=273
       -2h41m30s087ms 095 44120041 brightness=dim
       -2h41m14s643ms 095 46020031 -screen +wifi_full_lock signal_strength=good
       -2h41m12s330ms 095 44020031 -wifi_full_lock
       -2h40m18s475ms 095 44020031
       -2h39m04s161ms 095 47020031 +wifi_full_lock +wifi_scan
       -2h39m02s004ms 095 44020031 -wifi_full_lock -wifi_scan
       -2h39m01s872ms 095 47020031 +wifi_full_lock +wifi_scan
       -2h38m59s674ms 095 44020031 -wifi_full_lock -wifi_scan
       -2h37m52s215ms 095 46120030 +screen +wifi_full_lock brightness=dark
       -2h37m49s443ms 095 44120030 -wifi_full_lock
       -2h37m41s697ms 095 46120030 +wifi_full_lock
       -2h37m39s267ms 095 44120040 -wifi_full_lock signal_strength=great
       -2h37m31s883ms 095 44120030 signal_strength=good
       -2h37m26s168ms 095 46120040 +wifi_full_lock signal_strength=great
       -2h37m23s694ms 095 46120040
       -2h37m19s442ms 095 46120040 volt=4133
       -2h37m16s079ms 095 57120040 +gps +wifi_scan
       -2h37m14s024ms 095 44122040 -gps -wifi_full_lock -wifi_scan data_conn=edge
       -2h37m12s960ms 095 47120040 volt=4087 +wifi_full_lock +wifi_scan data_conn=none
       -2h37m10s515ms 095 47120040
       -2h37m07s295ms 095 44120030 volt=4156 -wifi_full_lock -wifi_scan signal_strength=good
       -2h36m48s498ms 095 46120030 temp=283 +wifi_full_lock
       -2h36m47s527ms 095 44120030 -wifi_full_lock
       -2h36m33s640ms 095 44120040 signal_strength=great
       -2h36m25s774ms 095 47120040 +wifi_full_lock +wifi_scan
       -2h36m23s523ms 095 44020040 -screen -wifi_full_lock -wifi_scan
       -2h36m21s906ms 095 47020040 +wifi_full_lock +wifi_scan
       -2h36m19s722ms 095 44020040 -wifi_full_lock -wifi_scan
       -2h36m06s488ms 094 44020040
       -2h33m48s149ms 094 47020040 +wifi_full_lock +wifi_scan
       -2h33m45s888ms 094 44020040 -wifi_full_lock -wifi_scan
       -2h32m24s492ms 094 44020040 temp=273
       -2h29m00s486ms 094 44020040 temp=263
       -2h24m12s491ms 094 44020040 temp=253
       -2h19m04s148ms 094 47020040 +wifi_full_lock +wifi_scan
       -2h19m01s871ms 094 44020040 -wifi_full_lock -wifi_scan
       -2h19m01s669ms 094 47020040 +wifi_full_lock +wifi_scan
       -2h18m59s362ms 094 44020040 -wifi_full_lock -wifi_scan
       -2h18m42s464ms 094 44020040
       -2h18m30s490ms 094 44020040 temp=243
       -2h18m06s489ms 093 44020040
       -2h16m48s362ms 093 44020040
       -2h12m34s001ms 093 44020040
       -2h09m06s489ms 093 44020040 temp=233
       -2h03m47s195ms 093 44020040
       -1h59m04s122ms 093 47020040 +wifi_full_lock +wifi_scan
       -1h59m01s905ms 093 44020040 -wifi_full_lock -wifi_scan
       -1h59m01s688ms 093 47020040 +wifi_full_lock +wifi_scan
       -1h58m59s403ms 093 44020040 -wifi_full_lock -wifi_scan
       -1h56m48s360ms 093 44020040
       -1h52m12s491ms 093 44020040 temp=223
       -1h50m06s491ms 092 44020040
       -1h44m00s489ms 092 46020040 volt=4119 +wifi_full_lock
       -1h43m59s924ms 092 44020040 -wifi_full_lock
       -1h43m54s490ms 092 44020040 volt=4147
       -1h39m04s180ms 092 47020040 +wifi_full_lock +wifi_scan
       -1h39m01s920ms 092 44020040 -wifi_full_lock -wifi_scan
       -1h39m01s664ms 092 47020040 +wifi_full_lock +wifi_scan
       -1h38m59s413ms 092 44020040 -wifi_full_lock -wifi_scan
       -1h36m48s363ms 092 44020040
       -1h32m06s490ms 091 44020040
       -1h27m14s265ms 091 46120040 +screen +wifi_full_lock
       -1h27m11s794ms 091 44120020 -wifi_full_lock signal_strength=moderate
       -1h27m07s209ms 091 44120010 volt=4091 signal_strength=poor
       -1h27m00s864ms 091 46120010 volt=4124 +wifi_full_lock
       -1h26m58s473ms 091 46120010
       -1h26m54s964ms 091 46120010
       -1h26m50s646ms 091 44120010 -wifi_full_lock
       -1h26m48s497ms 091 45120030 volt=4083 +wifi_scan signal_strength=good
       -1h26m43s328ms 091 44120030 volt=4112 -wifi_scan
       -1h26m06s494ms 091 44120030 volt=4086
       -1h26m00s489ms 091 46120030 volt=4121 +wifi_full_lock
       -1h25m56s437ms 091 46120030 volt=4073
       -1h25m52s375ms 091 44120030 -wifi_full_lock
       -1h25m48s502ms 091 44120020 volt=4121 signal_strength=moderate
       -1h25m45s669ms 091 46120020 +wifi_full_lock
       -1h25m43s349ms 091 44120030 temp=234 -wifi_full_lock signal_strength=good
       -1h25m40s556ms 091 46120030 +wifi_full_lock
       -1h25m37s034ms 091 44120030 -wifi_full_lock
       -1h25m34s117ms 091 46120030 +wifi_full_lock
       -1h25m31s694ms 091 47120030 +wifi_scan
       -1h25m29s017ms 091 44120030 -wifi_full_lock -wifi_scan
       -1h25m20s358ms 091 44120020 volt=4093 signal_strength=moderate
       -1h25m12s492ms 091 44120020 volt=4120
       -1h24m42s486ms 091 46120020 temp=244 +wifi_full_lock
       -1h24m38s022ms 091 44120020 -wifi_full_lock
       -1h24m32s649ms 091 44120030 signal_strength=good
       -1h24m11s344ms 091 44120020 signal_strength=moderate
       -1h24m03s530ms 091 44120030 signal_strength=good
       -1h23m50s086ms 091 44120040 signal_strength=great
       -1h23m47s266ms 091 44020040 -screen
       -1h23m33s007ms 091 46120030 +screen +wifi_full_lock signal_strength=good
       -1h23m30s282ms 091 46120030
       -1h23m26s507ms 091 44120030 -wifi_full_lock
       -1h23m17s977ms 091 46120040 +wifi_full_lock signal_strength=great
       -1h23m15s573ms 091 44120040 -wifi_full_lock
       -1h22m47s759ms 091 47020040 -screen +wifi_full_lock +wifi_scan
       -1h22m45s030ms 091 44020040 -wifi_full_lock -wifi_scan
       -1h22m43s983ms 091 47020040 +wifi_full_lock +wifi_scan
       -1h22m41s764ms 091 44020040 -wifi_full_lock -wifi_scan
       -1h22m41s664ms 091 47020040 +wifi_full_lock +wifi_scan
       -1h22m39s338ms 091 44020040 -wifi_full_lock -wifi_scan
       -1h22m16s736ms 091 46120030 +screen +wifi_full_lock signal_strength=good
       -1h22m14s142ms 091 44120030 -wifi_full_lock
       -1h22m06s493ms 090 44120030
       -1h21m48s503ms 090 46120030 volt=4086 +wifi_full_lock
       -1h21m45s713ms 090 44120030 -wifi_full_lock
       -1h21m42s494ms 090 44120030 temp=254 volt=4107
       -1h21m35s013ms 090 46120030 +wifi_full_lock
       -1h21m32s682ms 090 44120030 -wifi_full_lock
       -1h21m11s636ms 090 46120030 +wifi_full_lock
       -1h21m09s223ms 090 44120030 -wifi_full_lock
       -1h19m22s961ms 090 46120040 +wifi_full_lock signal_strength=great
       -1h19m20s622ms 090 44120040 -wifi_full_lock
       -1h18m51s677ms 090 44020040 -screen
       -1h17m41s210ms 090 46120040 +screen +wifi_full_lock
       -1h17m38s616ms 090 46120040
       -1h17m36s003ms 090 44120030 -wifi_full_lock signal_strength=good
       -1h17m20s261ms 090 46120030 volt=4076 +wifi_full_lock
       -1h17m16s712ms 090 44120030 -wifi_full_lock
       -1h17m12s504ms 090 44120030 volt=4100
       -1h17m06s883ms 090 44120040 signal_strength=great
       -1h17m02s558ms 090 46120040 +wifi_full_lock
       -1h17m00s493ms 090 44120040 temp=264 -wifi_full_lock
       -1h16m48s352ms 090 44120040
       -1h16m34s686ms 090 47020040 -screen +wifi_full_lock +wifi_scan
       -1h16m31s854ms 090 44020040 -wifi_full_lock -wifi_scan
       -1h15m18s491ms 090 44020040 volt=4121
       -1h15m06s511ms 090 44020040
       -1h12m33s992ms 090 44020040
       -1h11m36s489ms 089 44020040
       -1h11m12s485ms 089 44020040 temp=254
       -1h06m45s505ms 089 47020040 +wifi_full_lock +wifi_scan
       -1h06m43s264ms 089 44020040 -wifi_full_lock -wifi_scan
       -1h06m43s134ms 089 47020040 +wifi_full_lock +wifi_scan
       -1h06m40s852ms 089 44020040 -wifi_full_lock -wifi_scan
       -1h04m42s483ms 089 44020040 temp=244
       -1h02m11s535ms 089 44020040
       -1h01m54s476ms 089 44020040
         -57m18s489ms 089 44020040 temp=234
         -56m48s357ms 089 44020040
         -53m47s131ms 089 46120040 +screen +wifi_full_lock
         -53m44s984ms 089 44020040 -screen -wifi_full_lock
         -53m44s322ms 089 47020040 +wifi_full_lock +wifi_scan
         -53m42s019ms 089 44020040 -wifi_full_lock -wifi_scan
         -53m36s491ms 088 44020040
         -51m18s298ms 088 46120030 +screen +wifi_full_lock signal_strength=good
         -51m15s666ms 088 44120020 -wifi_full_lock signal_strength=moderate
         -51m12s495ms 088 44120020 volt=4097
         -51m10s080ms 088 44120030 signal_strength=good
         -51m07s799ms 088 47020030 -screen +wifi_full_lock +wifi_scan
         -51m05s118ms 088 44020030 -wifi_full_lock -wifi_scan
         -50m38s642ms 088 46120030 +screen +wifi_full_lock
         -50m36s502ms 088 44120030 temp=224 -wifi_full_lock
         -50m33s532ms 088 46120030 +wifi_full_lock
         -50m31s095ms 088 44120030 volt=4069 -wifi_full_lock
         -50m24s487ms 088 44120030 volt=4097
         -50m11s839ms 088 44120040 signal_strength=great
         -49m45s805ms 088 44020040 -screen
         -48m06s791ms 088 46120040 +screen +wifi_full_lock
         -48m01s923ms 088 44120030 volt=4065 -wifi_full_lock signal_strength=good
         -47m57s439ms 088 44120040 signal_strength=great
         -47m54s490ms 088 44120040 volt=4093
         -47m37s278ms 088 44120030 signal_strength=good
         -47m14s876ms 088 44120040 signal_strength=great
         -47m12s638ms 088 44120030 volt=4072 signal_strength=good
         -47m04s207ms 088 47020030 -screen +wifi_full_lock +wifi_scan
         -47m02s005ms 088 44020030 -wifi_full_lock -wifi_scan
         -47m01s787ms 088 47020030 +wifi_full_lock +wifi_scan
         -46m59s536ms 088 44020030 -wifi_full_lock -wifi_scan
         -46m54s487ms 088 44020030 volt=4098
         -45m42s493ms 088 44020030 temp=234 volt=4075
         -45m36s489ms 088 44020030 volt=4097
         -44m35s089ms 088 46120030 +screen +wifi_full_lock
         -44m32s375ms 088 46120030 volt=4068
         -44m29s291ms 088 47120030 +wifi_scan
         -44m26s678ms 088 44120030 -wifi_full_lock -wifi_scan
         -44m23s232ms 088 46120030 +wifi_full_lock
         -44m20s919ms 088 44120030 -wifi_full_lock
         -44m12s502ms 088 46120030 temp=244 +wifi_full_lock
         -44m10s261ms 088 44020030 -screen -wifi_full_lock
         -44m09s702ms 088 47020030 +wifi_full_lock +wifi_scan
         -44m07s476ms 088 44020030 volt=4094 -wifi_full_lock -wifi_scan
         -41m36s491ms 087 44020030
         -38m42s464ms 087 44020030
         -36m48s353ms 087 44020030
         -29m53s335ms 087 46120030 +screen +wifi_full_lock
         -29m50s830ms 087 44120030 -wifi_full_lock
         -29m48s491ms 087 44120030 volt=4059
         -29m42s487ms 087 44120030 volt=4081
         -29m30s869ms 087 44120040 signal_strength=great
         -29m26s390ms 087 44120030 signal_strength=good
         -29m21s908ms 087 44020040 -screen signal_strength=great
         -29m19s531ms 087 47020040 +wifi_full_lock +wifi_scan
         -29m17s305ms 087 44020040 -wifi_full_lock -wifi_scan
         -28m58s440ms 087 46120040 +screen +wifi_full_lock
         -28m55s917ms 087 44120040 -wifi_full_lock
         -28m50s548ms 087 44120030 signal_strength=good
         -28m47s954ms 087 47020030 -screen +wifi_full_lock +wifi_scan
         -28m45s267ms 087 44020030 -wifi_full_lock -wifi_scan
         -28m16s800ms 087 46120030 +screen +wifi_full_lock
         -28m14s160ms 087 46120030
         -28m10s350ms 087 44120030 -wifi_full_lock
         -27m38s872ms 087 44120040 signal_strength=great
         -27m34s984ms 087 44020040 -screen
         -27m24s490ms 087 44020040 temp=234
         -27m06s752ms 087 46120040 +screen +wifi_full_lock
         -27m03s882ms 087 47120040 +wifi_scan
         -27m01s672ms 087 44120040 -wifi_full_lock -wifi_scan
         -27m01s394ms 087 46120040 volt=4053 +wifi_full_lock
         -26m59s044ms 087 44120040 -wifi_full_lock
         -26m54s847ms 087 46120040 volt=4079 +wifi_full_lock
         -26m52s785ms 087 54122040 +gps -wifi_full_lock data_conn=edge
         -26m50s170ms 087 55120040 volt=4016 +wifi_scan data_conn=none
         -26m47s353ms 087 46120030 -gps +wifi_full_lock -wifi_scan signal_strength=good
         -26m43s076ms 087 44120030 -wifi_full_lock
         -26m40s892ms 087 44120040 signal_strength=great
         -26m38s389ms 086 44120030 volt=4059 signal_strength=good
         -26m36s149ms 086 44120040 signal_strength=great
         -26m15s233ms 086 47020040 -screen +wifi_full_lock +wifi_scan
         -26m12s352ms 086 44020040 -wifi_full_lock -wifi_scan
         -26m06s481ms 086 44020040 volt=4080
         -24m00s489ms 086 44020040 volt=4055
         -23m54s490ms 086 44020040 volt=4085
         -22m29s829ms 086 46120040 +screen +wifi_full_lock
         -22m27s404ms 086 44120040 -wifi_full_lock
         -22m24s486ms 086 44120030 volt=4055 signal_strength=good
         -22m20s788ms 086 44120040 signal_strength=great
         -22m00s491ms 086 44120040 temp=224
         -21m56s508ms 086 47020030 -screen +wifi_full_lock +wifi_scan signal_strength=good
         -21m54s489ms 086 44020030 volt=4079 -wifi_full_lock -wifi_scan
         -17m47s613ms 086 46120040 +screen +wifi_full_lock signal_strength=great
         -17m45s141ms 086 46120040
         -17m42s498ms 086 44120040 volt=4053 -wifi_full_lock
         -16m48s489ms 086 46120040 temp=235 +wifi_full_lock
         -16m46s928ms 086 44120040 -wifi_full_lock
         -16m22s808ms 086 46120030 +wifi_full_lock signal_strength=good
         -16m19s796ms 086 44120030 -wifi_full_lock
         -16m16s801ms 086 46120030 +wifi_full_lock
         -16m14s450ms 086 44120030 temp=245 -wifi_full_lock
         -16m11s183ms 086 44120040 signal_strength=great
         -15m46s635ms 086 47020040 -screen +wifi_full_lock +wifi_scan
         -15m43s992ms 086 44020040 -wifi_full_lock -wifi_scan
         -15m36s489ms 086 44020040 volt=4074
         -15m13s744ms 086 46120040 +screen +wifi_full_lock
         -15m11s160ms 086 44120030 -wifi_full_lock signal_strength=good
         -15m08s688ms 086 46120030 +wifi_full_lock
         -15m06s359ms 086 44120040 -wifi_full_lock signal_strength=great
         -15m00s500ms 086 44120040 volt=4053
         -14m48s452ms 086 44120040
         -14m45s370ms 086 46120040 +wifi_full_lock
         -14m43s088ms 086 44120040 -wifi_full_lock
         -14m40s797ms 086 44120030 signal_strength=good
         -14m37s793ms 085 44120040 signal_strength=great
         -14m15s191ms 085 47020040 -screen +wifi_full_lock +wifi_scan
         -14m12s511ms 085 44020040 -wifi_full_lock -wifi_scan
         -13m36s483ms 085 461a0030 status=charging plug=usb temp=237 volt=4075 +plugged +screen +wifi_full_lock signal_strength=good
         -13m33s578ms 085 441a0030 -wifi_full_lock
         -13m30s497ms 086 441a0030 volt=4097
         -13m25s650ms 086 470a0030 -screen +wifi_full_lock +wifi_scan
         -13m22s929ms 086 440a0030 -wifi_full_lock -wifi_scan
         -12m36s492ms 087 440a0030 volt=4119
         -12m33s950ms 087 440a0030
         -10m37s230ms 087 461a0030 +screen +wifi_full_lock
         -10m34s799ms 087 441a0030 -wifi_full_lock
         -10m30s528ms 087 461a0030 volt=4083 +wifi_full_lock
         -10m28s203ms 087 441a0030 -wifi_full_lock
         -10m18s565ms 087 441a0030 volt=4120
         -10m16s277ms 087 461a0030 +wifi_full_lock
         -10m12s770ms 087 441a0030 temp=247 -wifi_full_lock
          -9m55s099ms 087 44120030 status=discharging plug=none temp=249 volt=4112 -plugged
          -9m48s501ms 087 44120040 volt=4081 signal_strength=great
          -9m36s941ms 087 44120030 signal_strength=good
          -9m32s459ms 087 44120040 signal_strength=great
          -9m27s978ms 087 44120030 signal_strength=good
          -9m24s589ms 087 47020030 -screen +wifi_full_lock +wifi_scan
          -9m21s908ms 087 44020030 -wifi_full_lock -wifi_scan
          -9m12s893ms 087 46120030 +screen +wifi_full_lock
          -9m10s377ms 087 44120030 -wifi_full_lock
          -9m07s400ms 087 46120030 +wifi_full_lock
          -9m05s090ms 087 44120030 -wifi_full_lock
          -8m38s699ms 087 44120020 signal_strength=moderate
          -8m34s752ms 087 44120030 signal_strength=good
          -8m30s497ms 087 44120030 volt=4052
          -8m24s490ms 087 44120030 volt=4074
          -8m14s057ms 087 44120020 signal_strength=moderate
          -8m02s183ms 087 44020020 -screen
          -7m58s605ms 087 441a0020 status=charging plug=usb temp=245 volt=4075 +plugged +screen
          -7m54s493ms 087 441a0020 volt=4105
          -7m40s461ms 087 441a0030 signal_strength=good
          -7m28s057ms 087 440a0030 -screen
          -7m15s981ms 087 461a0030 +screen +wifi_full_lock
          -7m13s422ms 087 441a0030 -wifi_full_lock
          -7m07s736ms 087 441a0020 signal_strength=moderate
          -7m05s506ms 087 470a0020 -screen +wifi_full_lock +wifi_scan
          -7m02s813ms 087 440a0020 -wifi_full_lock -wifi_scan
          -7m02s638ms 087 470a0020 +wifi_full_lock +wifi_scan
          -7m00s412ms 087 440a0020 -wifi_full_lock -wifi_scan
          -6m12s492ms 087 440a0020 volt=4126
          -5m04s838ms 087 461a0020 +screen +wifi_full_lock
          -5m01s720ms 087 461a0030 volt=4104 signal_strength=good
          -4m59s607ms 087 441a0030 -wifi_full_lock
          -4m54s498ms 087 441a0030 volt=4126
          -4m50s222ms 087 441a0040 signal_strength=great
          -4m18s859ms 087 441a0030 signal_strength=good
          -4m16s775ms 087 44120030 status=discharging plug=none temp=254 volt=4123 -plugged
          -4m13s723ms 087 441a0030 status=charging plug=usb volt=4093 +plugged
          -4m06s484ms 087 441a0030 volt=4120
          -3m56s460ms 087 441a0040 signal_strength=great
          -3m51s980ms 087 441a0030 signal_strength=good
          -3m38s466ms 087 440a0030 -screen
            -60s490ms 088 440a0030

Per-PID Stats:
  PID 797 wake time: +1m29s645ms
  PID 1641 wake time: +1m8s988ms
  PID 797 wake time: +1s261ms
  PID 1420 wake time: +16s274ms
  PID 226 wake time: +1m9s586ms
  PID 1449 wake time: +1s785ms
  PID 797 wake time: +1ms
  PID 226 wake time: +15s767ms
  PID 797 wake time: +476ms
  PID 1238 wake time: +4s897ms
  PID 1253 wake time: +1s86ms
  PID 797 wake time: +93ms
  PID 797 wake time: +6s813ms
  PID 1399 wake time: +5s986ms
  PID 1641 wake time: +3m36s331ms
  PID 1670 wake time: +12s223ms
  PID 797 wake time: +18ms
  PID 15169 wake time: +7s959ms
  PID 22017 wake time: +11s950ms
  PID 797 wake time: +1s37ms
  PID 797 wake time: +3s343ms
  PID 27992 wake time: +5s252ms
  PID 797 wake time: +10ms
  PID 1641 wake time: +2ms
  PID 797 wake time: +815ms
  PID 797 wake time: +717ms
  PID 797 wake time: +252ms
  PID 1641 wake time: +148ms
  PID 797 wake time: +2ms
  PID 25037 wake time: +892ms
  PID 1641 wake time: +516ms
  PID 226 wake time: +26s932ms
  PID 797 wake time: +15s61ms
  PID 26681 wake time: +49ms
  PID 797 wake time: +373ms
  PID 1641 wake time: +1m29s648ms
  PID 797 wake time: +8s584ms
  PID 797 wake time: +12s230ms
  PID 797 wake time: +3s908ms
  PID 19640 wake time: +8s996ms
  PID 797 wake time: +27s984ms
  PID 797 wake time: +478ms
  PID 797 wake time: +1s262ms
  PID 1641 wake time: +20s807ms
  PID 26893 wake time: +977ms
  PID 797 wake time: +5s85ms
  PID 4431 wake time: +1s727ms
  PID 797 wake time: +1s413ms
  PID 797 wake time: +220ms
  PID 797 wake time: +388ms
  PID 2474 wake time: +13s492ms
  PID 797 wake time: +650ms
  PID 26939 wake time: +2s779ms
  PID 797 wake time: +135ms
  PID 797 wake time: +6ms
  PID 797 wake time: +283ms
  PID 797 wake time: +2s145ms
  PID 3729 wake time: +39s42ms
  PID 797 wake time: +1m1s811ms
  PID 25050 wake time: +33s691ms

Statistics since last charge:
  System starts: 0, currently on battery: false
  Time on battery: 2h 59m 11s 847ms (0,6%) realtime, 2h 59m 11s 846ms (0,6%) uptime
  Total run time: 21d 4h 9m 50s 292ms realtime, 7d 5h 4m 44s 972ms uptime, 
  Screen on: 39m 16s 414ms (21,9%), Input events: 0, Active phone call: 0ms (0,0%)
  Screen brightnesses: dark 29m 53s 483ms (76,1%), dim 9m 22s 928ms (23,9%)
  Mobile total received: 0B, Total sent: 0B
  Wi-Fi total received: 35,92MB, Total sent: 2,10MB
  Total full wakelock time: 33s 867ms , Total partial wakelock time: 2h 59m 11s 434ms 
  Signal levels: none 10m 43s 422ms (6,0%) 2x, poor 18s 2ms (0,2%) 1x, moderate 2m 15s 783ms (1,3%) 9x, good 42m 37s 982ms (23,8%) 36x, great 2h 3m 16s 653ms (68,8%) 26x
  Signal scanning time: 10m 43s 422ms 
  Radio types: none 2h 59m 9s 68ms (100,0%) 2x, edge 2s 779ms (0,0%) 2x
  Radio data uptime when unplugged: 0 ms
  Wifi on: 2h 59m 11s 847ms (100,0%), Wifi running: 2h 59m 11s 847ms (100,0%), Bluetooth on: 0ms (0,0%)

  Device battery use since last full charge
    Amount discharged (lower bound): 13
    Amount discharged (upper bound): 14
    Amount discharged while screen on: 6
    Amount discharged while screen off: 8

  1000:
    Wi-Fi network: 4,47KB received, 2,70KB sent
    User activity: 32 other, 82 button, 1018 touch
    Wifi Running: 0ms (0,0%)
    Full Wifi Lock: 32s 96ms (0,3%)
    Wifi Scan: 29s 589ms (0,3%)
    Wake lock NetworkStats: 786ms partial (20 times) realtime
    Wake lock LocationManagerService: 374ms partial (237 times) realtime
    Wake lock ActivityManager-Launch: 23s 105ms partial (131 times) realtime
    Wake lock ProximityWakeLock: 1s 417ms partial (24 times) realtime
    Wake lock NlpWakeLock: 20s 196ms partial (71 times) realtime
    Wake lock GpsLocationProvider: 9ms partial (8 times) realtime
    Wake lock SyncManagerHandleSyncAlarm: 423ms partial (36 times) realtime
    Wake lock WifiSuspend: 2s 395ms partial (25 times) realtime
    Wake lock LocationService: 85ms partial (6 times) realtime
    Wake lock *backup*: 698ms partial (9 times) realtime
    Wake lock AlarmManager: 7s 295ms partial (227 times) realtime
    Wake lock ActivityManager-Sleep: 436ms partial (22 times) realtime
    Wake lock SyncLoopWakeLock: 1s 440ms partial (199 times) realtime
    TOTAL wake: 58s 659ms partial realtime
    Sensor 0: 39m 0s 671ms realtime (26 times)
    Sensor 1: 39m 5s 459ms realtime (26 times)
    Sensor 36: 2s 893ms realtime (24 times)
    Foreground activities: 2m 20s 828ms realtime (23 times)
    Proc com.cyngn.logger:
      CPU: 20ms usr + 30ms krn ; 0ms fg
    Proc com.android.keychain:
      CPU: 0ms usr + 0ms krn ; 0ms fg
      2 proc starts
    Proc surfaceflinger:
      CPU: 2m 5s 350ms usr + 1m 57s 460ms krn ; 0ms fg
    Proc system_server:
      CPU: 2m 50s 930ms usr + 1m 44s 730ms krn ; 0ms fg
    Proc com.android.settings:
      CPU: 20s 340ms usr + 4s 310ms krn ; 30s 270ms fg
      4 proc starts
    Proc servicemanager:
      CPU: 60ms usr + 480ms krn ; 0ms fg
    Proc qrngd:
      CPU: 0ms usr + 4s 480ms krn ; 0ms fg
    Apk com.android.keychain:
      Service com.android.keychain.KeyChainService:
        Created for: 36ms uptime
        Starts: 2, launches: 2
    Apk android:
      41 wakeup alarms
    Apk com.android.settings:
      Service com.android.settings.search.SearchPopulator:
        Created for: 884ms uptime
        Starts: 6, launches: 6
    Apk com.android.providers.settings:
      (nothing executed)
  u0a148:
    Wi-Fi network: 179,91KB received, 22,53KB sent
    Wake lock *vibrator*: 1s 588ms partial (5 times) realtime
    Wake lock Directory Refresh: 574ms partial (1 times) realtime
    Wake lock MMS Connection: 2h 50m 50s 400ms partial (0 times) realtime
    Wake lock AlarmManager: 100ms partial (1 times) realtime
    TOTAL wake: 2h 50m 52s 662ms partial realtime
    Vibrator: 3s 500ms realtime (10 times)
    Foreground activities: 3m 57s 249ms realtime (26 times)
    Proc *wakelock*:
      CPU: 3m 6s 960ms usr + 6m 48s 60ms krn ; 0ms fg
    Proc org.thoughtcrime.securesms:
      CPU: 18s 560ms usr + 2s 600ms krn ; 18s 520ms fg
    Apk org.thoughtcrime.securesms:
      1 wakeup alarms

Statistics since last unplugged:
  Time on battery: 3s 941ms (1,5%) realtime, 3s 940ms (1,5%) uptime
  Total run time: 4m 16s 844ms realtime, 4m 16s 844ms uptime, 
  Screen on: 3s 941ms (100,0%), Input events: 0, Active phone call: 0ms (0,0%)
  Screen brightnesses: dark 3s 941ms (100,0%)
  Mobile total received: 0B, Total sent: 0B
  Wi-Fi total received: 21,45KB, Total sent: 14,61KB
  Total full wakelock time: 0ms , Total partial wakelock time: 3s 941ms 
  Signal levels: good 3s 941ms (100,0%) 1x
  Signal scanning time: 0ms 
  Radio types: none 3s 941ms (100,0%) 0x
  Radio data uptime when unplugged: 0 ms
  Wifi on: 3s 941ms (100,0%), Wifi running: 3s 941ms (100,0%), Bluetooth on: 0ms (0,0%)

  Device is currently plugged into power
    Last discharge cycle start level: 87
    Last discharge cycle end level: 87
    Amount discharged while screen on: 0
    Amount discharged while screen off: 0

  1000:
    User activity: 2 other, 2 touch
    Sensor 0: 3s 941ms realtime (0 times)
    Sensor 1: 3s 941ms realtime (0 times)
    Sensor 36: (not used)
    Foreground activities: 3s 941ms realtime (0 times)
    Proc surfaceflinger:
      CPU: 50ms usr + 130ms krn ; 0ms fg
    Proc system_server:
      CPU: 370ms usr + 150ms krn ; 0ms fg
    Proc com.android.settings:
      CPU: 10ms usr + 0ms krn ; 0ms fg
    Proc qrngd:
      CPU: 0ms usr + 10ms krn ; 0ms fg
    Apk com.android.keychain:
      (nothing executed)
    Apk android:
      (nothing executed)
    Apk com.android.settings:
      (nothing executed)
    Apk com.android.providers.settings:
      (nothing executed)
  u0a148:
    Wake lock MMS Connection: 3s 868ms partial (0 times) realtime
    Apk org.thoughtcrime.securesms:
      (nothing executed)
Statistics since last charge:
  System starts: 1, currently on battery: false
  Time on battery: 0ms (0,0%) realtime, 0ms (0,0%) uptime
  Total run time: 2d 2h 37m 37s 717ms realtime, 2d 2h 37m 37s 716ms uptime, 
  Screen on: 0ms (---%), Input events: 0, Active phone call: 0ms (---%)
  Screen brightnesses: No activity
  Mobile total received: 0B, Total sent: 0B
  Wi-Fi total received: 0B, Total sent: 0B
  Total full wakelock time: 0ms , Total partial wakelock time: 0ms 
  Signal levels: No activity
  Signal scanning time: 0ms 
  Radio types: No activity
  Radio data uptime when unplugged: 0 ms
  Wifi on: 0ms (---%), Wifi running: 0ms (---%), Bluetooth on: 0ms (---%)

  Device battery use since last full charge
    Amount discharged (lower bound): 0
    Amount discharged (upper bound): 0
    Amount discharged while screen on: 0
    Amount discharged while screen off: 0


Statistics since last unplugged:
  Time on battery: 0ms (0,0%) realtime, 0ms (0,0%) uptime
  Total run time: 2d 2h 37m 37s 717ms realtime, 2d 2h 37m 37s 717ms uptime, 
  Screen on: 0ms (---%), Input events: 0, Active phone call: 0ms (---%)
  Screen brightnesses: No activity
  Mobile total received: 0B, Total sent: 0B
  Wi-Fi total received: 0B, Total sent: 0B
  Total full wakelock time: 0ms , Total partial wakelock time: 0ms 
  Signal levels: No activity
  Signal scanning time: 0ms 
  Radio types: No activity
  Radio data uptime when unplugged: 0 ms
  Wifi on: 0ms (---%), Wifi running: 0ms (---%), Bluetooth on: 0ms (---%)

  Device is currently plugged into power
    Last discharge cycle start level: 0
    Last discharge cycle end level: 0
    Amount discharged while screen on: 0
    Amount discharged while screen off: 0


´´´

@mcginty
Copy link
Contributor

mcginty commented Feb 20, 2015

Oh shit, yeah:

  u0a148:
    Wi-Fi network: 179,91KB received, 22,53KB sent
    Wake lock *vibrator*: 1s 588ms partial (5 times) realtime
    Wake lock Directory Refresh: 574ms partial (1 times) realtime
    Wake lock MMS Connection: 2h 50m 50s 400ms partial (0 times) realtime <--------
    Wake lock AlarmManager: 100ms partial (1 times) realtime
    TOTAL wake: 2h 50m 52s 662ms partial realtime
    Vibrator: 3s 500ms realtime (10 times)
    Foreground activities: 3m 57s 249ms realtime (26 times)
    Proc *wakelock*:
      CPU: 3m 6s 960ms usr + 6m 48s 60ms krn ; 0ms fg
    Proc org.thoughtcrime.securesms:
      CPU: 18s 560ms usr + 2s 600ms krn ; 18s 520ms fg
    Apk org.thoughtcrime.securesms:
      1 wakeup alarms

check out that "MMS Connection" wake lock held by MmsRadio. 3 hours. Thanks for following up @alex42ka, that was very helpful.

@mcginty
Copy link
Contributor

mcginty commented Feb 20, 2015

While not an ultimate solution, you can force quit TextSecure and that should release the wakelock.

@jeremymasters
Copy link

out of curiosity, can wake locks pile up from multiple mms?

@scroom
Copy link
Author

scroom commented Feb 21, 2015

In fact I tried several times to send MMS (which didn't work with my new provider).

@jeremymasters
Copy link

@mcginty Is this something that will be fixed in a small release?

mcginty added a commit to mcginty/TextSecure that referenced this issue Feb 27, 2015
@mcginty
Copy link
Contributor

mcginty commented Feb 27, 2015

@jeremymasters i took a look at the code and there's a PR out with a proposed fix. This probably doesn't warrant an small release specifically for this issue, so will come out with the next planned release.

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

No branches or pull requests

3 participants