[General Questions and Answers] Mad-Marty:
Hi,

I'm trying to find out why my phone has so much battery usage (around 1 % / hour with data off and not doing anything).

It used to be around 0.5 % or less. Even with a new battery it's still the same (just to rule out battery degradation).

The used rom is CyanogenMod 10 (JB 4.1.2) on a LG Optimus One.

Can anyone please tell me, why the alarm manager is so much active, despite the dumpsys not adding up to that time amount?

The Time in this test is 3d, 3h, 45m 2s with a deep sleep ratio of 98.2 %.

According to BetterBatteryStats partial wakelocks:

* there are suprisingly 2 processes shown as "AlarmManager", one with a lot of time and one with little time

AlarmManager was active for 11h 35m with a count of 1539 (15.3 %)

The 2nd position is event log service, with a much short time (31m).

The dumpsys never adds up to the 11 hour thing.

Thanks for anyone who can explain the output in advance.

Also, the com.google.android.gsf is referencing GTALK - I deleted GTALK so there should not be anything running GTALK.apk on this phone.

And since dumpsys alarm outputs are required to make any useful assumption, here it is :) :

Current Alarm Manager state:

Realtime wakeup (now=2014-03-27 17:43:30):
RTC_WAKEUP #21: Alarm{410a1ae8 type 0 com.google.android.partnersetup}
type=0 when=+3d15h25m21s361ms repeatInterval=0 count=0
operation=PendingIntent{410a0658: PendingIntentRecord{410c8df8 com.google.android.partnersetup startService}}
RTC_WAKEUP #20: Alarm{411a43b8 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{411a43a8: PendingIntentRecord{411cad38 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #19: Alarm{415c45e0 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{415c45d0: PendingIntentRecord{416c86d8 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #18: Alarm{41596df8 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{415984c0: PendingIntentRecord{40fcf7d8 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #17: Alarm{419f0038 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{4157d918: PendingIntentRecord{41059ce0 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #16: Alarm{41839268 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{41839258: PendingIntentRecord{41839110 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #15: Alarm{41576f80 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{41576f70: PendingIntentRecord{41169438 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #14: Alarm{41583ac8 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{413285a0: PendingIntentRecord{41601ae0 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #13: Alarm{41844158 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{41844148: PendingIntentRecord{416c3a18 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #12: Alarm{415fe178 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{4155f288: PendingIntentRecord{41570358 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #11: Alarm{415a1168 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{416fd5f8: PendingIntentRecord{4107da18 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #10: Alarm{4183c960 type 0 com.google.android.gsf}
type=0 when=+3d8h3m56s895ms repeatInterval=578233000 count=0
operation=PendingIntent{416acb28: PendingIntentRecord{40fe8618 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #9: Alarm{415ce408 type 0 com.whatsapp}
type=0 when=+10h16m29s762ms repeatInterval=0 count=0
operation=PendingIntent{415e08e8: PendingIntentRecord{415b8e00 com.whatsapp broadcastIntent}}
RTC_WAKEUP #8: Alarm{419cd800 type 0 com.socialnmobile.dictapps.notepad.color.note}
type=0 when=+10h6m1s413ms repeatInterval=86400000 count=0
operation=PendingIntent{419cd7f0: PendingIntentRecord{412de5c0 com.socialnmobile.dictapps.notepad.color.note broadcastIntent}}
RTC_WAKEUP #7: Alarm{41171530 type 0 com.google.android.gms}
type=0 when=+9h25m17s317ms repeatInterval=86400000 count=1
operation=PendingIntent{41004940: PendingIntentRecord{411ad470 com.google.android.gms startService}}
RTC_WAKEUP #6: Alarm{41a0b428 type 0 com.google.android.gms}
type=0 when=+8h43m46s226ms repeatInterval=0 count=0
operation=PendingIntent{41a0b418: PendingIntentRecord{412117b8 com.google.android.gms broadcastIntent}}
RTC_WAKEUP #5: Alarm{41145a08 type 0 com.android.vending}
type=0 when=+7h13m54s38ms repeatInterval=0 count=0
operation=PendingIntent{411459f8: PendingIntentRecord{411df470 com.android.vending startService}}
RTC_WAKEUP #4: Alarm{41061b98 type 0 com.socialnmobile.dictapps.notepad.color.note}
type=0 when=+6h16m59s762ms repeatInterval=86400000 count=0
operation=PendingIntent{411779c0: PendingIntentRecord{41068100 com.socialnmobile.dictapps.notepad.color.note broadcastIntent}}
RTC_WAKEUP #3: Alarm{4115fa38 type 0 com.whatsapp}
type=0 when=+6h16m29s762ms repeatInterval=0 count=0
operation=PendingIntent{4115fa28: PendingIntentRecord{41420560 com.whatsapp broadcastIntent}}
RTC_WAKEUP #2: Alarm{41006320 type 0 com.google.android.gms}
type=0 when=+5h59m15s443ms repeatInterval=0 count=0
operation=PendingIntent{410a6560: PendingIntentRecord{41064370 com.google.android.gms broadcastIntent}}
RTC_WAKEUP #1: Alarm{4159e770 type 0 com.android.providers.calendar}
type=0 when=+3h1m51s439ms repeatInterval=0 count=0
operation=PendingIntent{415669e0: PendingIntentRecord{41566898 com.android.providers.calendar broadcastIntent}}
RTC_WAKEUP #0: Alarm{41483aa8 type 0 com.google.android.gsf}
type=0 when=+2m35s446ms repeatInterval=1800000 count=0
operation=PendingIntent{41483a98: PendingIntentRecord{40ffec70 com.google.android.gsf broadcastIntent}}
RTC #5: Alarm{4100bdd0 type 1 android}
type=1 when=+6h16m29s762ms repeatInterval=0 count=0
operation=PendingIntent{413c7960: PendingIntentRecord{413eb750 android broadcastIntent}}
RTC #4: Alarm{410bab18 type 1 com.wetter.androidclient}
type=1 when=+2h57m32s102ms repeatInterval=0 count=0
operation=PendingIntent{41307d78: PendingIntentRecord{410d9228 com.wetter.androidclient broadcastIntent}}
RTC #3: Alarm{416c9fd0 type 1 com.wetter.androidclient}
type=1 when=+2h57m6s442ms repeatInterval=0 count=0
operation=PendingIntent{416c9fc0: PendingIntentRecord{416c9d90 com.wetter.androidclient broadcastIntent}}
RTC #2: Alarm{41b3a540 type 1 com.wetter.androidclient}
type=1 when=+2h53m25s159ms repeatInterval=0 count=0
operation=PendingIntent{41b3a530: PendingIntentRecord{41b3a3e8 com.wetter.androidclient broadcastIntent}}
RTC #1: Alarm{413a1878 type 1 com.wetter.androidclient}
type=1 when=+2h14m47s556ms repeatInterval=0 count=0
operation=PendingIntent{41410fa0: PendingIntentRecord{413b9b18 com.wetter.androidclient broadcastIntent}}
RTC #0: Alarm{4130e5b8 type 1 com.wetter.androidclient}
type=1 when=+30s399ms repeatInterval=0 count=0
operation=PendingIntent{4130e5a8: PendingIntentRecord{412384e8 com.wetter.androidclient broadcastIntent}}

Elapsed realtime wakeup (now=+3d8h36m21s912ms):
ELAPSED_WAKEUP #7: Alarm{41295010 type 2 com.google.android.gms}
type=2 when=+20d2h58m22s224ms repeatInterval=0 count=0
operation=PendingIntent{4120d048: PendingIntentRecord{411f2358 com.google.android.gms startService}}
ELAPSED_WAKEUP #6: Alarm{41261ac0 type 2 com.google.android.gms}
type=2 when=+20d2h58m21s881ms repeatInterval=0 count=0
operation=PendingIntent{41366c98: PendingIntentRecord{410033f8 com.google.android.gms startService}}
ELAPSED_WAKEUP #5: Alarm{4128cbd0 type 2 com.google.android.gms}
type=2 when=+20d2h58m21s721ms repeatInterval=0 count=0
operation=PendingIntent{413b34f8: PendingIntentRecord{4108c420 com.google.android.gms startService}}
ELAPSED_WAKEUP #4: Alarm{4101fe80 type 2 com.google.android.gms}
type=2 when=+20d2h58m21s9ms repeatInterval=0 count=0
operation=PendingIntent{4102c7d8: PendingIntentRecord{40ffe3d0 com.google.android.gms startService}}
ELAPSED_WAKEUP #3: Alarm{40ffc7b0 type 2 android}
type=2 when=+15h38m38s88ms repeatInterval=86400000 count=1
operation=PendingIntent{40ffd940: PendingIntentRecord{411fd0e8 android broadcastIntent}}
ELAPSED_WAKEUP #2: Alarm{415afb20 type 2 android}
type=2 when=+1h57m28s67ms repeatInterval=0 count=0
operation=PendingIntent{413755e0: PendingIntentRecord{413562e8 android broadcastIntent}}
ELAPSED_WAKEUP #1: Alarm{41062d48 type 2 android}
type=2 when=+38m38s88ms repeatInterval=3600000 count=1
operation=PendingIntent{4147eb80: PendingIntentRecord{41095a30 android broadcastIntent}}
ELAPSED_WAKEUP #0: Alarm{416f1d18 type 2 com.google.android.gsf}
type=2 when=+25m47s183ms repeatInterval=0 count=0
operation=PendingIntent{416e3f90: PendingIntentRecord{416d82b0 com.google.android.gsf broadcastIntent}}
ELAPSED #7: Alarm{415a0e58 type 3 android}
type=3 when=+20h2m29s354ms repeatInterval=0 count=0
operation=PendingIntent{410a7ff8: PendingIntentRecord{412e85a8 android broadcastIntent}}
ELAPSED #6: Alarm{410108b8 type 3 com.android.phone}
type=3 when=+7h38m38s88ms repeatInterval=28800000 count=1
operation=PendingIntent{410da060: PendingIntentRecord{410daf60 com.android.phone broadcastIntent}}
ELAPSED #5: Alarm{4114f5f8 type 3 com.google.android.gms}
type=3 when=+4h2m26s505ms repeatInterval=0 count=0
operation=PendingIntent{4114f5e8: PendingIntentRecord{411715b8 com.google.android.gms broadcastIntent}}
ELAPSED #4: Alarm{419d4790 type 3 com.whatsapp}
type=3 when=+23m38s88ms repeatInterval=3600000 count=1
operation=PendingIntent{419d4780: PendingIntentRecord{4148efd0 com.whatsapp broadcastIntent}}
ELAPSED #3: Alarm{4118d3a0 type 3 android}
type=3 when=+8m38s88ms repeatInterval=1800000 count=1
operation=PendingIntent{41290fc8: PendingIntentRecord{412311c8 android broadcastIntent}}
ELAPSED #2: Alarm{410fb748 type 3 android}
type=3 when=+3m18s578ms repeatInterval=0 count=0
operation=PendingIntent{4145aa38: PendingIntentRecord{41350130 android broadcastIntent}}
ELAPSED #1: Alarm{41b0ad58 type 3 android}
type=3 when=+29s715ms repeatInterval=0 count=0
operation=PendingIntent{413ea568: PendingIntentRecord{413ea508 android broadcastIntent}}
ELAPSED #0: Alarm{4118fd28 type 3 com.android.phone}
type=3 when=+24s766ms repeatInterval=0 count=0
operation=PendingIntent{41388c40: PendingIntentRecord{41652da0 com.android.phone broadcastIntent}}

Broadcast ref count: 0

Alarm Stats:
com.google.android.gsf
23558ms running, 209 wakeups
22 alarms: act=com.google.android.intent.action.GTALK_RECONNECT flg=0x14
161 alarms: flg=0x14
7 alarms: act=com.google.android.intent.action.MCS_HEARTBEAT flg=0x14
19 alarms: act=com.google.android.intent.action.SEND_IDLE flg=0x14
ar.com.basejuegos.simplealarm
304ms running, 3 wakeups
3 alarms: flg=0x14
android
329330ms running, 108 wakeups
3 alarms: act=android.intent.action.DATE_CHANGED flg=0x20000014
1078 alarms: act=android.intent.action.TIME_TICK flg=0x40000014
161 alarms: act=com.android.server.action.NETWORK_STATS_POLL flg=0x14
273 alarms: act=com.android.server.ThrottleManager.action.POLL flg=0x14
83 alarms: act=android.appwidget.action.APPWIDGET_UPDATE flg=0x14
17 alarms: act=com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD flg=0x14
4 alarms: act=com.android.server.NetworkTimeUpdateService.action.POLL flg=0x14
8 alarms: act=android.content.syncmanager.SYNC_ALARM flg=0x14
com.android.vending
860ms running, 21 wakeups
11 alarms: flg=0x4 cmp=com.android.vending/com.google.android.finsky.services.DailyHygiene
10 alarms: flg=0x4 cmp=com.android.vending/com.google.android.finsky.services.ContentSyncService
com.whatsapp
35095ms running, 29 wakeups
3 alarms: act=ALARM_MESSAGES_DB_BACKUP flg=0x14
3 alarms: act=ALARM_ROTATE_LOGS flg=0x14
11 alarms: act=ALARM_AVAILABLE_TIMEOUT flg=0x14
84 alarms: act=ALARM_ACTION flg=0x14
12 alarms: act=ALARM_CLIENT_PING_TIMEOUT flg=0x14
com.android.providers.calendar
45286ms running, 36 wakeups
36 alarms: act=com.android.providers.calendar.intent.CalendarProvider2 flg=0x14
com.wetter.androidclient
6923ms running, 0 wakeups
1 alarms: flg=0x4 cmp=com.wetter.androidclient/.ads.smartAds.JsonFeedRedownloadService
128 alarms: act=com.wetter.androidclient.action.APPWIDGET_UPDATE_4x2 flg=0x14
com.google.android.gms
7457ms running, 38 wakeups
9 alarms: flg=0x14
3 alarms: act=com.google.android.gms.auth.authzen.CHECK_REGISTRATION flg=0x14
3 alarms: act=com.google.android.gms.icing.INDEX_RECURRING_MAINTENANCE flg=0x4 cmp=com.google.android.gms/.icing.service.IndexWorkerService
32 alarms: act=com.google.android.intent.action.SEND_IDLE flg=0x14
com.android.phone
21313ms running, 7 wakeups
59 alarms: act=com.android.internal.telephony.gprs-data-stall flg=0x14
10 alarms: act=com.android.phone.UPDATE_CALLER_INFO_CACHE flg=0x14
7 alarms: act=com.android.internal.telephony.gprs-reconnect.0 flg=0x14
com.socialnmobile.dictapps.notepad.color.note
655ms running, 3 wakeups
3 alarms: act=note.socialnmobile.intent.action.AUTO_SYNC flg=0x14