[Galaxy S II Android Development] Rawi666:
I've made a test of battery draining overnight with wifi on and off.

Now I'm sure that the huge drain I'm experiencing on CM9 and CM10.1 is because of WiFi driver that was changed after 7.29 (7.29 is last good version).

Wifi OFF - 4% (100% to 96%) [0,4%/h] Since 9 h 35 m 56 s

===================

General Information

===================

BetterBatteryStats version: 1.11.0.0

Creation Date: 2013-01-25 07:08:12

Statistic Type: (3) Since Unplugged

Since 9 h 35 m 56 s

VERSION.RELEASE: 4.0.4

BRAND: Samsung

DEVICE: GT-I9100

MANUFACTURER: samsung

MODEL: GT-I9100

OS.VERSION: 3.1.0-R60-Siyah-Dorimanx-V7.44-ICS-JB-SGII-PWR-CORE

BOOTLOADER: unknown

HARDWARE: smdk4210

FINGERPRINT: samsung/GT-I9100/GT-I9100:4.0.3/IML74K/XXLPQ:user/release-keys

ID: IMM76L

TAGS: test-keys

USER: unknown

PRODUCT: GT-I9100

RADIO: I9100XXLPS

Rooted: true

============

Battery Info

============

Level lost [%]: 4 Bat.: 4% (100% to 96%) [0,4%/h]

Voltage lost [mV]: 53 (4108-4055)

===========

Other Usage

===========

Good Signal (): 9 h 34 m 28 s (34468 s) Ratio: 99,7%

Deep Sleep (): 9 h 24 m 14 s (33854 s) Ratio: 98,0%

Awake (): 11 m 42 s (702 s) Ratio: 2,0%

Screen On (): 50 s (50 s) Ratio: 0,1%

=========

Wakelocks

=========

3gw.ServiceLifeCheckr (net.rgruet.android.g3watchdog.3G Watchdog): 11 m 27 s (687 s) Count:38 2,0%

*backup* (System Android): 5 m 58 s (358 s) Count:83 1,0%

3gw.Service (net.rgruet.android.g3watchdog.3G Watchdog): 15 s (15 s) Count:39 0,0%

AlarmManager (System Android): 9 s (9 s) Count:271 0,0%

RILJ (Telefon): 6 s (6 s) Count:336 0,0%

AudioOut_1 (1013): 6 s (6 s) Count:1 0,0%

NetworkStats (System Android): 5 s (5 s) Count:71 0,0%

NetworkLocationCacheUpdater (com.google.android.apps.maps.Mapy): 5 s (5 s) Count:2 0,0%

AlarmClock (com.android.deskclock.Zegar): 3 s (3 s) Count:2 0,0%

================

Kernel Wakelocks

================

"PowerManagerService" (): 3 m 45 s (225 s) Cnt:(c/wc/ec)464/0/0 0,7%

"secril_fd-interface" (): 2 m 53 s (173 s) Cnt:(c/wc/ec)51/0/0 0,5%

"multipdp" (): 2 m 33 s (153 s) Cnt:(c/wc/ec)27/0/27 0,4%

"l2_hsic" (): 2 m 23 s (143 s) Cnt:(c/wc/ec)344/12/343 0,4%

"radio-interface" (): 2 m 1 s (121 s) Cnt:(c/wc/ec)128/0/0 0,4%

"umts_ipc0" (): 1 m 52 s (112 s) Cnt:(c/wc/ec)223/0/223 0,3%

"alarm_rtc" (): 1 m 24 s (84 s) Cnt:(c/wc/ec)130/0/29 0,2%

"sec-battery-monitor" (): 46 s (46 s) Cnt:(c/wc/ec)135/118/0 0,1%

"alarm" (): 41 s (41 s) Cnt:(c/wc/ec)217/0/0 0,1%

"rpm_hsic" (): 11 s (11 s) Cnt:(c/wc/ec)199/0/0 0,0%

"power-supply" (): 6 s (6 s) Cnt:(c/wc/ec)135/0/0 0,0%

"tx_hsic" (): 3 s (3 s) Cnt:(c/wc/ec)1160/0/0 0,0%

"vbus_present" (): 2 s (2 s) Cnt:(c/wc/ec)0/0/1 0,0%

"secril_fmt-interface" (): 2 s (2 s) Cnt:(c/wc/ec)1287/0/0 0,0%

"sync_system" (): 1 s (1 s) Cnt:(c/wc/ec)3/0/0 0,0%

"mmc1_detect" (): (0 s) Cnt:(c/wc/ec)154/0/0 0,0%

"mmc0_detect" (): (0 s) Cnt:(c/wc/ec)154/0/1 0,0%

"KeyEvents" (): (0 s) Cnt:(c/wc/ec)228/0/0 0,0%

======================

Alarms (requires root)

======================

android (): Wakeups: 42

Alarms: 115, Intent: android.intent.action.TIME_TICK

Alarms: 19, Intent: com.android.server.action.NETWORK_STATS_POLL

Alarms: 39, Intent: com.android.server.ThrottleManager.action.POLL

Alarms: 9, Intent: android.app.backup.intent.RUN

Alarms: 28, Intent: android.appwidget.action.APPWIDGET_UPDATE

Alarms: 5, Intent: android.content.syncmanager.SYNC_ALARM

com.google.android.gsf (): Wakeups: 41

Alarms: 21, Intent: com.google.android.intent.action.MCS_HEARTBEAT

Alarms: 1, Intent: com.google.android.intent.action.SEND_IDLE

com.google.android.apps.maps (): Wakeups: 38

Alarms: 1, Intent: com.google.android.apps.maps.nlp.ALARM_WAKEUP_CACHE_UPDATER

neldar.bln.control.pro (): Wakeups: 2

Alarms: 2, Intent: neldar.bln.control.pro.ON_OFF_EVENT

com.android.providers.calendar (): Wakeups: 1

Alarms: 1, Intent: com.android.providers.calendar.intent.CalendarProvider2

net.rgruet.android.g3watchdog (): Wakeups: 1

Alarms: 1, Intent: net.rgruet.android.g3watchdog.ACTION_MIDNIGHT_REACHED

Alarms: 43, Intent: net.rgruet.android.g3watchdog.ACTION_CHECK_SERVICE_ALIVE

com.android.deskclock (): Wakeups: 1

Alarms: 1, Intent: com.android.deskclock.ALARM_ALERT

======================

Network (requires root)

======================

10059 (Mobile) (com.google.android.apps.maps.Mapy): 15.0 KBytes 47,9%

1000 (Mobile) (System Android): 11.0 KBytes 34,7%

10042 (Mobile) (Usługi Google): 4.0 KBytes 14,6%

0 (Mobile) (0): 896.0 Bytes 2,7%

10045 (Mobile) (com.google.android.gm.Gmail): 40.0 Bytes 0,1%

==========

CPU States

==========

1,6 GHz (): 0,0%

1,5 GHz (): 0,0%

1,4 GHz (): 0,0%

1,3 GHz (): 0,0%

1,2 GHz (): 8 s 0,0%

1,15 GHz (): 0,0%

1,1 GHz (): 0,0%

1,05 GHz (): 0,0%

1 GHz (): 6 s 0,0%

952 MHz (): 0,0%

900 MHz (): 1 s 0,0%

852 MHz (): 0,0%

800 MHz (): 57 s 0,2%

750 MHz (): 0,0%

700 MHz (): 0,0%

650 MHz (): 0,0%

600 MHz (): 34 s 0,1%

550 MHz (): 4 s 0,0%

500 MHz (): 1 m 31 s 0,3%

450 MHz (): 2 s 0,0%

400 MHz (): 31 s 0,1%

350 MHz (): 3 s 0,0%

300 MHz (): 5 s 0,0%

250 MHz (): 4 s 0,0%

200 MHz (): 7 m 32 s 1,3%

150 MHz (): 0,0%

100 MHz (): 0,0%

Deep Sleep (): 9 h 24 m 14 s 98,0%

==================

Reference overview

==================

Custom: Reference custom_ref created 1 h 16 m 29 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)

Since charged: Reference since_charged_ref created 1 h 16 m 30 s (Wl: 0 elements; KWl: 16elements; NetS: 5 elements; Alrm: 6 elements; Proc: 0 elements; Oth: 3 elements; CPU: 28 elements)

Since screen off: Reference since_screen_off created 1 h 16 m 29 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)

Since unplugged: Reference since_unplugged_ref created 1 h 16 m 30 s (Wl: 0 elements; KWl: 16elements; NetS: 5 elements; Alrm: 6 elements; Proc: 0 elements; Oth: 3 elements; CPU: 28 elements)

Since boot: Reference since_boot created 1 h 16 m 29 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)

Wifi ON - 34% (100% to 66%) [3,3%/h] Since 10 h 14 m 18 s

===================

General Information

===================

BetterBatteryStats version: 1.11.0.0

Creation Date: 2013-01-26 09:03:29

Statistic Type: (3) Since Unplugged

Since 10 h 14 m 18 s

VERSION.RELEASE: 4.0.4

BRAND: Samsung

DEVICE: GT-I9100

MANUFACTURER: samsung

MODEL: GT-I9100

OS.VERSION: 3.1.0-R60-Siyah-Dorimanx-V7.44-ICS-JB-SGII-PWR-CORE

BOOTLOADER: unknown

HARDWARE: smdk4210

FINGERPRINT: samsung/GT-I9100/GT-I9100:4.0.3/IML74K/XXLPQ:user/release-keys

ID: IMM76L

TAGS: test-keys

USER: unknown

PRODUCT: GT-I9100

RADIO: I9100XXLPS

Rooted: true

============

Battery Info

============

Level lost [%]: 34 Bat.: 34% (100% to 66%) [3,3%/h]

Voltage lost [mV]: 353 (4188-3835)

===========

Other Usage

===========

Deep Sleep (): 10 h 2 s (36002 s) Ratio: 97,7%

Wifi On (): 10 h 14 m 18 s (36858 s) Ratio: 100,0%

Wifi Running (): 10 h 14 m 18 s (36858 s) Ratio: 100,0%

No Data Connection (): 10 h 14 m 11 s (36851 s) Ratio: 100,0%

No or Unknown Signal (): 10 h 14 m 11 s (36851 s) Ratio: 100,0%

Awake (): 14 m 16 s (856 s) Ratio: 2,3%

Screen On (): 8 s (8 s) Ratio: 0,0%

Good Signal (): 3 s (3 s) Ratio: 0,0%

=========

Wakelocks

=========

*backup* (System Android): 8 m 26 s (506 s) Count:65 1,4%

SyncLoopWakeLock (System Android): 6 m 14 s (374 s) Count:323 1,0%

3gw.ServiceLifeCheckr (net.rgruet.android.g3watchdog.3G Watchdog): 5 m 30 s (330 s) Count:41 0,9%

GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint (Usługi Google): 4 m 22 s (262 s) Count:128 0,7%

GTALK_CONN (Usługi Google): 4 m 22 s (262 s) Count:97 0,7%

AlarmManager (System Android): 1 m 20 s (80 s) Count:293 0,2%

DHCP (System Android): 27 s (27 s) Count:53 0,1%

NetworkLocationPassiveCollector (com.google.android.apps.maps.Mapy): 13 s (13 s) Count:10 0,0%

3gw.Service (net.rgruet.android.g3watchdog.3G Watchdog): 12 s (12 s) Count:42 0,0%

NetworkLocationCacheUpdater (com.google.android.apps.maps.Mapy): 8 s (8 s) Count:11 0,0%

*sync*_gmail-ls_Account {name=x@x, type=com.google} (com.google.android.gm.Gmail): 8 s (8 s) Count:6 0,0%

GmailProviderProviderChangedBroadcastWakeLock (com.google.android.gm.Gmail): 4 s (4 s) Count:9 0,0%

RILJ (Telefon): 3 s (3 s) Count:66 0,0%

ConnectivityService (System Android): 2 s (2 s) Count:294 0,0%

NetworkLocationLocator (com.google.android.apps.maps.Mapy): 2 s (2 s) Count:1 0,0%

NetworkStats (System Android): 1 s (1 s) Count:31 0,0%

GpsLocationProvider (System Android): 1 s (1 s) Count:50 0,0%

================

Kernel Wakelocks

================

"PowerManagerService" (): 8 m 24 s (504 s) Cnt:(c/wc/ec)230/0/0 1,4%

"l2_hsic" (): 1 m 27 s (87 s) Cnt:(c/wc/ec)181/0/181 0,2%

"alarm_rtc" (): 1 m 11 s (71 s) Cnt:(c/wc/ec)121/0/11 0,2%

"sec-battery-monitor" (): 57 s (57 s) Cnt:(c/wc/ec)167/108/0 0,2%

"alarm" (): 47 s (47 s) Cnt:(c/wc/ec)252/0/0 0,1%

"radio-interface" (): 32 s (32 s) Cnt:(c/wc/ec)33/0/0 0,1%

"umts_ipc0" (): 26 s (26 s) Cnt:(c/wc/ec)53/0/53 0,1%

"wlan_wake" (): 15 s (15 s) Cnt:(c/wc/ec)2024/51/0 0,0%

"power-supply" (): 9 s (9 s) Cnt:(c/wc/ec)167/0/0 0,0%

"secril_fd-interface" (): 4 s (4 s) Cnt:(c/wc/ec)2/0/0 0,0%

"vbus_present" (): 1 s (1 s) Cnt:(c/wc/ec)0/0/1 0,0%

"mmc1_detect" (): (0 s) Cnt:(c/wc/ec)203/0/0 0,0%

"rpm_hsic" (): (0 s) Cnt:(c/wc/ec)17/0/0 0,0%

"sync_system" (): (0 s) Cnt:(c/wc/ec)1/0/0 0,0%

"tx_hsic" (): (0 s) Cnt:(c/wc/ec)157/0/0 0,0%

"mmc0_detect" (): (0 s) Cnt:(c/wc/ec)203/0/0 0,0%

"secril_fmt-interface" (): (0 s) Cnt:(c/wc/ec)208/0/0 0,0%

"KeyEvents" (): (0 s) Cnt:(c/wc/ec)249/0/0 0,0%

======================

Alarms (requires root)

======================

android (): Wakeups: 50

Alarms: 0, Intent: android.intent.action.DATE_CHANGED

Alarms: 142, Intent: android.intent.action.TIME_TICK

Alarms: 21, Intent: com.android.server.action.NETWORK_STATS_POLL

Alarms: 43, Intent: com.android.server.ThrottleManager.action.POLL

Alarms: 1, Intent: android.net.wifi.DHCP_RENEW

Alarms: 31, Intent: android.appwidget.action.APPWIDGET_UPDATE

Alarms: 0, Intent: com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD

Alarms: 10, Intent: android.app.backup.intent.RUN

Alarms: 8, Intent: android.content.syncmanager.SYNC_ALARM

com.google.android.apps.maps (): Wakeups: 46

Alarms: 1, Intent: com.google.android.apps.maps.nlp.ALARM_WAKEUP_PASSIVE_COLLECTOR

Alarms: 3, Intent: com.google.android.apps.maps.nlp.ALARM_WAKEUP_ACTIVE_COLLECTOR

Alarms: 2, Intent: com.google.android.apps.maps.nlp.ALARM_WAKEUP_CACHE_UPDATER

com.google.android.gsf (): Wakeups: 44

Alarms: 9, Intent: com.google.android.intent.action.GTALK_RECONNECT

Alarms: 13, Intent: com.google.android.intent.action.MCS_HEARTBEAT

Alarms: 1, Intent: com.google.android.intent.action.SEND_IDLE

net.rgruet.android.g3watchdog (): Wakeups: 1

Alarms: 1, Intent: net.rgruet.android.g3watchdog.ACTION_MIDNIGHT_REACHED

Alarms: 41, Intent: net.rgruet.android.g3watchdog.ACTION_CHECK_SERVICE_ALIVE

======================

Network (requires root)

======================

10045 (Wifi) (com.google.android.gm.Gmail): 69.0 KBytes 60,9%

10115 (Wifi) (neldar.bln.control.pro.BLN control - Pro): 12.0 KBytes 10,9%

10042 (Wifi) (Usługi Google): 9.0 KBytes 8,5%

0 (Wifi) (0): 6.0 KBytes 5,9%

1000 (Wifi) (System Android): 5.0 KBytes 4,7%

10059 (Wifi) (com.google.android.apps.maps.Mapy): 5.0 KBytes 4,5%

10116 (Wifi) (com.asksven.betterbatterystats.BetterBatteryStats): 3.0 KBytes 3,3%

1014 (Wifi) (1014): 1.0 KBytes 1,3%

0 (Mobile) (0): 62.0 Bytes 0,1%

==========

CPU States

==========

1,6 GHz (): 0,0%

1,5 GHz (): 0,0%

1,4 GHz (): 0,0%

1,3 GHz (): 0,0%

1,2 GHz (): 4 s 0,0%

1,15 GHz (): 0,0%

1,1 GHz (): 0,0%

1,05 GHz (): 0,0%

1 GHz (): 1 s 0,0%

952 MHz (): 0,0%

900 MHz (): 0,0%

852 MHz (): 0,0%

800 MHz (): 1 m 7 s 0,2%

750 MHz (): 0,0%

700 MHz (): 0,0%

650 MHz (): 0,0%

600 MHz (): 50 s 0,1%

550 MHz (): 2 s 0,0%

500 MHz (): 1 m 54 s 0,3%

450 MHz (): 5 s 0,0%

400 MHz (): 18 s 0,0%

350 MHz (): 4 s 0,0%

300 MHz (): 5 s 0,0%

250 MHz (): 2 s 0,0%

200 MHz (): 9 m 44 s 1,6%

150 MHz (): 0,0%

100 MHz (): 0,0%

Deep Sleep (): 10 h 2 s 97,7%

==================

Reference overview

==================

Custom: Reference custom_ref created 0 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)

Since charged: Reference since_charged_ref created 1 d 2 h 33 m 8 s (Wl: 0 elements; KWl: 27elements; NetS: 15 elements; Alrm: 11 elements; Proc: 0 elements; Oth: 7 elements; CPU: 28 elements)

Since screen off: Reference since_screen_off created 0 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)

Since unplugged: Reference since_unplugged_ref created 1 d 2 h 33 m 8 s (Wl: 0 elements; KWl: 27elements; NetS: 15 elements; Alrm: 11 elements; Proc: 0 elements; Oth: 7 elements; CPU: 28 elements)

Since boot: Reference since_boot created 40 s (Wl: 0 elements; KWl: 0elements; NetS: 0 elements; Alrm: 1 elements; Proc: 0 elements; Oth: 0 elements; CPU: 28 elements)

If there is someone who doesn't have such drain overnight with

wifi on

please let me know what rom you are using.