yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] chamonix:
You main problem is network traffic. Looking at the alarms and the fact that wifi is on I believe that google maps is besides facebook the reason for the overhead. You could try to disable wifi when not using it to see if part of the awake time goes down (as google maps caching options distinguish between Wifi and Cell)
[AT&T Samsung Galaxy S II SGH-I777] dandrumheller:
multipdp kernel wakelock

wondering if anyone can help me track down a kernel wakelock that I am seeing on ICS that I wasn't on GB?

I'm currently on ShoStock2 RC3, and I'm seeing this "multipdp" kernel wakelock in BBS. It is by far the highest time wakelock on the device. As I write this it is at 42m of kernel wakelock in 8h6m of uptime, with 435 counts, so it's firing pretty close to once a minute. I don't ever recall seeing it on GB. I'm currently monitoring it while on the mobile data network, and will check to see if it behaves similarly on WiFi.

Google results showed a couple mentions of it in the BBS thread and the i9100 forum here on XDA, and it was also mentioned in a poor battery life thread for i9100 on AndroidForums. But in all these cases, the post was never followed up by an answer that addressed it (or at least I didn't see it - read about 100 posts past it's mention in i9100 forum here...)

Could this be caused by an app misbehaving because it's not built properly for ICS? I'm running the same apps I had on GB ROMs, and not noticing any "out of the ordinary" data use by installed apps.

In addition to this (perhaps related) is an apparent discrepancy between reported awake time in BBS and the details of the android OS item in the built in battery monitoring in ICS. Android OS seems to report significantly higher awake time than BBS. Right now, Android OS reports 3h18m of awake time, while BBS reports 2h37m.

Hope someone can point me in a direction to try to troubleshoot this...

Thanks,

dd
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I'll need some time to do research, but based on the name, multipdp may be the new name for svnet-dormancy.

As to Android OS reporting high awake time - that's because Android 4.0.3 and below have a display bug that adds screen-on time to that statistic instead of subtracting it.
[AT&T Samsung Galaxy S II SGH-I777] dandrumheller:
Thank you for getting back to me on this Entropy. Sorry I missed the simple math on the conflicting awake times. Since that's the case, then AOS should be reporting (BBS awake + (2*screen on))? Or (1*screen on) if BBS is also reporting screen on as awake?

Further observation of the multipdp wakelock indicates that it is only present when on mobile data - does not appear to increase significantly when on WiFi. If I understand correctly what svnet-dormancy is, that would be consistent with multipdp being a renamed svnet-dormancy, would it not?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Yes, that is correct.

One of the things new in Android 4 is lumping all wakelocks not accounted for by apps under Android OS. (This should include kernel wakelocks.) Screen time was supposed to be removed from this number, but a math error caused it to be added instead.

I think the math might still have some issues that could lead to some things being double-counted but I'm not sure.
[AT&T Samsung Galaxy S II SGH-I777] dandrumheller:
Understood. I think you are right about other wakelocks getting double counted - when I have been paying closer attention to wakelock times, quick adding up of wakelocks do seem to indicate a higher total than the total awake time being reported by BBS - but I haven't been on ICS ROMs long enough to have spent the time to do careful math on them. I'll keep an eye on this. Are there any particular areas for me to look at where info would be useful to you?
[AT&T Samsung Galaxy S II SGH-I777] test9876543:
I've got wakelock issue with multipdp as well and with secril_fd-interface.

I've been on CM9 nightlies for a few months and am currently on the CODEWORKX 2012-03-31 release with his 3.0.26 Kernel, but the same kernel wakelocks have been there on the Samsung kernels before as well. I've got two google accounts setup and one twitter account. I tried googling for any details but only found the sources for multipdp and don't understand enough to figure out what that driver actually does and why it would keep my phone awake all the time without doing anything.

The stats below are taken after charging all night in airplane mode, then unplugging and going back to regular mobile data. Have not received any mails/texts/tweets in the past 1.5 hours, still these two keep my phone awake for some reason. Any help would be much appreciated. If you need more details, let me know. Thanks.

Statistic Type: (0) Since Charged

Since 1 h 28 m 8 s

Awake (): 53 m 13 s (3193 s) Ratio: 60.4%

Screen On (): 11 m 53 s (713 s) Ratio: 13.5%

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

Kernel Wakelocks

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

"multipdp" (): 37 m 13 s (2233 s) Cnt:(c/wc/ec)62/0/62 42.1%

"secril_fd-interface" (): 34 m 53 s (2093 s) Cnt:(c/wc/ec)157/0/0 39.5%
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
I'm running UnNamed Rom 2.2.1 which is based on UCKK6 and battery life is sucking. With 6 hours of uptime, I have 33minutes of kernel wakelocks from [P]_NetworkLocationLocator, 15min from svnet, 13min from wlan_rx_wake.

Weird thing is that I set wifi sleep policy to turn off when screen turns off, but the picture below shows that it seems to stay on.. and my phone keeps intermittently coming on for some reason.

Is the only fix to flash to an other ROM?
[AT&T Samsung Galaxy S II SGH-I777] alacrify:
Sounds like you have something keeping the wifi on - you need to figure out what app(s) are pinging constantly. I had trouble with a Windows 7 network polling the phone constantly, others have mentioned recently that Google Maps can constantly poll for location, there are many others. I'd start with the beginning of this thread, and start freezing apps with TiBu until you find out what's doing it. When I was on UnNamed 2.2.1 I had it under 1% an hour once I tracked everything down.
[AT&T Samsung Galaxy S II SGH-I777] gsrrr:
You can also use droidwall to block certain apps from using data and hopefully stop it from keeping your phone awake.
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
Thank you for the advice! I disabled Google Latitude and that seems to have improved battery life considerably.
[AT&T Samsung Galaxy S II SGH-I777] csetera:
I'm on stock UCKKK6 ROM with Entropy's kernel from a few weeks ago. I've had excellent battery life. I've been running with WI-FI lately when I'm home. I have noticed something on my network lately that I think may be causing wakeups, but I've not seen it causing that much battery drain.

Last night I left the phone off the charger with more than 75% battery still available and woke up this morning to find the phone had shut down because it ran out of power. Is there a way to figure out what was eating battery over night? Since I had to charge the phone to start it up and that usually will clear the battery stats.
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
^^ @Csetera Get BetterBatteryStas and CPUSpy from Play Store
[AT&T Samsung Galaxy S II SGH-I777] csetera:
I have both. At least for BBS, I'm only offered the options for Since Charged, Since Unplugged and Since Custom Ref. Thus, I can't figure out how it can tell me what happened overnight since I had to charge it to turn it on.
[AT&T Samsung Galaxy S II SGH-I777] dandrumheller:
Just wanted to follow up with this a little - I made several changes to my setup since reporting the multipdp wakelock the first time, so I don't have good information on specifically what changed it, but I changed ROMs (and bases) to Phone Bricker, and changed modems to UCLC2 from KH7, I am now seeing significantly lower counts (143 on 9.75 hours up, or one about every 4 minutes) and 13.5 minutes of multipdp wake over the same 9.75 hours). this is in same location as previously reported, with similar usage pattern.

Battery life overall is qualitatively better with my current set up by a significant margin, and idle drain is better than it ever was on any GB rom setup I ever ran. I'm getting very close to 1%/hour idle drain, where on GB I was seeing around 2% in the same conditions. Currently running Entropy DD 04022012 (2 cores fixed) kernel.
[AT&T Samsung Galaxy S II SGH-I777] csetera:
Does anyone know how to track down the source of a multicast request? Strangely, I'm not seeing the MAC address that Wireshark is showing in my DNSMasq leases file, so it doesn't appear to have requested an IP address?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Usually you can identify the manufacturer from the source MAC. If Wireshark can't do it - there are slightly more up-to-date online MAC lookups.
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
I spoke too soon. Definitely getting wifi drain bug with UnNamed 2.2.1. 4 hours since charge and BBS shows 1hr 30min "wlan_rx_wake", 1hr 26min "svnet", 52min "wlan_wake" and 47min "sec-battery-monitor" and battery is at 75%

I'll try to capture with Shark for Root and see what's going on
[AT&T Samsung Galaxy S II SGH-I777] test9876543:
Hey Entropy512, any luck in finding out anything in regards to the multipdp issue?

I'm quite sure you're right about svnet-dormancy. The multipdp doesn't cause any issues when on wifi at all and my battery life is significantly improved.

However on a normal day in the office multipdp and secril_fd-interface (no idea whatsoever what that is) keep the phone awake. as you can see from my attached log&screenshot.

I'm running CM9 and it has been like that with the samsung ICS kernels as well as with all of Codeworkx' kernels (up to his own build on 04/02). Modems XXLPR or XXLPQ or XXLPS don't make any difference either.

Thanks.
[AT&T Samsung Galaxy S II SGH-I777] Snow02:
Can you disable HSPA? High multipdp could be from erratic hspa-3G switching. What's the signal like there?
[AT&T Samsung Galaxy S II SGH-I777] test9876543:
Signal is not the best, around -101/-107dbm at home, but significantly better at my work place. Constant 3G connection though in both places.

From what I understand about the svnet-dormancy issue from one of Entropy's posts the issue is that the phone stays awake for 6 seconds for every incoming data packet which effectively prevents it from sleeping.

However, I've set it to UMTS-only now and will test if that makes any difference. Thanks.

Update:

28 minutes BBS with UMTS-only just sitting with screen off - no change in behaviour, so unfortunately that's not it:

multipdp 7m13s (433s) Cnt:(c/wc/ec) 12/0/12 25.4%

secril_fd-interface 6m34s (394s) Cnt: (c/wc/ec) 27/0/0 23.2%

CPU-Spy lists 32% on 200Mhz (10:24), 62% Deep Sleep (19:41) with total state time of 31:35.
[AT&T Samsung Galaxy S II SGH-I777] csetera:
It looks like these are originating from my Linux router at the "edge" of my network. I have that machine set up with a Win7 virtual machine with PlayOn server and Mediatomb. I would assume one (or all?) of these are responsible for sending out the IGMP V2 discovery packets which are at least partly responsible for wakeups on my device.

Is it possible to block my phone from waking up for IGMP requests? Can droidwall be used for that? (I'm assuming not since it likely has to wake up before iptables would kick in). I'd like to keep these services on my network, but it would be nice if they didn't wake up the phone.
[AT&T Samsung Galaxy S II SGH-I777] alacrify:
I cleaned up my Win7 - there's a post a ways back with all the services I turned off that were spamming the network (and keeping my phone awake) - things like IPv6 and Windows Media services that I don't use on my internal network. Not sure if you could set PlayOn and Mediatomb to response only or if that would screw them up.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I just confirmed - multipdp is the new name for svnet-dormancy - same 6000ms wakelock timer.
[AT&T Samsung Galaxy S II SGH-I777] test9876543:
Thanks very much, good to have it confirmed.

But what does that mean exactly for ppl like me suffering from these wakelocks and at times having trouble going through a work-day on one charge without doing much?

Is there a way I can reduce the timer and/or disable it? Is it a kernel setting or driver or a radio issue?
[AT&T Samsung Galaxy S II SGH-I777] Mentalmuso:
modems

I'm just curious about the new Modem that came with the I777 ICS leak recently.

I read that there are the same battery drain issues that were present with kk6 modem? Is this right?
[AT&T Samsung Galaxy S II SGH-I777] K Rich:
would also like to know.
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
Please tell me this is not so. I'm thinking of trying out an ICS rom to get away from the KK6 wifi drain bug :/

Actually... do I need to flash a ROM that has another modem or can I manually change the modem to another one that doesn't have the bug?
[AT&T Samsung Galaxy S II SGH-I777] dalavar:
Not sold on K9 being a big battery drain. Pretty much the first app I put on my N1 and never had any battery drain issues with that phone. Maybe wakelocks do different things to different hardware though. But Push mail is the whole reason I am running K9 mail so I"m gonna be mad if it's an issue ;)
[AT&T Samsung Galaxy S II SGH-I777] vladm7:
maybe the issue is in how many emails you receive daily? If it's not that many, then push-caused minute-long wake locks do not contribute whole lot.

also, if you use your phone a lot and charge daily, then those K9 wakelocks would be drop in a bucket compared to other stuff you run.
[AT&T Samsung Galaxy S II SGH-I777] dalavar:
Makes sense. I do not receive a lot of messages maybe on a busy day only about 20. Although I did recently add a bunch of gmail labels to sync which I did notice created a wakelock for each label so I got rid of those. Tried Freezing or uninstalling some of the apps mentioned here will see how it goes.

Just kinda disappointed in the battery life of this phone compared to my Nexus One. No new apps so it's baffling guess I need to give the phone time to settle into it's routine maybe battery life will improve.
[AT&T Samsung Galaxy S II SGH-I777] dmm5157:
Here's the front end of my BBS dump file. Looks like Gmail may be the culprit, but I don't have any widgets or special settings for it. Just my e-mail, contacts, and Calendar set to sync, but there are no options to change it from PUSH.

Any ideas?

Let me know if I should post the full TXT file, if that will be more helpful.

Thanks in advance

===================General Information============

=======BetterBatteryStats version: 1.2.1.0

Creation Date: 2011-11-02 16:09:14

Statistic Type: (0) Since Charged

Since 8 h 8 s

VERSION.RELEASE: 2.3.4 BRAND:samsung DEVICE: SGH-I777 MANUFACTURER: samsung MODEL: SAMSUNG-SGH-I777

=========== Other Usage ===========

Awake (): 2 h 25 m 25 s (8725 s) Ratio: 30.3%

Wifi On (): 2 h 2 m 13 s (7333 s) Ratio: 25.5%

Screen On (): 57 m 12 s (3432 s) Ratio: 11.9%

=========Wakelocks=========

*sync* (com.google.android.gm.Gmail): 5 m 37 s (337 s) Count:73 1.2%

MAIL_SERVICE (com.android.email.Email): 4 m 26 s (266 s) Count:113 0.9%

GmailProviderProviderChangedBroadcastWakeLock (com.google.android.gm.Gmail): 1 m 22 s (82 s) Count:120 0.3%

ActivityManager-Launch (Android System): 1 m 12 s (72 s) Count:273 0.3%

GTALK_ASYNC_CONN (Google Services): 48 s (48 s) Count:5 0.2%

Checkin Service (Google Services): 37 s (37 s) Count:1540 0.1%

AlarmManager (Android System): 27 s (27 s) Count:1669 0.1%

SyncService (com.evernote.Evernote): 25 s (25 s) Count:13 0.1%

GTALK_CONN (Google Services): 23 s (23 s) Count:1504 0.1%

RILJ (Dialer): 23 s (23 s) Count:2671 0.1%

show keyguard (Android System): 22 s (22 s) Count:39 0.1%

WifiService (Android System): 20 s (20 s) Count:745 0.1%

com.google.android.apps.googlevoice.UpdateService (com.google.android.apps.googlevoice.Google Voice): 15 s (15 s) Count:9 0.1%

*network-location* (com.staircase3.opensignal.Open Signal Maps): 14 s (14 s) Count:8 0.1%
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Reread the first post... especially the "if BBS doesn't show any significant wakelocks" instructions... 5 minutes of wakelocks from gmail, but 1 hour of unexplained wake time is a clear indication BBS is missing something.
[AT&T Samsung Galaxy S II SGH-I777] dmm5157:
Thanks. I'll try the ADB method when I get home and see if it sheds any additional light on what's going on.

In the mean time:

Going to SETTINGS->ABOUT PHONE->BATTERY USAGE yielded nothing. Just showed ANDROID OS CPU as 54 min and no significant STAY AWAKE numbers in any of the apps listed.

CPU SPY showed 35% deep sleep, 34% 200 mhz, and the rest were prety even around 6-9%.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
35% is extremely poor if you reset the timers after unplugging.

Actually - sorry, I'm wrong, you had a screen-on time of something like 1 hour, so that will drop the deepsleep percentages significantly.

I usually do the following:

Charge to full

Reboot to reset /proc/wakelocks counters

Reset CPUSpy timers once phone boots

Turn off screen for a while

If you do this overnight, it provides a great idle drain baseline.
[AT&T Samsung Galaxy S II SGH-I777] florelui001p:
Here are the two files you told me to pull from my phone, if you require anything else let me know. Once again thanks for the help!
[AT&T Samsung Galaxy S II SGH-I777] dmm5157:
That sounds like a great plan, thanks for the tip. I'll give that a try.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
This one is odd... I don't see anything particularly unusual.

The key for looking at these is:

Use Excel or OpenOffice to open wakelocks.txt as a tab-delimited text file

Create a new column called "sleep_time_minutes"

Set a formula for sleep_time_minutes to equal sleep_time divided by 60e9 (e.g.60000000000)

Sort the spreadsheet by sleep_time_minutes

In your case:

vbus_present was the top dog - this wakelock is always present when charging or on USB

svnet is at 19 minutes - this is mostly due to basic radio management stuff

wlan_wake has a wake_count of 153 but is only 1.8 minutes of wakelock time

I suggest going back to the first post, and trying the following:

Charge to full

Unplug and reboot (You clearly didn't do the reboot step, with 226 minutes of vbus_present)

Once booted, reset CPUSpy timers

Let phone sit for a while - I usually do overnight tests of around 8-9 hours

Once you've let it sit, pull wakelocks and dmesg and also look at deep sleep percentage in CPUSpy
[AT&T Samsung Galaxy S II SGH-I777] florelui001p:
Ok I'll follow your instructions, thanks!
[AT&T Samsung Galaxy S II SGH-I777] florelui001p:
Edit: got the excel thing to work. Taking a look
[AT&T Samsung Galaxy S II SGH-I777] tboooe:
Disable fast dormancy?

Hi, has anyone thought about disabling Fast Dormancy? It seems that disabling this may help save battery. Here is a link on the I9100 thread:

http://xdaforums.com/showthread.php?t=1111581
[AT&T Samsung Galaxy S II SGH-I777] weedolo9y:
I have CPU spy and I did what you said entropy for 1 hour the n checked it .. my phone never goes into deep sleep it was at 200 mhz the whole hour any ideas?
[AT&T Samsung Galaxy S II SGH-I777] Adelaide.:
Get better battery stats if you don't have it already. You can find the .apk by searching the forums. It will show most wakelocks. Do the same thing as you did to test the CPU, just let your phone sit for a while and then post the BBS file here.

Also, just in case you don't know you don't need screen shot it to take screen shots, the phone has it built in. Just press the home key and power button at the same time.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Play around with it - if you don't figure out how to analyze it in Excel by this evening I'll take a look at it tonight. (Won't be able to until then.)

Disabled by default. Also, enabling it seems to do nothing on our phone.

Pull /proc/wakelocks as described in the original post of this thread.
[AT&T Samsung Galaxy S II SGH-I777] weedolo9y:
Thank you for the screenshot thing I used to have a captivate I'm no pro on here but I'm not a newbie either I have bbs but I have no idea what a wakelock is ... is that why my phone doesn't go into deep sleep? Thanks
[AT&T Samsung Galaxy S II SGH-I777] rlarsen462:
So the following is having the phone on for about 10 hours, dropped to 37% with moderate use.

I can't get a handle on this, I regularly have CPU spy results of 70% or lower for deep sleep, the rest at 200Mhz and 800Mhz. I lose at least 2% per hour on idle, and my battery drops like a rock with the screen on.

When I first got the phone (before I installed anything really) I got a little over 5 hours screen time, when I used it continuously for 5 hours (I was on a long car trip lol).

Android OS consumption is always very high. I rarely get a full day's use out of the phone (say 7AM to even 7PM)...and I am used to a Blackberry 9700 where I would get 2 days even with heavy use.

Said my dmesg.txt file was too large to attach for some reason, but here's my wakelocks file, sorted by mins.

The top few are:

vbus_present	441.9

main	163.8

svnet-dormancy	141.6

svnet	100.0

AudioOutLock	31.2

deleted_wake_locks	29.9

[P]_MAIL_SERVICE	26.6

[P]_FacebookService	23.8

sec-battery-monitor	14.5

[P]_DownloadManager	11.0

radio-interface	7.8

alarm_rtc	6.6

[P]_GTALK_ASYNC_CONN	6.5

[P]_ActivityManager-Launch	5.8

alarm	5.5

[P]_*network-location*	3.2

[P]_AlarmManager	2.6

power-supply	2.3

[P]_*sync*	1.9

vib_present	1.8

[P]_NetworkLocationLocator	0.8

EDIT: Here's the screenshots (I guess I was whaling on it harder than some of you guys that seem to barely use the phone...):
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
There's nothing obvious in your dump - but the problem with having a good analysis it's clear you've been running for a VERY long time with mixed load, including many hours (443 minutes) on the charger.

(vbus_present wakelock = you're on the charger)

As discussed before, the best way to get a good idle drain baseline is:

Charge to full

Pull from charger

Reboot

Reset timers in CPU Spy

Let the phone sit for a few hours (I usually do an overnight test)

Pull data, most useful is:

Time since full charge

Battery % remaining after that amount of time

Deep sleep percentage (don't need a screenshot)

/proc/wakelocks contents
[AT&T Samsung Galaxy S II SGH-I777] rlarsen462:
Will do this tonight and report back in the morning, thanks!
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
The issue lies within the firmware, not a particular modem. If you're experiencing the issue on a rom, then you'd have to change to a rom with a different firmware to get away from it. The stock rom identifies as UCKH7; the 2.3.6 update from AT&T is UCKK6. This combination of letters and sometimes numbers is how you distinguish between firmwares. For example, the ICS leak is UCLC2.

On another note, modems can be changed; they are completely independent of the rom/firmware. They are packaged together in official releases, which is how they are identified, but the firmware in which it originated has no bearing on its functionality on something else. Any of the compatible modems work on any rom, ICS or GB.

Sent from my Galaxy S II (i777)
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Figure out what's using so much data.
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
Thanks for clarifying. Is there a firmware/ROM that does not have the wifi drain bug? I'm looking at the ICS ROMS posted here, and they are all based on UCKK6, which I assume has the bug.
[AT&T Samsung Galaxy S II SGH-I777] dandrumheller:
UCKK6 is a GB firmware base. No ICS ROMs are based on UCKK6. Read the thread titles to determine the base of the ROM contained therein.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Pretty much any I9100 base XWKL1 and later seems good.

XWKL1 is good

XWLA4 is good

All of the official I9100 ICS releases (XXLP*, XWLP*, etc) seem good.

Pretty much, if you avoid UC bases, you'll be good. :)
[AT&T Samsung Galaxy S II SGH-I777] nbell13:
I think you can add "Draw Something" to the list. I believe that is what caused a huge "Android OS" CPU usage drain. Seemed to stop after I uninstalled it.