[Desire HD Android Development] idbali:
Battery issue...

Has anyone seen the following battery draining done by the screen turning on and off from time to time? I started logging system messages and below you can find the results:

01-21 13:48:14.790 1303 1317 D SurfaceFlinger: Screen about to return, flinger = 0x1f1a70

01-21 13:48:14.830 1303 1457 D memalloc: /dev/pmem: Allocated buffer base:0x4ba47000 size:122880 offset:1413120 fd:268

01-21 13:48:14.840 3129 3129 D memalloc: /dev/pmem: Mapped buffer base:0x4b308000 size:1536000 offset:1413120 fd:55

01-21 13:48:15.091 3129 3131 D dalvikvm: GC_CONCURRENT freed 695K, 8% free 9780K/10567K, paused 2ms+22ms

01-21 13:48:15.401 3129 3131 D dalvikvm: GC_CONCURRENT freed 356K, 7% free 9830K/10567K, paused 2ms+4ms

01-21 13:48:18.203 3129 3129 D memalloc: /dev/pmem: Unmapping buffer base:0x4b308000 size:1536000 offset:1413120

01-21 13:48:18.233 1303 1316 D memalloc: /dev/pmem: Freeing buffer base:0x4bba0000 size:122880 offset:1413120 fd:268

01-21 13:48:19.665 1303 1342 I PowerManagerService: animating: 0

01-21 13:48:19.675 1303 1342 I power : *** set_screen_state 0

01-21 13:48:19.695 1303 1317 D SurfaceFlinger: About to give-up screen, flinger = 0x1f1a70

01-21 13:48:19.695 1303 1316 E libEGL : validate_display:188 error 3008 (EGL_BAD_DISPLAY)

01-21 13:48:19.705 1303 1346 D UnlockScreen: portrait mode

01-21 13:48:19.725 2206 2206 V $$$$$$ : In Method: ACTION_SCREEN_ON

01-21 13:48:19.735 2206 2206 V $$$$$$ : In service onStart: REGISTERED RECEIVER

01-21 13:48:19.845 3129 3129 V alogcat : save instance

01-21 13:48:19.845 3129 3129 V alogcat : paused

01-21 13:48:19.875 1303 1346 D dalvikvm: GC_FOR_ALLOC freed 1042K, 12% free 15978K/18055K, paused 127ms

01-21 13:48:19.925 2206 2206 V $$$$$$ : In Method: ACTION_SCREEN_ON

01-21 13:48:19.975 2206 2206 V $$$$$$ : In service onStart: REGISTERED RECEIVER

01-21 13:48:19.975 1303 1346 V TransportControlView: Create TCV com.android.internal.widget.TransportControlView@418ffc38

01-21 13:48:29.680 1303 1303 I power : *** set_screen_state 1

01-21 13:48:29.780 1303 1346 I WindowManager: Lock screen displayed!

01-21 13:48:29.870 1303 1317 D SurfaceFlinger: Screen about to return, flinger = 0x1f1a70

01-21 13:48:29.930 3129 3129 I alogcat : new intent: android.intent.action.MAIN

01-21 13:48:29.950 3129 3129 D alogcat : stopping ...

01-21 13:48:29.950 3129 3129 D alogcat : canceling periodic saves

01-21 13:48:29.950 3129 3228 D alogcat : stopped

01-21 13:48:29.960 3129 3129 V alogcat : resumed

01-21 13:48:29.970 3129 3231 D alogcat : starting ...

01-21 13:48:30.280 1303 3222 D memalloc: /dev/pmem: Allocated buffer base:0x4ba47000 size:122880 offset:1413120 fd:268

01-21 13:48:30.280 3129 3129 D memalloc: /dev/pmem: Mapped buffer base:0x4b408000 size:1536000 offset:1413120 fd:55

01-21 13:48:31.000 3129 3131 D dalvikvm: GC_CONCURRENT freed 604K, 9% free 9712K/10567K, paused 6ms+29ms

01-21 13:48:32.151 3129 3131 D dalvikvm: GC_CONCURRENT freed 294K, 8% free 9825K/10567K, paused 7ms+20ms

01-21 13:48:33.463 3129 3129 D memalloc: /dev/pmem: Unmapping buffer base:0x4b408000 size:1536000 offset:1413120

01-21 13:48:33.483 1303 1316 D memalloc: /dev/pmem: Freeing buffer base:0x4bba0000 size:122880 offset:1413120 fd:268

01-21 13:48:34.754 1303 1342 I PowerManagerService: animating: 0

01-21 13:48:34.774 1303 1342 I power : *** set_screen_state 0

01-21 13:48:34.784 1303 1317 D SurfaceFlinger: About to give-up screen, flinger = 0x1f1a70

01-21 13:48:34.784 1303 1316 E libEGL : validate_display:188 error 3008 (EGL_BAD_DISPLAY)

01-21 13:48:34.954 1303 1343 D dalvikvm: GC_FOR_ALLOC freed 657K, 13% free 15831K/18055K, paused 172ms

01-21 13:48:34.954 3129 3129 V alogcat : save instance

01-21 13:48:34.954 3129 3129 V alogcat : paused

01-21 13:48:34.954 1303 1346 D UnlockScreen: portrait mode

01-21 13:48:34.984 1303 1346 V TransportControlView: Create TCV com.android.internal.widget.TransportControlView@41921fd8

01-21 13:48:35.014 2206 2206 V $$$$$$ : In Method: ACTION_SCREEN_ON

01-21 13:48:35.034 2206 2206 V $$$$$$ : In service onStart: REGISTERED RECEIVER

01-21 13:48:35.094 2206 2206 V $$$$$$ : In Method: ACTION_SCREEN_ON

01-21 13:48:35.134 2206 2206 V $$$$$$ : In service onStart: REGISTERED RECEIVER

01-21 13:48:45.500 1303 1303 I power : *** set_screen_state 1

01-21 13:48:45.510 1303 1346 I WindowManager: Lock screen displayed!

01-21 13:48:45.520 3129 3129 I alogcat : new intent: android.intent.action.MAIN

01-21 13:48:45.530 3129 3129 D alogcat : stopping ...

01-21 13:48:45.530 3129 3231 D alogcat : stopped

01-21 13:48:45.540 3129 3129 D alogcat : canceling periodic saves

01-21 13:48:45.540 3129 3129 V alogcat : resumed

01-21 13:48:45.560 3129 3234 D alogcat : starting ...

01-21 13:48:45.670 1303 1317 D SurfaceFlinger: Screen about to return, flinger = 0x1f1a70

01-21 13:48:45.860 3129 3131 D dalvikvm: GC_CONCURRENT freed 602K, 9% free 9717K/10567K, paused 2ms+4ms

01-21 13:48:46.030 1303 1314 D memalloc: /dev/pmem: Allocated buffer base:0x4ba47000 size:122880 offset:1413120 fd:268

01-21 13:48:46.040 3129 3129 D memalloc: /dev/pmem: Mapped buffer base:0x4b308000 size:1536000 offset:1413120 fd:52

01-21 13:48:46.220 3129 3131 D dalvikvm: GC_CONCURRENT freed 263K, 7% free 9858K/10567K, paused 2ms+5ms

01-21 13:48:49.042 3129 3129 D memalloc: /dev/pmem: Unmapping buffer base:0x4b308000 size:1536000 offset:1413120

01-21 13:48:49.062 1303 1316 D memalloc: /dev/pmem: Freeing buffer base:0x4bba0000 size:122880 offset:1413120 fd:268

01-21 13:48:50.544 1303 1342 I PowerManagerService: animating: 0

01-21 13:48:50.554 1303 1342 I power : *** set_screen_state 0

01-21 13:48:50.554 1303 1317 D SurfaceFlinger: About to give-up screen, flinger = 0x1f1a70

01-21 13:48:50.554 1303 1316 E libEGL : validate_display:188 error 3008 (EGL_BAD_DISPLAY)

01-21 13:48:50.714 1303 1343 D dalvikvm: GC_FOR_ALLOC freed 670K, 13% free 15832K/18055K, paused 131ms

01-21 13:48:50.714 3129 3129 V alogcat : save instance

01-21 13:48:50.714 3129 3129 V alogcat : paused

01-21 13:48:50.724 1303 1346 D UnlockScreen: portrait mode

01-21 13:48:50.754 2206 2206 V $$$$$$ : In Method: ACTION_SCREEN_ON

01-21 13:48:50.764 2206 2206 V $$$$$$ : In service onStart: REGISTERED RECEIVER

01-21 13:48:50.804 1303 1346 V TransportControlView: Create TCV com.android.internal.widget.TransportControlView@41a111c0

01-21 13:48:50.834 2206 2206 V $$$$$$ : In Method: ACTION_SCREEN_ON

01-21 13:48:50.874 2206 2206 V $$$$$$ : In service onStart: REGISTERED RECEIVER

01-21 13:49:00.510 2206 2206 V $$$$$$ : In service onStart: REGISTERED RECEIVER

01-21 13:49:00.590 1303 1492 I power : *** set_screen_state 1

01-21 13:49:00.650 1303 1346 I WindowManager: Lock screen displayed!

01-21 13:49:00.670 3129 3129 I alogcat : new intent: android.intent.action.MAIN

01-21 13:49:00.670 3129 3129 D alogcat : stopping ...

01-21 13:49:00.670 3129 3129 D alogcat : canceling periodic saves

01-21 13:49:00.670 3129 3234 D alogcat : stopped

I have this issue with the RC1 and also with the RC2 version of the ROM.

Does anyone know what could be the problem? As I can see it could be an issue with the memory cleanup process...

Thanks.