yashsingh1/xdaforums huggingface dataset:
[Samsung Infuse 4G] Entropy512:
Modem does nothing for wifi, the wifi driver is in the kernel.

Use Shark for Root to capture wifi traffic. Load the pcap file in Wireshark.

If you see a bunch of things that look like this in the capture:

No. Time Source Destination Protocol Length Info
206 742.504839 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 96 Ethernet II
207 742.528310 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
209 746.306143 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
210 746.313237 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
211 746.320438 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
212 746.327563 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
213 746.482617 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
214 746.488186 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 96 Ethernet II
219 746.546120 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
220 746.547299 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 79 Ethernet II
314 1624.841743 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 76 Ethernet II
315 1624.849232 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
317 1628.634241 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
318 1628.638958 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
319 1628.644235 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
320 1628.648762 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
321 1628.783970 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
322 1628.789124 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 96 Ethernet II
327 1628.829490 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 74 Ethernet II
328 1628.829993 06:46:65:da:c3:89 MurataMa_da:c3:89 0x886c 79 Ethernet II

And by a "bunch" I mean once a second for minutes on end - try the latest Daily Driver kernel release. That will HOPEFULLY fix the issue.

It's some weird **** related to a wacky mostly undocumented Broadcom feature. **** Broadcom.
[Samsung Infuse 4G] kicker1:
Hi mate interested in knowing your results, I got the same issue :(
[Samsung Infuse 4G] PharmNerd:
Didn't see anything like that yesterday, but I had also disabled Wifi while away at my family's Christmas (which, by the way, did help battery life quite a bit).

Not sure if CatyRom 2.0 has the latest Daily Driver or not, so I flashed the 11/27 version.

Next time I go out, I'll toss together a pcap file and see if any of those MurataMa thingamabobs show up.

EDIT: Or is it the 0x886c Protocol I'm looking for (I didn't see any of those)? Sorry, I don't know diddly about network diagnostics...
[Samsung Infuse 4G] PharmNerd:
FYI.. Here's the battery graph showing how disabling Wifi can help cut down on battery drain when outside of a Wifi area.

My family's Christmas was in a fairly rural area, so my phone was awake quite a bit more than usual, trying to sync on a mostly nonexistent data connection. So, I imagine disabling Wifi will have an even more pronounced effect if you have good cell coverage.

ADD: This is running CatyRom 2.0 after flashing the KL2 modem (theme is Matted Blue, if you were curious).
[Samsung Infuse 4G] PharmNerd:
OK, entropy.. I think I see what you're talking about. Just got back from lunch, and my pcap was full of these...

21	17.410567	7a:d6:f0:97:50:71	SamsungE_97:50:71	0x886c	74	Ethernet II
22	18.435103	7a:d6:f0:97:50:71	SamsungE_97:50:71	0x886c	74	Ethernet II
23	19.458398	7a:d6:f0:97:50:71	SamsungE_97:50:71	0x886c	74	Ethernet II
24	20.481196	7a:d6:f0:97:50:71	SamsungE_97:50:71	0x886c	74	Ethernet II
25	21.504877	7a:d6:f0:97:50:71	SamsungE_97:50:71	0x886c	74	Ethernet II
26	22.564409	7a:d6:f0:97:50:71	SamsungE_97:50:71	0x886c	74	Ethernet II
27	23.554539	7a:d6:f0:97:50:71	SamsungE_97:50:71	0x886c	74	Ethernet II

I'm using your latest Daily Driver, so I'll keep an eye on what the battery does over the next few hours.
[Samsung Infuse 4G] PharmNerd:
Well, the 11/27 Entropy Daily Driver kernel didn't appear to eliminate the Android OS battery drain.

I tried a few things, and it appears that the only thing to stop the battery level from plummeting is a reboot. Cycling Wifi off and back on seems to help a little, but not completely.

As far as the 0x886c packets go, they appeared roughly once every second in a pcap sample taken shortly after the first "Returned to Wifi".

A few minutes after "Rebooted Phone", I saw a flurry of about 10 of them in less than a second. Random 1-2 minutes samples during the next hour or two showed an occasional 0x886c packet -- maybe 1-2 per minute.

I didn't see any 0x886c packets in samples taken immediately after the second "Returned to Wifi", "Cycle Wifi", "Cycle Data Network Mode", or "Cycle Flight Mode".
[Samsung Infuse 4G] qkster:
fwiw:

I notice a big drain on batter by Google maps even when i don't use it.

idk if uninstalling for you may be an option or not..or opt out of location request

modem and data can also take up a bit a battery as well.

from previous posts, i have recommmed DL a dataswitch app that stops background data - it's a toggler.

this leaves phone and text intact.

do this when you dont need constant background data sync.

it is not for everyone but it can be useful if you are looking to conserve battery in a pinch.

you can go for several days on a single charge.

ymmv
[Samsung Infuse 4G] PharmNerd:
I've used Juice Defender Ultimate in the past, but didn't really notice any improvement. In fact, it made battery life worse when on wifi.

With a constant wifi connection and sleep policy turned off, I can still have 100% battery 4hrs after unplugging from the charger(!).. Juice Defender disconnecting & reconnecting every 15 minutes killed a few percent every hour. Not to mention, I hate having to wait 10-15 seconds after turning on my phone to use the internet.

My only problem is when switching back and forth between wifi and cellular data.
[Samsung Infuse 4G] Entropy512:
****ING BROADCOM.

**** THEM TO HELL.

I thought removing BT-AMP support from the kernel would fix that wacked out **** but apparently it doesn't.

****ING BROADCOM.

**** THEM AND THEIR COMPLETELY UNCOMMENTED/UNDOCUMENTED CODE, ALONG WITH THEIR LACK OF DATASHEETS.

I'll see if I can duplicate this with the parents' phone. Interestingly enough, it only seems to happen with AT&T leak bases - I had it happen multiple times after getting my GS2 (which is when I started playing with UCKJ2) but never beforehand. (Edit: I'm wrong - it does also happen with UXKG3 base, such as Infused 2.x - but it seems to not happen on Hellraised ROMs to my knowledge, nor on CM7.)

This may possibly be related to the weird wifi issues (including battery drain) affecting UCKK6 for the Galaxy S II - It's some weird bug in /system and not the kernel.

Edit: To those having issues, do you own any other devices with Broadcom wifi chipsets? (Such as other Samsung phones, Samsung Tab 10.1s, etc)?

https://www.youtube.com/watch?v=eQBjQs07wbw - sing along with me! When they say "**** Martinez", I say "**** the Broadcom!" (Yes, I know that is a bit weird - but it has the correct syllable count and rhythm.)
[Samsung Infuse 4G] qkster:
We are all set in our ways. If you're open to suggestion, unistall juice def.

download from market: dataswitch by tomatoX.

run it for a day and see what happens.

Entropy..I feel the anger of your rant, but it was way over my head to appreciate what it was about.
[Samsung Infuse 4G] andrawer:
Really necessary?
[Samsung Infuse 4G] PharmNerd:
I think it is. :cool:
[Samsung Infuse 4G] Entropy512:
Yes, they are one of the least open source friendly and least developer-friendly companies out there.

They don't comment the code of their crappy kernel drivers (and this thread PROVES they are crappy) at all, and they don't provide ANY documentation on their chipsets.

So when their drivers flake out like they are here, there is no way to fix them.

The evidence is clear in the wireshark captures - some wacky proprietary feature of theirs (Bluetooth AMP) is flaking out and malfunctioning (despite this phone not even USING the BCM4330's BT features) and waking up the Infuse once a second in many cases. This kills battery life.

The feature misbehaves even when BTAMP is completely disabled in the kernel.
[Samsung Infuse 4G] qkster:
I'm gonna give you the 1700th thank
[Samsung Infuse 4G] Entropy512:
I tried to reproduce this with my parents' phone (Infused 2.2.3, Daily Driver 11/27) - no luck, it's working fine. :(

Makes it a pain in the butt to debug.
[Samsung Infuse 4G] PharmNerd:
This battery drain is weirdly inconsistent. There have been a couple times I've left my house and didn't see it. Once yesterday, and once last week. Seemingly if I leave home for short periods (less than an hour).
[Samsung Infuse 4G] Entropy512:
Unfortunately I lose access to the device again tomorrow. :(
[Samsung Infuse 4G] Entropy512:
Turns out this is affecting newer I777 firmwares too, such as the UCKK6 OTA.
[Samsung Infuse 4G] qkster:
I'm thinking that we should bring this thread back to attention.

I'm hoping we can get some further reports of these battery drain. If any user is getting the battery drain, please post some:

1. screen shots of the drain

2. the usage breakdown

3. the firmware

4. the kernel

5. any cpu spy stats

6. uv or oc and the app for uv or oc

7. the event just prior to the noted drain. (ex: after wall charger and unplugged, after flashing; after flashing a mod; after a BT, data, airplane mode toggle)

Thanks
[Samsung Infuse 4G] :
I do all of the standard things to save battery life (keep display on lowest brightness setting, turn off cell antenna when in an area with no signal for a prolonged time, turn off wifi when not using it, turn off GPS when not using it, turn off BT when not using it, and turn off auto-rotate when not needing it). With those things, I get good battery life on stock and most any recent rom.

I rarely get the kind of battery usage from Android OS that is reported in the OP. Biggest battery drains I've seen are when the phone is fruitlessly searching for a cell signal, when wifi is left on when there is no available access point, and when I have the display on for long periods of time.

I have also noticed that if you charge with a USB cable connected to a computer instead of using the wall charger, that battery life is very noticeably increased. Charging seems to take a little longer with the USB cable connected to a computer, so perhaps the slower charge time is related to the longer battery life?

Battery life is good on ICS roms now, but I still get better battery life on stock UCLB3 and on lightly modified UCLB3 based custom roms.
[Samsung Infuse 4G] qkster:
This particular drain isn't related to battery conservation methods. It is pretty specific. When it occurs, there is a high CPU usage or demand. When triggered, it seems to cause the CPU to hit the max frequency. So far, I only know a reboot will stop that process. Using a cpu controller to lower the frequency doesn't seem to correct it either.

I'm trying some build prop changes to see if it would make any difference.

If you are running Ethereal, flash a systemui or framework-res -occasionally - even if it is the same one you are running.

You can also charge it to 100%. then toggle the BT on and then off or the wifi on and then off and observe when you leave your home or wifi location.
[Samsung Infuse 4G] qkster:
I had another episode this morning.

I was down to 25% last night.

Data and Wifi on.

Wall charger to 100%.

Toggled wifi to off and left the house.

No apps running, background data is on but sync is off.

Battery is down to 84% with 4hr running.

Will post a screen later.

Rebooted.

Build.prop near stock except a few memory buffers tweaks. I don't think this would have been a problem but will take this off also on the next charge.

edit: screenies up. If you look at the 1 to 1.5 hrs, you can see the drain start. I was not using the phone and awake came on. Then it happened intermittently until the wifi was turned on.
[Samsung Infuse 4G] qkster:
Here is an update after reboot. Note the wifi on. Background data on. Using more resources but battery use stabilize.
[Samsung Infuse 4G] qkster:
more battery drain issues here:

http://xdaforums.com/showthread.php?t=1758286&page=2

http://xdaforums.com/showthread.php?t=1039696

http://xdaforums.com/showthread.php?t=1224052&highlight=battery
[Samsung Infuse 4G] qkster:
More battery drain issue on stock kernel

So, I'm looking for some more brains on this issue.

Perhaps someone with more knowledge and insight.

In the last few links, I found some reference to GB later than 2.3.4 builds that supposedly fixed the drain.

While using a few custom kernels that was based on Roger's 2.3.3, I had multiple battery drain issues.

I had reverted back to stock GB 2.3.6 UCLB3. Rooted. ATT bloated removed. UCLB3 modem. Stock Kernel. No lidroid quickpanels. Build.prop: wifi scan 60; pm.sleep=1; ro.ril.power.collapse=1.

Here are a few screen shots from the stock kernel.

The major drain occurred in the last 6 hrs (image #3) - Before going to sleep, I had 49% left. I toggled off the wifi, cell data, sync data and off background data. Technically nothing else should be running except the alarm to wake me up. This morning, the phone had powered off.

The first image shows light use. 88% battery after 11hrs.

The second image: note the cliff in the last 5-6 hrs with supposedly nothing running.
[Samsung Infuse 4G] PharmNerd:
While I don't recall seeing this in UCLB3 Gingerbread; I did see it in one of entropy's June builds of CM9 (if I recall correctly, the CM9 kernel is based on UCLB3).

Seems to be fixed in entropy's most recent 7/28/12 CM9 build, which really makes me think it's BT-AMP (since entropy specifically noted that BT-AMP had been fixed since his June builds).
[Samsung Infuse 4G] RoryB:
Consistently for me it is after a long charge on the wall charger. I do not charge from my PC.

Just this morning I had it charging all night and before I put it on the charger I was not getting the Android System or Android OS keeping it awake. Then after about 30 minutes I looked at battery stats and Android System kept awake all but about a minute of it.

I may have to try a toggle flight mode just before or after unplugging next time to see if that makes a difference.
[Samsung Infuse 4G] qkster:
What are you running?

Modem?

Kernel?

Thanks
[Samsung Infuse 4G] RoryB:
Sorry about that

7/29 CM10 by Scott

ULCB3

kernel from Scott's CM10

Did not have the consistency of this problem until the CM10.

Before that I had run your Vagabond and Entropy's CM9
[Samsung Infuse 4G] RoryB:
Recharged to 100% and got the stay awake in Android System and Phone. Toggled airplane mode. That did not seem to do anything.

Toggled airplane mode again and left it there for a while. Phone stopped the keep awake, but Android System still kept awake.

Seems for me it takes the reboot which I always do as a wipe cache and Dalvik cache.
[Samsung Infuse 4G] bilihor:
Put my CM10 7/29 UCLB3 to charge, unplugged around midnight fully charged, checked battery at 8am, and it was 11%, most of the time Android OS was kept awake. I had only GMail and Twitts synced on WiFi. BT, GPS off

Definitely something is wrong. I did not post before because some experienced people here in forum were saying IN BOLD that battery discharge in CM10 is normal.
[Samsung Infuse 4G] qkster:
I'm using GB - 2.3.6. Rooted with Chainfire su, Superuser.apk and busybox. Deodexed.

I've seen this using the UCLB3 modem and UCKL2 modem.

Also seen on Entropy's DD, Zen A16 and a Zen cooked stock kernel with CWM recovery. These run on voodoo ext4.

I've also tried stock kernel on rfs on a rooted odex version.

Since paying more attention to battery stats, I see the drain start with Android OS taking the lead role as the top user. If you have CPU spy, it will show more allocation to max speed. I use CPU Master. It has a widget that will show the current CPU speed. If the widget is running, you can see the CPU racing.

While it is racing, the phone is laggy. Poor touch response. If it was running for more than 20 minutes, it will feel warm by the camera. If it is racing and you try to charge it, the battery sometimes will not seem to charge as fast.

If you start paying attention, you will see other users talking about poor battery life. I've seen it mentioned on 2.3.6, MIUI, ICS and JB.

Fix it with a reboot or reboot with cache/dalvik wipe.

For me, the trigger appears to be a wifi or cell data transition and/or toggling those options on the quickpanel.
[Samsung Infuse 4G] PharmNerd:
Assuming this is the same problem I had around the time of the OP, toggling airplane mode, Wi-Fi, or cellular data have little or no effect on the Android OS battery drain (see post #11). Only a reboot makes it stop.

And, for me, the source of the problem was just naturally letting the phone transition back and forth from Wi-Fi to cellular data (i.e. leaving home so the phone transitions to cell data, and vice versa), without ever touching any of the toggles.
[Samsung Infuse 4G] bilihor:
Repeated same experiment after clean reboot. WiFi was turned off before reboot.

8 hours and 30 minutes - 61% battery, Cell Stand By and Android OS 30% of battery use each.
[Samsung Infuse 4G] PharmNerd:
Should go without saying, but whatever ROM your using should be flashed after a full wipe. (Maybe you did this, but just to be sure)

I typically only see cell standby eat that much battery when I'm somewhere with terrible cell reception (at work). But I will admit that I suspect that the Android OS battery drain is probably specifically initiated by switching from a Wi-Fi to a cellular data connection. So if you had Wi-Fi connected when you first rebooted, then this doesn't surprise me. (EDIT: I see you had Wi-Fi off before the reboot. Reading comprehension fail.)
[Samsung Infuse 4G] brc6985:
Qkster,

The one thing I don't think I've seen anyone mention is your theme. Could it be the culprit??
[Samsung Infuse 4G] qkster:
Probably not.

I don't have much of a theme. The wall paper is black. Lock screen is black.

The status bar icons stock were substituted for a few color ones.

The launcher icons from a few stock apps were swapped out.

This problem, however, is seen on stock and other theme too.
[Samsung Infuse 4G] Pony Express:
Don't know how true it is but I have read that dark thenes are more battery friendly than light themes.
[Samsung Infuse 4G] PoXFreak:
Qk...

Is there a way, other than the obvious "turn off data" in settings menu to strictly disconnect from data completely? I would think deleting all the apns would be foolish in theory because of the amount of work involved in restoring them.

Has anyone tried the "single apn" setup and found lower rild usage? I'm beginning to think that might have something to do with it since system has to reestablish a data connection each time the rild has to switch from one apn to another.

Just some thoughts, no solid answer yet.
[Samsung Infuse 4G] qkster:
That is my belief also. Black WP - NO LED to light up. No juice use. Hence the no boot animation either. :)

Airplane mode also shuts off the cell data and cell signal. Some times this break the rild.

I dropped a post on CM10 that has examples of other users drain report:

http://xdaforums.com/showpost.php?p=29897301&postcount=2030

http://xdaforums.com/showthread.php?t=1806272&highlight=battery+drain

http://xdaforums.com/showthread.php?t=1179809
[Samsung Infuse 4G] RoryB:
I have had the run wild issue and I typically do not use WiFi.

It seems to happen for me after a long charge. I just switched to an updated piece of firmware so I will have to start over, but I plan to try just rebooting as soon as I unplug from the charger to see if that makes a difference.

Got to let it happen first to confirm the issue exists in this version.

I had tried toggling airplane mode and it did not stop the runaway train.:laugh:
[Samsung Infuse 4G] PlacidCat:
After a long charge, do you usually head out or change location? I originally thought a long charge was associated with my sudden change in power consumption but then I questioned that because I nearly always go out of (WiFi) network range after a long charge. The exception is over a weekend, so I can take careful notes this weekend to see if, indeed, it is associated with a long charge. Your post does make me wonder, though, if there is more than one cause.
[Samsung Infuse 4G] PharmNerd:
"Android OS" in the battery stats encompasses a lot of stuff.

I would think that it's entirely possible that GB Android OS battery drain might be due to something entirely different than with ICS or JB.
[Samsung Infuse 4G] PlacidCat:
Quick question - anyone with a Honeycomb tablet notice a similar issue? Just curious because it was the last tablet-specific platform before ICS (which essentially merged the two platforms). Makes me wonder if the issue is, indeed, something that is platform-specific or if there is something that originated around the time of Gingerbread that carried through to the "shared" tablet/phone platforms that are ICS and JB.
[Samsung Infuse 4G] RoryB:
Usually head to work, but did not last weekend. You bring up a good point. I live in a spot that I receive 5 different towers, so when I check weather on my lockscreen I can be in any one of five places. Makes me think I am jumping from tower to tower even though I am only moving around in my house.
[Samsung Infuse 4G] qkster:
Thanks for dropping in.

My observations are similar to yours. It is possible that this is due to a BT-AMP bug mentioned here:

http://xdaforums.com/showpost.php?p=29907250&postcount=1880

I have noted these with charging the phone to full and sometimes moving from one wifi or data zone to another.

Here are some screens:

#1. Show a typical use for me. Wifi and Android OS is behaving. Stable battery.

#2, 3, 4: Here is where it starts. I have stable wifi connection. Background data on. Battery down to 30%. Wall charger plugged in. Got to 100%. Unplugged from charger. Nothing changed or new. See how it start. I caught this early. It goes from 100% to 92% in 1hr.

#5,6: show the use using Terminal Emulator, "top -m 5 -n 1"

#7: It continues. Down to 82% in 3.5 hr. The screen capture picks up a "wake lock" and "TV out server". These don't show up later.

The odd thing here is "TV out" is an option on a screen lock mod by Nun Hugger -it shows up in Settings.apk - not native to UCLB3 GB Settings.apk

#8: shows trend.

#9,10: more stats.

#11,12: Wifi was toggled off after 3.5 hrs. Cell data took over. The drain stopped. Battery use levels off. No changes in apps running. I only have gmail, gvoice, gtalk, running in the background. The other apps are tools like root explorer, titanium backup, shootme screen capture, terminal emulator, cpu spy. No games, no crap apps.
[Samsung Infuse 4G] jdt352:
This was my experience today.

After about 3 hours, my battery took a nosedive from 100% to 60%.

This shows MAPS, DIALER, and GOOGLE SERVICES as the most used on my phone.

Although, I hadn't used maps, I didn't dial any numbers, and the phone was idle on my desk.

Google services stayed awake for 56 minutes during that time.

Look, no transfer of DATA to speak of, yet the program kept the phone AWAKE.

Dialer, same thing.. wasn't using it at all, yet it's awake.

Other shot was messed up, this is a current capture, and you can see the big dive at the beginning, and that the phone was awake all that time.

Vagabond ROM 2.3.6

ZenFuse 1600A kernel

UCLB3 Modem
[Samsung Infuse 4G] qkster:
What happened to you are the phone around the time it started, Jim?

Wifi: on/off?

cell data: on/off?

Home? work? driving?

Thanks