[HD2 Android NAND Development] zbeky:
Hi there. I have problem with battery on 5.5.2 hyperdroid. v5.3.0 took about 1% per 2 hours. Now I have around 6% per hour. I identified the cause of this. It has something to do with wi-fi. In battery history i can see that my device is waking up many times (maybe every 2 minutes), but programs have only minimal part on that drainage. I tried logcat and saw this:

V/WifiStateTracker( 733): Scan-only mode changing to true scanType=2
D/WifiStateTracker( 733): Reset connections and stopping DHCP
D/WifiStateTracker( 733): Disabling interface
I/wpa_supplicant( 3254): CTRL-EVENT-DRIVER-STATE STARTED
V/WifiMonitor( 733): Event [CTRL-EVENT-DRIVER-STATE STARTED]
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00
:00:00
V/WifiMonitor( 733): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:0
0:00:00:00]
E/wpa_supplicant( 3254): Ongoing Scan action...
V/WifiStateTracker( 733): Changing supplicant state: DORMANT ==> SCANNING
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:00:00
:00:00
V/WifiMonitor( 733): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:0
0:00:00:00]
V/WifiStateTracker( 733): Changing supplicant state: SCANNING ==> DORMANT
D/WifiStateTracker( 733): Reset connections and stopping DHCP
D/WifiStateTracker( 733): Disabling interface
I/wpa_supplicant( 3254): CTRL-EVENT-DRIVER-STATE STOPPED
V/WifiMonitor( 733): Event [CTRL-EVENT-DRIVER-STATE STOPPED]
D/dalvikvm( 1219): GC_EXPLICIT freed 169K, 50% free 3197K/6343K, external 1128K/
1640K, paused 87ms
D/WifiStateTracker( 733): Reset connections and stopping DHCP
D/dalvikvm( 733): GC_CONCURRENT freed 1051K, 38% free 6361K/10119K, external 10
31K/1543K, paused 8ms+21ms
I/System.out( 2672): [INFO:2162905]: c: Running flush
I/System.out( 2672): [INFO:2162912]: c: Sending payload [bytes=393]
I/System.out( 2672): [SEVERE:2163114]: c: AsyncHttpRequestImpl.run(): exception
thrown : www.google.com: java.net.UnknownHostException
D/WifiStateTracker( 733): Disabling interface
I/wpa_supplicant( 3254): CTRL-EVENT-DRIVER-STATE STARTED
V/WifiMonitor( 733): Event [CTRL-EVENT-DRIVER-STATE STARTED]
E/wpa_supplicant( 3254): WEXT: STOP when iface is UP
I/wpa_supplicant( 3254): CTRL-EVENT-DRIVER-STATE STOPPED
V/WifiMonitor( 733): Event [CTRL-EVENT-DRIVER-STATE STOPPED]
E/wpa_supplicant( 3254): WEXT: Driver not initialized yet
E/wpa_supplicant( 3254): WEXT: Driver not initialized yet
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00
:00:00
V/WifiMonitor( 733): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:0
0:00:00:00]
E/wpa_supplicant( 3254): WEXT: Driver not initialized yet
V/WifiStateTracker( 733): Changing supplicant state: DORMANT ==> SCANNING
D/WifiStateTracker( 733): Reset connections and stopping DHCP
D/WifiStateTracker( 733): Disabling interface
I/wpa_supplicant( 3254): CTRL-EVENT-DRIVER-STATE STARTED
V/WifiMonitor( 733): Event [CTRL-EVENT-DRIVER-STATE STARTED]
E/wpa_supplicant( 3254): Ongoing Scan action...
E/wpa_supplicant( 3254): Ongoing Scan action...
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:00:00
:00:00
V/WifiMonitor( 733): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:0
0:00:00:00]
V/WifiStateTracker( 733): Changing supplicant state: SCANNING ==> DORMANT
D/WifiStateTracker( 733): Reset connections and stopping DHCP
D/WifiStateTracker( 733): Disabling interface
I/wpa_supplicant( 3254): CTRL-EVENT-DRIVER-STATE STOPPED
V/WifiMonitor( 733): Event [CTRL-EVENT-DRIVER-STATE STOPPED]
D/WifiStateTracker( 733): Reset connections and stopping DHCP
I/System.out( 2672): [INFO:2222794]: c: Running flush
I/System.out( 2672): [INFO:2222859]: c: Sending payload [bytes=426]
I/System.out( 2672): [SEVERE:2223088]: c: AsyncHttpRequestImpl.run(): exception
thrown : www.google.com: java.net.UnknownHostException
D/dalvikvm( 2672): GC_CONCURRENT freed 500K, 47% free 3577K/6727K, external 0K/0
K, paused 6ms+7ms
D/WifiStateTracker( 733): Disabling interface
I/wpa_supplicant( 3254): CTRL-EVENT-DRIVER-STATE STARTED
V/WifiMonitor( 733): Event [CTRL-EVENT-DRIVER-STATE STARTED]
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00
:00:00
V/WifiMonitor( 733): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:0
0:00:00:00]
E/wpa_supplicant( 3254): Ongoing Scan action...
V/WifiStateTracker( 733): Changing supplicant state: DORMANT ==> SCANNING
I/wpa_supplicant( 3254): CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:00:00
:00:00
V/WifiMonitor( 733): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=8 BSSID=00:00:0
0:00:00:00]
V/WifiStateTracker( 733): Changing supplicant state: SCANNING ==> DORMANT
D/WifiStateTracker( 733): Reset connections and stopping DHCP
D/WifiStateTracker( 733): Disabling interface
I/wpa_supplicant( 3254): CTRL-EVENT-DRIVER-STATE STOPPED
V/WifiMonitor( 733): Event [CTRL-EVENT-DRIVER-STATE STOPPED]

Looks like wi-fi interface wakes up device and it does it in wifi.supplicant_scan_interval=120 period. When I turn off wi-fi, everything is ok, but when i turn it on, high drain and wakelocks are back. I´ve already tried fix permissions. What else should I try? Thanks for your help guys