YetAnotherForumUser

Senior Member
Oct 31, 2008
470
1,665
0
Hi, on page 1572 of this thread is nice post how to Supercharge your phone. I did it with Quarx's latest rom and battery life is quite good + phone works as charm. Give it a shot.
'supercharging' does not get rid of runaway processes. Try to find the process responsible for keeping the phone awake and do something about it. That something depends on which program lies behind the insomnia. If it is something silly like facebook just kill it with fire and find an alternative. If it is something you really can not do without you can search deeper for the cause of its misbehaviour. It could be bad data, a firewall blocking its access to the 'net, a simple bug, a runaway native process, etc. Sometimes it helps to clear that app's data and cache. Sometimes it helps to just restart the app or the phone.

On a side note, I really would like to have a better way of solving these problems than the standard 'clear cache/data, clear dalvik cache, reboot, wipe, reinstall' grind which to me is reminiscent of Microsoft products. Coming from a unix/linux background I'm used to solving problems by finding the cause and the cure, not by dumping and reloading.

---------- Post added at 09:59 PM ---------- Previous post was at 09:23 PM ----------

This is what the pending alarm table on my phone currently looks like. Why does com.android.deskclock need to register about 100 wakeups to make the alarm sound tomorrow morning? I'd say 1 single rtc_wakeup would suffice...

Notice that all those pending alarms are to go off at the same moment. Turning off the alarm which lies behind these scheduled wakeups does not make them disappear. Editing the alarm to go off an hour earlier adds a single new scheduled wakeup. Editing this to go off at the original alarm time changes that scheduled wakeup.

Restarting zygote ([FONT="Monospace, Courier New"]stop; sleep 5; start[/FONT]) clears and rebuilds the alarm table. After rebuilding it contains two scheduled wakeups for com.android.deskclock, again at exactly the same time. How these 2 grow into almost 100 is not yet clear, but what is clear is that this is a bug.

Code:
$ dumpsys alarm                                                                
Current Alarm Manager state:
 
  Realtime wakeup (now=2013-03-02 21:11:44):
  RTC_WAKEUP #100: Alarm{40f9c738 type 0 com.android.providers.calendar}
    type=0 when=+21h36m50s674ms repeatInterval=0 count=0
    operation=PendingIntent{40fa6d30: PendingIntentRecord{40f9c700 com.android.providers.calendar broadcastIntent}}
  RTC_WAKEUP #99: Alarm{41042b58 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41084aa8: PendingIntentRecord{41071548 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #98: Alarm{40ff8e28 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41051968: PendingIntentRecord{40ff92b0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #97: Alarm{40df5c88 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40df5c78: PendingIntentRecord{40df5b88 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #96: Alarm{40f6b5f0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40f78800: PendingIntentRecord{40f787c8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #95: Alarm{40f21888 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{410149f0: PendingIntentRecord{40f217c0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #94: Alarm{411a0738 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40f40a90: PendingIntentRecord{41011120 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #93: Alarm{418a5dd0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4121cf58: PendingIntentRecord{4186b518 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #92: Alarm{415e2ce8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41891dd8: PendingIntentRecord{417ec1a8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #91: Alarm{418f4458 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4121bf38: PendingIntentRecord{40de0f70 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #90: Alarm{41118278 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41538c78: PendingIntentRecord{41183b38 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #89: Alarm{41062fc0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4123cad0: PendingIntentRecord{41062f08 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #88: Alarm{40eac590 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{415e3f18: PendingIntentRecord{40eac4f0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #87: Alarm{41713150 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{417e0f08: PendingIntentRecord{41725668 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #86: Alarm{41058858 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41534d30: PendingIntentRecord{4113aa90 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #85: Alarm{412f5cb8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41306f38: PendingIntentRecord{412f5c18 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #84: Alarm{41576be0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40f8bda8: PendingIntentRecord{41576b40 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #83: Alarm{417154e0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41265c40: PendingIntentRecord{41549130 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #82: Alarm{40f994d0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4128cd90: PendingIntentRecord{40feef98 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #81: Alarm{418bc020 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{418fc5a8: PendingIntentRecord{418fc548 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #80: Alarm{40e8b290 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{415786f8: PendingIntentRecord{40e8b1b8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #79: Alarm{418a9a78 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40e3f420: PendingIntentRecord{418a99d8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #78: Alarm{413036c0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40e27310: PendingIntentRecord{412bcc80 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #77: Alarm{40eb7000 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40f4c968: PendingIntentRecord{4186af18 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #76: Alarm{41551488 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{417527d0: PendingIntentRecord{415693b0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #75: Alarm{4153a788 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4105aac8: PendingIntentRecord{4153a698 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #74: Alarm{40f35168 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40e198d0: PendingIntentRecord{4175f660 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #73: Alarm{40eb5f78 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40e994d8: PendingIntentRecord{40ea7558 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #72: Alarm{40f23298 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40f24178: PendingIntentRecord{40f24140 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #71: Alarm{40f46158 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40f85148: PendingIntentRecord{40f5fe28 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #70: Alarm{418aab88 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{418f5448: PendingIntentRecord{4172c8e8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #69: Alarm{41007c78 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41047318: PendingIntentRecord{4100bc38 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #68: Alarm{412e63f0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41544b90: PendingIntentRecord{41339410 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #67: Alarm{41534850 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41465a80: PendingIntentRecord{415347d8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #66: Alarm{40fa02a0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40fb6948: PendingIntentRecord{40fb68c8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #65: Alarm{40fc9ba8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{412ada90: PendingIntentRecord{412a4380 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #64: Alarm{411c6d48 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{411ea650: PendingIntentRecord{41300b60 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #63: Alarm{41536358 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40eabda0: PendingIntentRecord{40ecf930 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #62: Alarm{41217a20 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4172f160: PendingIntentRecord{412179a8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #61: Alarm{41543588 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40dfc568: PendingIntentRecord{410b78b0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #60: Alarm{4114ffc8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41466650: PendingIntentRecord{4153a4e0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #59: Alarm{40fb3ee8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4106b308: PendingIntentRecord{410a5858 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #58: Alarm{411a2f40 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{413499c8: PendingIntentRecord{412b6db8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #57: Alarm{41458f10 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{412bc4e8: PendingIntentRecord{41458e70 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #56: Alarm{418af738 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41940f80: PendingIntentRecord{41105ff8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #55: Alarm{410dd080 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{411334d8: PendingIntentRecord{41151230 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #54: Alarm{40ef69c0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41139618: PendingIntentRecord{40ef6920 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #53: Alarm{41534f08 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4186a668: PendingIntentRecord{413e0328 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #52: Alarm{4182e760 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4140e268: PendingIntentRecord{4140e060 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #51: Alarm{410f6d80 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41548728: PendingIntentRecord{4133f280 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #50: Alarm{41130700 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41143a30: PendingIntentRecord{410d21e8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #49: Alarm{40faef00 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40feef40: PendingIntentRecord{40ffe650 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #48: Alarm{40df5f90 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40dfa170: PendingIntentRecord{40dfa138 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #47: Alarm{41546310 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40fa0438: PendingIntentRecord{4181df78 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #46: Alarm{40e8c7e8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40e31a30: PendingIntentRecord{40df7080 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #45: Alarm{412be788 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4133deb8: PendingIntentRecord{40fa6b90 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #44: Alarm{4108d7a0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{410d11e0: PendingIntentRecord{4109b660 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #43: Alarm{410686c0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4130c250: PendingIntentRecord{412a42f8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #42: Alarm{4185c3f8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{410286d0: PendingIntentRecord{4170c0c0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #41: Alarm{4121d550 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40ecf020: PendingIntentRecord{40fbb230 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #40: Alarm{40e5ecf8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40fd4420: PendingIntentRecord{40e74620 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #39: Alarm{4103c820 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40fc2a20: PendingIntentRecord{4106c1b0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #38: Alarm{4184fda8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{418a0200: PendingIntentRecord{418aac00 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #37: Alarm{4182a850 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41212610: PendingIntentRecord{4182a7b0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #36: Alarm{40ef4f10 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{416fcd70: PendingIntentRecord{40ef4e70 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #35: Alarm{41576a50 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4157a0c0: PendingIntentRecord{415769b0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #34: Alarm{411c6938 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{411d4550: PendingIntentRecord{411d4518 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #33: Alarm{41752198 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41774268: PendingIntentRecord{41774208 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #32: Alarm{4109e6d8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{410f29b0: PendingIntentRecord{410d8438 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #31: Alarm{4120b748 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4121bd88: PendingIntentRecord{4113eaa0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #30: Alarm{40fb6b40 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4108b768: PendingIntentRecord{40fe3dc8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #29: Alarm{411c5108 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4120bc18: PendingIntentRecord{41121260 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #28: Alarm{41541ef0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{415e0fb8: PendingIntentRecord{415dfbd0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #27: Alarm{40f21130 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40f2cf58: PendingIntentRecord{40f76dc0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #26: Alarm{41897068 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41863518: PendingIntentRecord{41863298 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #25: Alarm{41726ba0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41004408: PendingIntentRecord{41726b00 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #24: Alarm{40ddb1e0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40e9c288: PendingIntentRecord{40df4538 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #23: Alarm{419420c8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41185998: PendingIntentRecord{41942050 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #22: Alarm{41334540 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4172fe10: PendingIntentRecord{413344a0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #21: Alarm{40fb0eb0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40ed4110: PendingIntentRecord{415c40e8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #20: Alarm{417d5790 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40eda7b0: PendingIntentRecord{417d56f0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #19: Alarm{40eb5ec0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40ea6a48: PendingIntentRecord{40eb5e20 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #18: Alarm{4118cdc8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40f4ba10: PendingIntentRecord{4118cd50 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #17: Alarm{413025a0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40dd5de0: PendingIntentRecord{41568348 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #16: Alarm{415d25e0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41215bf0: PendingIntentRecord{415d2540 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #15: Alarm{41570318 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40dd4c68: PendingIntentRecord{415701c8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #14: Alarm{412e1f20 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4154de98: PendingIntentRecord{412e1e48 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #13: Alarm{40f2e848 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40ef7608: PendingIntentRecord{40ef75a8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #12: Alarm{40e84bb8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41032030: PendingIntentRecord{40e84b40 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #11: Alarm{40e61d88 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40e83d70: PendingIntentRecord{40e83d38 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #10: Alarm{4109df20 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{414f3380: PendingIntentRecord{41576978 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #9: Alarm{412befe8 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{410c6160: PendingIntentRecord{413398c0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #8: Alarm{40f9b4c0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{412d1578: PendingIntentRecord{41189ee0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #7: Alarm{40f540a0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41302c90: PendingIntentRecord{40f39cc8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #6: Alarm{4125c268 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40ead930: PendingIntentRecord{4110d058 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #5: Alarm{41068670 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4108a9a8: PendingIntentRecord{4107f8f0 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #4: Alarm{4113ec90 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{410ad108: PendingIntentRecord{410acf78 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #3: Alarm{41547400 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41532498: PendingIntentRecord{41532438 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #2: Alarm{41578178 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{41166378: PendingIntentRecord{416a3f38 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #1: Alarm{411feaa0 type 0 com.android.deskclock}
    type=0 when=+11h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{4118fbf8: PendingIntentRecord{41174130 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #0: Alarm{411dcbd8 type 0 com.sgiggle.production}
    type=0 when=+1m14s258ms repeatInterval=480000 count=1
    operation=PendingIntent{412148c8: PendingIntentRecord{41158d68 com.sgiggle.production startService}}
  RTC #1: Alarm{4100bc90 type 1 android}
    type=1 when=+2h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{410d7478: PendingIntentRecord{410c18a8 android broadcastIntent}}
  RTC #0: Alarm{40dd9910 type 1 com.android.calendar}
    type=1 when=+2h48m15s441ms repeatInterval=0 count=0
    operation=PendingIntent{40e12380: PendingIntentRecord{4111f948 com.android.calendar broadcastIntent}}
 
  Elapsed realtime wakeup (now=+20h35m10s443ms):
  ELAPSED_WAKEUP #0: Alarm{4153afa0 type 2 android}
    type=2 when=+1h12m0s103ms repeatInterval=0 count=0
    operation=PendingIntent{412a53d0: PendingIntentRecord{412a5370 android broadcastIntent}}
  ELAPSED #5: Alarm{41148f38 type 3 android}
    type=3 when=+17d2h48m5s258ms repeatInterval=0 count=0
    operation=PendingIntent{410c4000: PendingIntentRecord{410a7fd8 android broadcastIntent}}
  ELAPSED #4: Alarm{418a9d10 type 3 android}
    type=3 when=+20h31m56s824ms repeatInterval=0 count=0
    operation=PendingIntent{40e193d0: PendingIntentRecord{41211cd8 android broadcastIntent}}
  ELAPSED #3: Alarm{40fc72d8 type 3 com.android.phone}
    type=3 when=+3h39m49s557ms repeatInterval=28800000 count=1
    operation=PendingIntent{40fe8f70: PendingIntentRecord{40fc8080 com.android.phone broadcastIntent}}
  ELAPSED #2: Alarm{41263538 type 3 android}
    type=3 when=+9m49s557ms repeatInterval=1800000 count=1
    operation=PendingIntent{4115d1c8: PendingIntentRecord{411ae228 android broadcastIntent}}
  ELAPSED #1: Alarm{417414a8 type 3 android}
    type=3 when=+1m35s889ms repeatInterval=0 count=0
    operation=PendingIntent{40dd96d8: PendingIntentRecord{40f82eb0 android broadcastIntent}}
  ELAPSED #0: Alarm{4156c398 type 3 android}
    type=3 when=+15s103ms repeatInterval=0 count=0
    operation=PendingIntent{410d7698: PendingIntentRecord{410d73f8 android broadcastIntent}}
 
  Broadcast ref count: 0
 
  Alarm Stats:
  com.sgiggle.production
    924ms running, 153 wakeups
    1 alarms: act=tango.service.STOP.SMS.LISTENER flg=0x14
    152 alarms: act=tango.service.KEEP_ALIVE flg=0x4 cmp=com.sgiggle.production/.service.MessageService
  com.android.providers.calendar
    5661ms running, 94 wakeups
    94 alarms: act=com.android.providers.calendar.intent.CalendarProvider2 flg=0x14
  android
    206068ms running, 30 wakeups
    8 alarms: act=com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD flg=0x14
    733 alarms: act=android.intent.action.TIME_TICK flg=0x40000014
    4 alarms: act=com.android.server.WifiManager.action.DEVICE_IDLE flg=0x14
    41 alarms: act=com.android.server.action.NETWORK_STATS_POLL flg=0x14
    104 alarms: act=com.android.server.ThrottleManager.action.POLL flg=0x14
    12 alarms: act=android.content.syncmanager.SYNC_ALARM flg=0x14
    6 alarms: act=com.android.server.WifiManager.action.DELAYED_DRIVER_STOP flg=0x14
  com.android.phone
    591ms running, 0 wakeups
    2 alarms: act=com.android.phone.UPDATE_CALLER_INFO_CACHE flg=0x14
  com.android.settings
    4343ms running, 1 wakeups
    1 alarms: act=android.net.conn.CONNECTIVITY_CHANGE flg=0x14
 
Last edited:

fideliofidelio

Senior Member
Feb 23, 2011
125
33
0
I'll try it now thanks for that :)

EDIT1: ok the charging procedure is definitely better with this one --> there are no leaps
I'll report back with the discharging process :)

EDIT2: This is really working great :) quarx should add this to first post!
Green lens here too.
What do you mean with great? Are you talking about battery drops?

That's my main problem but everywhere I see people just recommend changing the battery (mine is 2.5 years old). The thing is I can't find original Motorola battery for the defy.

I'm not asking three days with one charge, just the right battery percent displayed in the notification bar.

Cheers.
 

@non4

Senior Member
Jun 11, 2012
3,968
839
0
Gothicus
Green lens here too.
What do you mean with great? Are you talking about battery drops?

That's my main problem but everywhere I see people just recommend changing the battery (mine is 2.5 years old). The thing is I can't find original Motorola battery for the defy.

I'm not asking three days with one charge, just the right battery percent displayed in the notification bar.

Cheers.
When I had defy I bought an anker slimtalk battery, slightly better capacity than the original. Searching for original is dangerous due to fakes

Sent from my LG-P880
 

Konamy

Senior Member
Aug 10, 2011
227
42
0
Distrito Federal
I Need Some Help

Ok, guys... A friend of mine installed this rom in his Defy+. My brother got a Defy Red Lens, and i installed the gingerbread 2.3.5 in it. I want to install this rom for him. Can someone tell me the step to step to do it? I don't want to kill his phone. Please, help me. Thank you, guys.
 

blessani

Member
Feb 5, 2011
26
12
0
Insane load averages

Eugh. So I've been running the ROM for the day - and its just plain slow and laggy.

The load averages are ALWAYS over 3 - and peaks seriously high



This surely isn't normal behaviour? This is a really disappointing experience, its slow as hell.

FYI. There are only base apps installed, 2 gmail accounts, 3 email accounts. Clocked at 300/600/1000/1000 using smartass.

---------- Post added at 05:09 AM ---------- Previous post was at 05:05 AM ----------

Ok, guys... A friend of mine installed this rom in his Defy+. My brother got a Defy Red Lens, and i installed the gingerbread 2.3.5 in it. I want to install this rom for him. Can someone tell me the step to step to do it? I don't want to kill his phone. Please, help me. Thank you, guys.
Follow the first 10 steps here, http://forum.xda-developers.com/showpost.php?p=38560698&postcount=15719
 
  • Like
Reactions: Konamy

cyrusct82

Senior Member
Aug 22, 2010
1,576
730
143
Constanţa
Eugh. So I've been running the ROM for the day - and its just plain slow and laggy.

The load averages are ALWAYS over 3 - and peaks seriously high


This surely isn't normal behaviour? This is a really disappointing experience, its slow as hell.

FYI. There are only base apps installed, 2 gmail accounts, 3 email accounts. Clocked at 300/600/1000/1000 using smartass.
[/url]


Use default governor "interactive" is the only one that works with this Rom.

Sent from my MB526 using xda premium
 
Last edited:

drunk_ryder24

Senior Member
Jan 26, 2012
100
35
0
brasov
I'll try it now thanks for that :)

EDIT1: ok the charging procedure is definitely better with this one --> there are no leaps
I'll report back with the discharging process :)

EDIT2: This is really working great :) quarx should add this to first post!
i remember from cm9 by epsylon it was a similar bump with battery life and reading and this zip did the trick
 

bone101

Senior Member
Jan 6, 2012
692
137
0
AW: [JB] CM10 Android 4.1.2 for the Defy(+)

I deleted the picasa uploder service and got lower battery usage during night ( deep sleep) .

About 2% in 8 hours

How ?

Search for picasa and del. all files using root explorer or else



MB525 red lense
 

Pacquix

Member
Aug 29, 2012
34
8
0
for me the battery drain with build 20.02 lasted 2 days, and now it's as good as before. Only "random" lags remaining, even if now I have set max 1 process in background
 

pupiloalpha

Member
Dec 1, 2011
42
16
0
Belo Horizonte
We need insert this in ROM

Here's some steps I did to achieve better performance and better battery consumption.
With this configuration the phone was quite fast and responsive and this battery lasted 2 and a half days and still has 30%.
No lags, no FCs, no ringtone bug.

I did this walkthrough to a friend, so ignore obvious parts.

The first two times after installing the ROM, the battery drained very fast and with a few drops. After the third cycle the battery completely normalized.

Thanks and credits to the developers! Not to me! =)
Hi folks, anyone think to insert this features in our Defy ROM by Stock features?

Just an idea.
 

YetAnotherForumUser

Senior Member
Oct 31, 2008
470
1,665
0
As a follow-up on my bug report about com.android.deskclock I can add that the bug still manifests itself after changing to the AOSP 4.2.2 version of DeskClock.apk (the version included in Quarx' latest experimental distribution).

The bug probably lies with the use of PendingIntent.FLAG_CANCEL_CURRENT instead of PendingIntent.FLAG_REPLACE_CURRENT in src/com/android/deskclock/Alarms.java in the DeskClock app. I don't have time to check this at the moment but I'll give it a go at some later moment.

This is the state of the alarm table on my phone after first adding, then deleting an alarm scheduled to go off in about 37 minutes:

Code:
  Realtime wakeup (now=2013-03-03 12:22:34):
  RTC_WAKEUP #12: Alarm{40e920d8 type 0 com.google.android.gsf}
    type=0 when=+6d5h6m27s211ms repeatInterval=571535000 count=0
    operation=PendingIntent{40eaf000: PendingIntentRecord{40e93330 com.google.android.gsf broadcastIntent}}
  RTC_WAKEUP #11: Alarm{41554ae0 type 0 com.android.providers.calendar}
    type=0 when=+20h48m18s937ms repeatInterval=0 count=0
    operation=PendingIntent{410760d8: PendingIntentRecord{41554a40 com.android.providers.calendar broadcastIntent}}
  RTC_WAKEUP #10: Alarm{41334a98 type 0 com.android.deskclock}
    type=0 when=+19h7m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{412f57b8: PendingIntentRecord{413349a8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #9: Alarm{41567e38 type 0 com.android.vending}
    type=0 when=+14h20m45s144ms repeatInterval=0 count=0
    operation=PendingIntent{41567e28: PendingIntentRecord{4140f690 com.android.vending startService}}
  RTC_WAKEUP #8: Alarm{413ce0c0 type 0 com.android.deskclock}
    type=0 when=+37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{40f18190: PendingIntentRecord{413cdfe8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #7: Alarm{41360100 type 0 com.android.deskclock}
    type=0 when=+37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{40f8e518: PendingIntentRecord{41360060 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #6: Alarm{415685d8 type 0 com.android.deskclock}
    type=0 when=+37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{40e95bc0: PendingIntentRecord{41568538 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #5: Alarm{40e26638 type 0 com.android.deskclock}
    type=0 when=+37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{40efb930: PendingIntentRecord{41490330 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #4: Alarm{40deb7d8 type 0 com.android.deskclock}
    type=0 when=+37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{41099d98: PendingIntentRecord{411a4bb8 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #3: Alarm{4134ce30 type 0 com.android.deskclock}
    type=0 when=+37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{40eda6e0: PendingIntentRecord{4134cd90 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #2: Alarm{414be4d8 type 0 com.android.deskclock}
    type=0 when=+37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{40ef3010: PendingIntentRecord{414be438 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #1: Alarm{4158dbe8 type 0 com.android.deskclock}
    type=0 when=+37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{41426f60: PendingIntentRecord{4158db68 com.android.deskclock broadcastIntent}}
  RTC_WAKEUP #0: Alarm{410061c8 type 0 com.sgiggle.production}
    type=0 when=+1m39s374ms repeatInterval=480000 count=1
    operation=PendingIntent{4103bdd8: PendingIntentRecord{40e03e08 com.sgiggle.production startService}}
  RTC #1: Alarm{4118ff30 type 1 android}
    type=1 when=+11h37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{411cbfb8: PendingIntentRecord{411bdfc8 android broadcastIntent}}
  RTC #0: Alarm{40e763c0 type 1 com.android.calendar}
    type=1 when=+11h37m25s359ms repeatInterval=0 count=0
    operation=PendingIntent{40ffde40: PendingIntentRecord{411d3890 com.android.calendar broadcastIntent}}
Notice that there are still scheduled RTC_WAKEUP events for com.android.deskclock around the scheduled alarm time, even though that alarm has been deleted from the alarm list. Also notice that there are 8 scheduled RTC_WAKEUP events at exactly the same moment. What seems to happen is that every time com.android.deskclock interacts with the alarm table it 'updates' all scheduled events. Because it uses FLAG_CANCEL_CURRENT instead of FLAG_REPLACE_CURRENT the AlarmManager does not know that those updates are meant to replace pending events so it adds them instead, accumulating alarms in the process.

That is the theory, more later.

BTW, force-killing deskclock cancels all pending alarms for that origin. It is not necessary to stop/start zygote as I implied in the previous bug report.
 

Konamy

Senior Member
Aug 10, 2011
227
42
0
Distrito Federal
Eugh. So I've been running the ROM for the day - and its just plain slow and laggy.

The load averages are ALWAYS over 3 - and peaks seriously high



This surely isn't normal behaviour? This is a really disappointing experience, its slow as hell.

FYI. There are only base apps installed, 2 gmail accounts, 3 email accounts. Clocked at 300/600/1000/1000 using smartass.

---------- Post added at 05:09 AM ---------- Previous post was at 05:05 AM ----------



Follow the first 10 steps here, http://forum.xda-developers.com/showpost.php?p=38560698&postcount=15719
This is really for defy red lens? I only see defy+.
Thank you so much. :)
 
Last edited:

blessani

Member
Feb 5, 2011
26
12
0
The "defy(+)" implies that it's both for the "defy" and the "defy+". It's using 2nd boot, so you shouldn't have any issues. Just follow the instructions for flashing.
Exactly.

My advice would be to flash the original SBF with RSD Lite first, the root, then install 2ndboot - then install the Quarx CM10 ROM with the Defy specific Gapps.

This seemed to be the best approach for myself.
 
  • Like
Reactions: Konamy

Konamy

Senior Member
Aug 10, 2011
227
42
0
Distrito Federal
The "defy(+)" implies that it's both for the "defy" and the "defy+". It's using 2nd boot, so you shouldn't have any issues. Just follow the instructions for flashing.
Okay. Thank you all, guys. Case concluded for me.

---------- Post added at 11:58 AM ---------- Previous post was at 11:54 AM ----------

Exactly.

My advice would be to flash the original SBF with RSD Lite first, the root, then install 2ndboot - then install the Quarx CM10 ROM with the Defy specific Gapps.

This seemed to be the best approach for myself.
I was thinking about this too. Thank you for the advice. I'll flash the 2.2 froyo original Brazilian Retail.