[Defy Android Development] gkai:
Adding to the battery drain investigation, I can report too that 110911-BOOTWIFI3 nightly do not go into deepsleep. Still, it has a correct battery life...depending on what is done with CPU settings in boot menu (either do not change it, de-activate it, or be lucky: it seems my last attemps with smartass is more successfull that with ondemand...but it is really hard to diagnose). I guess the absence of deepsleep is what makes battery life passable instead of good or great. Here is a part of dmesg:

<6>[ 183.872283] suspend: enter suspend

<6>[ 183.872589] PM: Syncing filesystems ... done.

<7>[ 183.935058] PM: Preparing system for mem sleep

<4>[ 183.935546] Freezing user space processes ... (elapsed 0.03 seconds) done.

<4>[ 183.968597] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

<7>[ 183.970306] PM: Entering mem sleep

<4>[ 183.970642] Suspending console(s) (use no_console_suspend to debug)

<6>[ 183.972839] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------

<6>[ 183.972839]

<3>[ 183.989379] pm_op(): platform_pm_suspend+0x0/0x54 returns -16

<3>[ 183.989410] PM: Device wakeup_timer.0 failed to suspend: error -16

<3>[ 183.989440] PM: Some devices failed to suspend

<7>[ 184.011932] PM: Finishing wakeup.

<4>[ 184.012207] Restarting tasks ... done.

<6>[ 184.029449] suspend: exit suspend, ret = -16 (2011-09-18 06:20:48.348846359 UTC)

<6>[ 187.962615] suspend: enter suspend

<6>[ 187.963165] PM: Syncing filesystems ... done.

<7>[ 188.028778] PM: Preparing system for mem sleep

<4>[ 188.029296] Freezing user space processes ...

<3>[ 188.041687] Freezing of tasks aborted after 0.01 seconds (433 tasks refusing to freeze):

<4>[ 188.042968]

<4>[ 188.043243] Restarting tasks ... done.

<6>[ 188.056732] suspend: exit suspend, ret = -16 (2011-09-18 06:20:52.376129068 UTC)

This is repeated and repeated when the phone should be in deepsleep (screen off, no data, only 2G, just after a reboot)

logcat shows this continuously too:

D/SiMiClock( 2609): onUpdate

D/WifiService( 2148): acquireWifiLockLocked: WifiLock{NetworkLocationLocator type=2 binder=android.os.BinderProxy@409cc770}

I/System.out( 2507): [INFO:314225]: c: Running flush

I/System.out( 2507): [INFO:314233]: c: Sending payload [bytes=348]

I/System.out( 2507): [SEVERE:314242]: c: AsyncHttpRequestImpl.run(): exception thrown : www.google.com: java.net.UnknownHostException

D/WifiService( 2148): releaseWifiLockLocked: WifiLock{NetworkLocationLocator type=2 binder=android.os.BinderProxy@409cc770}

E/GlsClient-query( 2507): requestFailed

E/GlsClient-query( 2507): java.net.UnknownHostException: www.google.com

E/GlsClient-query( 2507):	at java.net.InetAddress.lookupHostByName(InetAddress.java:506)

E/GlsClient-query( 2507):	at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)

E/GlsClient-query( 2507):	at java.net.InetAddress.getAllByName(InetAddress.java:256)

E/GlsClient-query( 2507):	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)

E/GlsClient-query( 2507):	at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)

E/GlsClient-query( 2507):	at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)

E/GlsClient-query( 2507):	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:359)

E/GlsClient-query( 2507):	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)

E/GlsClient-query( 2507):	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)

E/GlsClient-query( 2507):	at aa.b.execute(Unknown Source)

E/GlsClient-query( 2507):	at aa.l.a(Unknown Source)

E/GlsClient-query( 2507):	at aa.l.execute(Unknown Source)

E/GlsClient-query( 2507):	at aa.l.execute(Unknown Source)

E/GlsClient-query( 2507):	at aa.i.h(Unknown Source)

E/GlsClient-query( 2507):	at aa.i.c(Unknown Source)

E/GlsClient-query( 2507):	at W.d.run(Unknown Source)

E/GlsClient-query( 2507):	at W.c.c(Unknown Source)

E/GlsClient-query( 2507):	at W.c.run(Unknown Source)

E/GlsClient-query( 2507):	at ac.b.run(Unknown Source)

which is a little worying, it looks like it tryes continuously to ue wifi....while wifi is off and phone is in a clean state (after a reboot)