[Nexus S Q&A, Help & Troubleshooting] impossibilium:
Device: Nexus S 3G i9020a

Rom: stock 4.1.2 (rooted)

Kernel: stock

So a few days ago, I started to notice that my phone's battery had been draining more quickly than usual. As in, I would go to sleep with a fully charged phone and wake up with a dead one. I had some ROM that I can't remember anymore, but in order to try to fix the problem I flashed the stock 4.1.2 rom, and even stock 2.3.4 to try to see if it would solve the problem, but the rate of battery drain still stayed at at least 10% per hour. Currently my setup is stock (but rooted) 4.1.2 with the stock kernel, with nothing other than Better Battery Stats (BBS), CPU Spy and Titanium Backup installed, which means no Twitter, no Facebook, nothing running in the background. The strangest part is that there is nothing running. The stats that follow are very strange, and I can't find an explanation for it. I fully charged the phone, rebooted it while still on the charged, then unplugged it, put it into airplane mode and left it untouched for two hours. As you can see, the stats say that it was in deep sleep for the vast majority of the time, and no wakelocks had been running for the entire two hours, yet it still lost 20% battery life.

I've attached the BBS dump of the two hour control period, and attached screenshots of the Battery section of the Settings. As you can see, the screen wasn't on past the first few seconds. This was while it was in airplane mode, but it happens when it is not at the same rate of around 10% per hour. This was only a trial for 2 hours, but it will keep draining until it is completely dead, as has happened to me before. Also, I don't think it is the battery itself, since I have two (one brand new from Christmas and one from two years ago) and both exhibit the same symptoms. I have tried searching the forums to no avail. Has anyone had this problem before, or does someone see something I have missed? What's going on here? If anyone wants more data from anything, I can get that as well.

BBS dump:

===================
General Information
===================
BetterBatteryStats version: 1.11.0.0
Creation Date: 2012-12-27 21:38:19
Statistic Type: (6) Since Boot
Since 1 h 52 m 4 s
VERSION.RELEASE: 4.1.2
BRAND: google
DEVICE: crespo
MANUFACTURER: samsung
MODEL: Nexus S
OS.VERSION: 3.0.31-g5894150
BOOTLOADER: I9020XXKA3
HARDWARE: herring
FINGERPRINT: google/sojua/crespo:4.1.2/JZO54K/485486:user/release-keys
ID: JZO54K
TAGS: release-keys
USER: android-build
PRODUCT: sojua
RADIO: I9020AUCKJ1
Rooted: true
============
Battery Info
============
Level lost [%]: 20 Bat.: 20% (95% to 75%) [10.8%/h]
Voltage lost [mV]: 210 (4088-3878)
===========
Other Usage
===========
No Data Connection (): 1 h 52 m 2 s (6722 s) Ratio: 100.0%
No or Unknown Signal (): 1 h 52 m 2 s (6722 s) Ratio: 100.0%
Deep Sleep (): 1 h 50 m 17 s (6617 s) Ratio: 98.1%
Awake (): 1 m 46 s (106 s) Ratio: 1.6%
Screen On (): 51 s (51 s) Ratio: 0.8%
Good Signal (): (0 s) Ratio: 0.0%
=========
Wakelocks
=========
MediaScannerService (Media): 34 s (34 s) Count:2 0.5%
AudioOut_2 (1013): 11 s (11 s) Count:4 0.2%
BBS_WAKELOCK_WHILE_SAVING_REF (com.asksven.betterbatterystats.BetterBatteryStats): 4 s (4 s) Count:2 0$
ActivityManager-Launch (Android System): 3 s (3 s) Count:21 0.0%
AlarmManager (Android System): 3 s (3 s) Count:43 0.0%
RILJ (Phone): 2 s (2 s) Count:7 0.0%
================
Kernel Wakelocks
================
"PowerManagerService" (): 36 s (36 s) Cnt:(c/wc/ec)35/0/0 0.5%
"vbus_present" (): 6 s (6 s) Cnt:(c/wc/ec)18/0/18 0.1%
"mmc1_detect" (): 4 s (4 s) Cnt:(c/wc/ec)28/0/0 0.1%
"secril_rfs-interface" (): 2 s (2 s) Cnt:(c/wc/ec)17/0/0 0.0%
"radio-interface" (): 1 s (1 s) Cnt:(c/wc/ec)9/0/0 0.0%
"alarm_rtc" (): 1 s (1 s) Cnt:(c/wc/ec)9/0/0 0.0%
"alarm" (): (0 s) Cnt:(c/wc/ec)29/0/0 0.0%
"max8998-charger" (): (0 s) Cnt:(c/wc/ec)19/0/0 0.0%
"gpio_input" (): (0 s) Cnt:(c/wc/ec)21/1/0 0.0%
"KeyEvents" (): (0 s) Cnt:(c/wc/ec)242/0/0 0.0%
"secril_fmt-interface" (): (0 s) Cnt:(c/wc/ec)211/0/0 0.0%
"modem_rfs" (): (0 s) Cnt:(c/wc/ec)17/0/0 0.0%
"power-supply" (): (0 s) Cnt:(c/wc/ec)20/0/0 0.0%
"modem_fmt" (): (0 s) Cnt:(c/wc/ec)211/0/0 0.0%
======================
Alarms (requires root)
======================
com.google.android.gsf (): Wakeups: 5
Alarms: 1, Intent: com.google.android.intent.action.SEND_IDLE

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

com.android.vending (): Wakeups: 2

android (): Wakeups: 1
Alarms: 17, Intent: android.intent.action.TIME_TICK
Alarms: 4, Intent: com.android.server.action.NETWORK_STATS_POLL
Alarms: 7, Intent: com.android.server.ThrottleManager.action.POLL
Alarms: 1, Intent: com.android.server.NetworkTimeUpdateService.action.POLL
Alarms: 1, Intent: android.app.backup.intent.RUN

======================
Network (requires root)
======================
==========
CPU States
==========
1 GHz (): 58 s 0.9%
800 MHz (): 14 s 0.2%
400 MHz (): 9 s 0.1%
200 MHz (): 8 s 0.1%
100 MHz (): 25 s 0.4%
Deep Sleep (): 1 h 50 m 17 s 98.3%
==================
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 0 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)
Since screen off: Reference since_screen_off created 57 s (Wl: 6 elements; KWl: 7elements; NetS: 2 elements; Alrm: 1 elements; Proc: 0 elements; Oth: 5 elements; CPU: 6 elements)
Since unplugged: Reference since_unplugged_ref created 0 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)
Since boot: Reference since_boot created 47 s (Wl: 4 elements; KWl: 0elements; NetS: 2 elements; Alrm: 1 elements; Proc: 0 elements; Oth: 4 elements; CPU: 6 elements)