[Q] Wifi high cpu problem - Galaxy S II Q&A, Help & Troubleshooting

Firstly an introduction to my problem - I've been having problems with high cpu usage whenever I enable my wifi. I've gone to stock [I9100DXLSD_I9100OLBLSD_XME.zip], tried different kernels [Apolo, siyah, speedmod, dorimanx], tried different roms [slimkat, neatmod, jellysnap], done factory resets for each, flashed quite a few modems [dx's,xx's, currently trying radio-cm-9-SGS2-LP6-signed.zip, there's a whole bunch that I'm still going through as well - can't post urls yet]. I had no luck with all of these methods so far.
Since that approach didn't work I have also been looking at wakelock detector,gsam and betterbatterystats to find out what was chewing up cpu and causing battery drain. I initially thought it was something caused by google play services (SystemUpdateService), wlan_rx_wake, or a pc/router on network with a configuration conflict or something like ipv6 causing bizarre behaviour but so far I have been able to get rid of wlan_rx_wake problems but those were minor on the battery drain problems I was having. Using a static ip also did not improve anything. Wakelock detector/gsam/betterbatterystats were now all showing either android os or android kernel as the culprit but would not show exactly what process was causing it. Once I enabled 'show cpu usage' in developer options I was able to see that dhd_dpc process was causing all this havoc. There does not seem to be much information on the net about this process and problem. When I switch wifi on, I'll be able to use the net fine for a few seconds to a minute before dhd_dpc decides to kick in and using a high amount of cpu causing insane drains and I have to quickly switch wifi off before it locks up requiring a reboot.
What I have found out through all of this by accident is that if I enable wifi and then quickly copy a file from my phone to a pc on the network, I am able to use internet on my phone without any lockups and the speed (cpu) is fine and fluid as usual but only while the file is still copying over the network. During this time dhd_dpc seems to consume cpu like it normally should as I've seen on the other devices I have. Why is this? This has to be a software issue since it works flawless when I do this? Not sure why it would require some sort of lan traffic in order to get wan traffic working without sending the cpu usage to orbit. The battery of course drains but not as bad since it's busy copying files over. Maybe possible that it doesn't like the routers on my network that might be sending arps and copying files over the network makes it ignore that traffic (just shooting in the dark here)?
I hope someone can shed light on this and perhaps give me some other things I can try. Btw, cell radio/mobile data are all fine, except for one or two of the modems that I tried. So is this kernel, rom or modem related? Please help! This is the only thing not working properly on this phone. Thanks for all those that took the time to read and answer.
Currently on my phone:
Rom: I9100XWMS3_NeatROM_v6.4
Kernel: Apolo-4.15b_Regular
Modem: LP6 (this is just what I am currently testing out of the dozens of modems I have)
PS- yes I use kernel wipe and rom wipe scripts. Maybe the problem is somewhere in dhd.ko?
Anyone mind uploading their dhd.ko that doesn't have this dreaded dhd_dpc cpu pegging purge business just so I can rule it out?

Related

FIXED: "Processing..." and page loads, take forever.

searched, no find.
I have two consistent issues.
1 - When retrieving sites requiring a login, or when logging into LastPass, if I can get to the "Processing..." popup, it will hang and sit. Sometimes it will complete Processing... after a couple minutes, and sometimes it will continue until I kill the app. This issue is frequent, so restarting the app is not an acceptable workaround.
2 - When loading a page it will often do the same but without a popup. It will take forever to load, sometimes not at all. Occasionally I can reload the page and it will work, occasionally it will not load at until I reboot the phone or something.
these issues seem to occur frequently on home wifi. my PC, also on wifi, will load from these servers instantly.
i have had the issue on the following:
stock
Unnamed latest
Shostock latest
entropy dd latest, and last two
siyah latest and previous
with/without overclocking
with/without data enabled
affects all browsers, lastpass, tapatalk, xda premium, etc, etc.
caches cleared, including dalvik
no stress on the phone, running usually 250-500MB RAM only.
any ideas? the phone is basically unusable as a smartphone at home. the issues may or may not be as bad on regular data. TIA.
one more try... anyone help with this issue?
You state that this is mostly happening on your home Wi-Fi connection; is it possible that you have some sort of QoS / traffic shaping setup on your wireless AP / router that may be resulting in this condition? Also, do you have any of this type of behavior on cellular 3G or other Wi-FI connected networks?
jermneedscoffee said:
You state that this is mostly happening on your home Wi-Fi connection; is it possible that you have some sort of QoS / traffic shaping setup on your wireless AP / router that may be resulting in this condition? Also, do you have any of this type of behavior on cellular 3G or other Wi-FI connected networks?
Click to expand...
Click to collapse
thanks for the reply.
the issue is inconsistent even at home. i have been watching for causal conditions but not finding anything yet. it does not appear to be my wifi. no other devices have ever had any kind of problem, and there have been many (i share the my wpa2 wifi with neighbors as well, many smartphones, etc). yes, the issue frequently affects me off wifi on data. and yes, it occurs at my office wifi as well. but the intermittent nature makes me think it's something with the phone's software, which is why i'm focused on figuring this out here. when it rains it pours, and i will have to reboot the phone, not just kill my browser or other app, in order to connect. sometimes rebooting more than once is required.
Have you tried a 'wipe data / factory reset' in ClockworkMod Recovery?
yes, i did actually. the issue is happening even loading basic google searches out on H+. the page will usually load, but will take literally 3+ minutes to load it. i'm not sure what's going on but it seems there's something going on between me and the servers that is hanging my data retrieval. i'm mystified. but the phone is literally stuck on page loads & data retrieval about 70% of the time. i don't have any weird software running in the bg either. pretty basic Entropy DD (tried the last 2) and ShoStock latest. is it possible there is some hidden settings somewhere i can look at? i have scoured all available settings on the phone, but there's gotta be something deeper i can look at. any recommended system tweak apps for this?
VR32 said:
yes, i did actually. the issue is happening even loading basic google searches out on H+. the page will usually load, but will take literally 3+ minutes to load it. i'm not sure what's going on but it seems there's something going on between me and the servers that is hanging my data retrieval. i'm mystified. but the phone is literally stuck on page loads & data retrieval about 70% of the time. i don't have any weird software running in the bg either. pretty basic Entropy DD (tried the last 2) and ShoStock latest. is it possible there is some hidden settings somewhere i can look at? i have scoured all available settings on the phone, but there's gotta be something deeper i can look at. any recommended system tweak apps for this?
Click to expand...
Click to collapse
I get similar things. Looks like my modem or connection is freaking out.. Did a factory return to kk6. Still didn't fix it. I'm thinking its hardware. Can't figure out what it is cause no laptop right now..
Just wanted to let you know your not alone.
Sent from my GT-I9100 using xda premium
rdannar said:
I get similar things. Looks like my modem or connection is freaking out.. Did a factory return to kk6. Still didn't fix it. I'm thinking its hardware. Can't figure out what it is cause no laptop right now..
Just wanted to let you know your not alone.
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
thanks for the feedback. is your phone a refurb?
VR32 said:
thanks for the feedback. is your phone a refurb?
Click to expand...
Click to collapse
Nope. Got it new with contract
Sent from my GT-I9100 using xda premium
ok, mine is a refurb, but has not appeared to have even a single hardware issue. guess i'll continue to cycle new software and see if this eventually irons out. next step is to get more into the system settings and investigate. my initial guess is my phone is sending repeated requests in the background.
if anyone is interested, i may have found the problem. i'm no networking guru, but i changed my phone's DNS settings to OpenDNS's servers like my home router's config. previously my phone was using Google's DNS servers. after changing the phone to OpenDNS loads are consistent and snappy like every other box in the house. keeping an eye, but so far so good.
Sent from my SAMSUNG-SGH-I777 using xda premium

SII official ICS battery problems. wifi?

my better battery app shows wifi running all the time. My battery is getting nuked. When I look at the android menu it says it is the screen sucking up the battery, even though the screen was only on for a short time. Anyone else having issues?
I wasn't having any issues with the 2.3.6 until right there at the end and then it started having the wifi draining issues. I was hoping the wifi issue would have been fixed in the ICS release. I tried doing a factory reset, which didn't help. I uninstalled the att hot spot finder app, didn't help. Is there a way to clear the wifi configs or reset the wifi?
I also notice it will disconnect from the wifi and can't see wifi networks even when hitting the scan button. I have to turn the wifi off and back on to get it to work.
Seems like the same issue
http://forum.xda-developers.com/showthread.php?p=24189461&highlight=wifi#post24189461
I guess there isn't a fix yet. That sucks.
Have that too. Temporary workaround: Settings -> Wifi -> Menu button -> Advanced -> Keep Wi-Fi on during sleep -> Never.
With that I have great battery life (got 28 hours once).
EDIT: My post is related to ported I9100 ROMs, never used i777 leak.
There is no official ICS - just a leak.
Entropy512 said:
There is no official ICS - just a leak.
Click to expand...
Click to collapse
what he said ^^^
Pretty sure this is the same way it's always been that I remember, unless you goto advanced settings it will stay on with the screen off, it shouldn't really kill your battery though. I see minimal impact with my wifi on, I've even read it's better on battery due to less awake time on data polls. The exception to this is if you have an app that goes data crazy when it's on wifi, and keeps the phone awake. Then there was also the issue with the uckk6 firmware, but I don't think that issue is still going on with the ICS ROMs I've tried.
Edit: Was just reading and I guess ATT leak might still suffer from the goofy KK6 bug.
Will the UCPLC5 modem fix it? How do I install the newer modem leak with out making the counter go up?
Also, changing basebands will do NOTHING for wifi-related drain.
Baseband is for voice and cell data - it does NOTHING wifi-related whatsoever.
Entropy512 said:
Also, changing basebands will do NOTHING for wifi-related drain.
Baseband is for voice and cell data - it does NOTHING wifi-related whatsoever.
Click to expand...
Click to collapse
damn, that sucks. Hopefully the OTA will come out with a wifi fix and soon.

[Q] How to debug a MTK6573

Hello,
I'm experiencing a battery drain in a Dapeng A7. Sometimes the battery charge decreases even though it's plugged to the charger.
I can see that when it happens the wifi don't switch off, even though I have set it in the settings, and it fact some times it does.
I have get some logcat but the only thing I noticed was just several ACTION_BATTERY_CHANGED, but without timestamp.
I would need some extra information, combining top, with logcat, and some more command you will suggest for sure.
I have rooted the phone, so any command will be available.
Any suggestion? Meanwhile I'm testing some battery savers.
Thank you
Some more information would be useful are you using a custom recovery like Clockworkmod or stock recovery are you using the stock ROM or something like Cyanogenmod it could be hardware causing the issue like dying/dead charger or dying/dead battery or it could be software with Clockworkmod you can clear battery stats have you tried turning off everything from Wi-Fi (Already mentioned), 3G Mobile Data, Bluetooth, Network Location, GPS etc to see if it had any affect on the battery maybe you could try searching an App to do these things if Android is bugged as a temporary solution.
Realmprotector said:
Some more information would be useful are you using a custom recovery like Clockworkmod or stock recovery are you using the stock ROM or something like Cyanogenmod it could be hardware causing the issue like dying/dead charger or dying/dead battery or it could be software with Clockworkmod you can clear battery stats have you tried turning off everything from Wi-Fi (Already mentioned), 3G Mobile Data, Bluetooth, Network Location, GPS etc to see if it had any affect on the battery maybe you could try searching an App to do these things if Android is bugged as a temporary solution.
Click to expand...
Click to collapse
Thank you for the answer.
I have just rooted the device with its stock ROM, but I havent found any reference about installing Cyanogenmod or Clockworkmod.
Anyway, I have experienced this leakage after a factory reset, disabling wifi and 3G, ... I have tried to locate which app can be battery consuming, but without success. Well, one of them, I don't remember, always says that it was Google Calendar sync. Can be gapps?
Moreover, now I have been reading a French forum and I'm not alone
http://ciphone.fr/blog/blog1.php/dapeng-a7-5-en-test
However no one has a clear answer. Perhaps is the charger problem, but I have tested with diferent cables and chargers.
And the worst thing that sometime charging works fine.
Do you happen to know if there is any command like logcat but with a timestamp in each line?
Thank you

Need expert help about RILJ and other wakelocks

Hello
First of all, sorry of any bad or wrong english, it's not my native language.
I have a very annoying wakelocks problem with my I9100T.
My carrier is Pelephone (Israel), I bought the device about a year and a half ago.
A few months after I got it, I decided to root and to flash a different rom.
I've had many roms since them, mostly stock-based, but I've tried a few AOKPs too.
The problem is basically this:
No matter what rom or what kernel or what modem I install, battery is terrible. With the help of BBS I was able to learn that the cause of this is excessive wakelocks, mostly RILJ, radio-interface, l2_hsic and umts-ipc0. This causes an extreme battery drain, 25%-35% drain in a 7-hour sleep night with wifi/3g/bt/gps/background apps all off and no body touching the device. It is extremely frustrating and makes the phone useless as of the everexisting fear of battery running out.
I've tried tens of different roms, Stock-based (Villain, Neat, Litening, WanamLite, Alliance and a few others I can't remember), AOKP-based (The only one I remember by name is ResurrectionRemix 2.6/2.6.1 and a few JB releases too) across different versions of android.
Tried them with the default kernel, with CF kernel, siyah, phenomenal, dorimanx.
Tried 10+ different modems including 3 extracted from my carrier's official roms (JJKF3, JJKI2 JJLP8).
All of them have the same exact issue.
Only time I remember not having this issue is with old GB roms. CheckROM V4/V6 did not have any battery problems, battery was perfect.
Also Litening rom V6.1 XXKH3, dates as back as aug 11'. Battery was badass there.
I've tried using the phone without restoring anything, tried freezing everything that I don't need, tried even freezing anything that is not necessary for the phone to run (eventually had a phone with no SMS/phone abilities, no play store, no syching, no properly working bluetooth/wifi connections) and still wakelocks occured.
When I first switched to ICS, I also had a 'MediaServer' wakelock, fixed by deleting 'corrupt' files from sd/external. The RILJ, radio-interface, l2_hsic and umts-ipc0 remained and I can't find a conclusive cause/solution.
Fast dormancy is not supported so I always turn it off via *#9900#, or that app for AOKP roms.
I remember a rom in which turning on/off airplane mode would help for a few hours. Then the wakelock returns. Haven't tried it recently, it doesn't quite solve the problem anyway so why bother with it.
I've noticed BBS showing "No or unknown signal" and "No data connection" at 100% time, which is weird.
Recently tried WanamLite/VK based on XXLSJ 4.1.2 leaked stock firmware, same problem.
Finally after some more research here in XDA I've tried to fix RIL/modem mismatch with GetRIL. I have flashed WanamLite 12.8, installed RIL via GetRIL so now it says "RIL/Baseband is matching". A quick look at BBS and battery history still shows RILJ, radio-interface, l2_hsic and umts-ipc0 wakelocks, so I wiped battery history and charged it to a full 100%, currently waiting for BBS to collect data to present here.
I can see that the problem is something about the radio/modem, but since I've tried many of them, I figured it's something that has to do with my device/carrier and not the modem itself. That's why I've tried Pelephone's modems, and recently Wanam's default modem (UHLPH) with matching RIL.
I wanted to try Pelephone's modem with matching RIL but GetRIL tries to install RIL for a different modem since it can't find one for pelephone's, and after a reboot it shows "unknown" baseband and no reception. This isn't important anyway because if it was a 'drainy' modem, it would have been much less drain and would have been better with other modems.
This is clearly something bigger and more persistant, something I'm missing as of my limited knowledge in android modems/system.
I would very much appreciate help with this in any way, ideas of what to try, info about related subjects, perhaps even a cause or a solution.
A friend of mine has the same phone with the same carrier with similar issues (yet a bit different), but the info I'm getting from him is limited and not conclusive. Based on it I can't say it's 100% environmental, nor can I say I'm the only one with the issue.
I'm ready to try anything - ROMs, kernels, modems, apps, tweaks etc.
I will be posting BBS screens and logs here once they'll be more accurate, for now I've attached a 10-min history and BBS screens.
Thank you for any help or assistance.
I have had the exact same issues as you Fast Dormancy, &RILJ on my AOKP Milestone 1 4.1JB. I used the toggle fast dormancy app to fix the first issue. For the RILJ i used the getRIL app, then disabled location services and auto sync for google. Fast dormancy is fixed now. I still get a lot of RILJ wakelocks but the numbers have gone down noticably. Battery performance have significantly improved though. These are the standard fixes i managed to find in the forums. Have you already tried these steps?
DaKiller147 said:
Hello
First of all, sorry of any bad or wrong english, it's not my native language.
I have a very annoying wakelocks problem with my I9100T.
My carrier is Pelephone (Israel), I bought the device about a year and a half ago.
A few months after I got it, I decided to root and to flash a different rom.
I've had many roms since them, mostly stock-based, but I've tried a few AOKPs too.
The problem is basically this:
No matter what rom or what kernel or what modem I install, battery is terrible. With the help of BBS I was able to learn that the cause of this is excessive wakelocks, mostly RILJ, radio-interface, l2_hsic and umts-ipc0. This causes an extreme battery drain, 25%-35% drain in a 7-hour sleep night with wifi/3g/bt/gps/background apps all off and no body touching the device. It is extremely frustrating and makes the phone useless as of the everexisting fear of battery running out.
I've tried tens of different roms, Stock-based (Villain, Neat, Litening, WanamLite, Alliance and a few others I can't remember), AOKP-based (The only one I remember by name is ResurrectionRemix 2.6/2.6.1 and a few JB releases too) across different versions of android.
Tried them with the default kernel, with CF kernel, siyah, phenomenal, dorimanx.
Tried 10+ different modems including 3 extracted from my carrier's official roms (JJKF3, JJKI2 JJLP8).
All of them have the same exact issue.
Only time I remember not having this issue is with old GB roms. CheckROM V4/V6 did not have any battery problems, battery was perfect.
Also Litening rom V6.1 XXKH3, dates as back as aug 11'. Battery was badass there.
I've tried using the phone without restoring anything, tried freezing everything that I don't need, tried even freezing anything that is not necessary for the phone to run (eventually had a phone with no SMS/phone abilities, no play store, no syching, no properly working bluetooth/wifi connections) and still wakelocks occured.
When I first switched to ICS, I also had a 'MediaServer' wakelock, fixed by deleting 'corrupt' files from sd/external. The RILJ, radio-interface, l2_hsic and umts-ipc0 remained and I can't find a conclusive cause/solution.
Fast dormancy is not supported so I always turn it off via *#9900#, or that app for AOKP roms.
I remember a rom in which turning on/off airplane mode would help for a few hours. Then the wakelock returns. Haven't tried it recently, it doesn't quite solve the problem anyway so why bother with it.
I've noticed BBS showing "No or unknown signal" and "No data connection" at 100% time, which is weird.
Recently tried WanamLite/VK based on XXLSJ 4.1.2 leaked stock firmware, same problem.
Finally after some more research here in XDA I've tried to fix RIL/modem mismatch with GetRIL. I have flashed WanamLite 12.8, installed RIL via GetRIL so now it says "RIL/Baseband is matching". A quick look at BBS and battery history still shows RILJ, radio-interface, l2_hsic and umts-ipc0 wakelocks, so I wiped battery history and charged it to a full 100%, currently waiting for BBS to collect data to present here.
I can see that the problem is something about the radio/modem, but since I've tried many of them, I figured it's something that has to do with my device/carrier and not the modem itself. That's why I've tried Pelephone's modems, and recently Wanam's default modem (UHLPH) with matching RIL.
I wanted to try Pelephone's modem with matching RIL but GetRIL tries to install RIL for a different modem since it can't find one for pelephone's, and after a reboot it shows "unknown" baseband and no reception. This isn't important anyway because if it was a 'drainy' modem, it would have been much less drain and would have been better with other modems.
This is clearly something bigger and more persistant, something I'm missing as of my limited knowledge in android modems/system.
I would very much appreciate help with this in any way, ideas of what to try, info about related subjects, perhaps even a cause or a solution.
A friend of mine has the same phone with the same carrier with similar issues (yet a bit different), but the info I'm getting from him is limited and not conclusive. Based on it I can't say it's 100% environmental, nor can I say I'm the only one with the issue.
I'm ready to try anything - ROMs, kernels, modems, apps, tweaks etc.
I will be posting BBS screens and logs here once they'll be more accurate, for now I've attached a 10-min history and BBS screens.
Thank you for any help or assistance.
Click to expand...
Click to collapse
kumaran.tm said:
I have had the exact same issues as you Fast Dormancy, &RILJ on my AOKP Milestone 1 4.1JB. I used the toggle fast dormancy app to fix the first issue. For the RILJ i used the getRIL app, then disabled location services and auto sync for google. Fast dormancy is fixed now. I still get a lot of RILJ wakelocks but the numbers have gone down noticably. Battery performance have significantly improved though. These are the standard fixes i managed to find in the forums. Have you already tried these steps?
Click to expand...
Click to collapse
Thx for the reply
Tried the fast dormancy app, used getRIL as I said, location services are off, sync is sometimes off sometimes on.
Here are the results.
*bump*
Any ideas? I went back to GB for now, battery in ICS/JB is just unbearable.
Instead of providing the screen shots which can only show details, you should attach the BBS log file. It contains much more information, probably even information you do not consider important for the analyzes of your problem
fxrb said:
Instead of providing the screen shots which can only show details, you should attach the BBS log file. It contains much more information, probably even information you do not consider important for the analyzes of your problem
Click to expand...
Click to collapse
Knock yourself out
DaKiller147 said:
Knock yourself out
Click to expand...
Click to collapse
You did quite a lot but did you ever check your APN settings? Some of the wakelocks in your BBS log could be due to bad/wrong APN settings, so check them very carefully, especially the proxy settings (if any).
Sometimes (in my case) it is even better to create a new, "empty" APN. The only values set in my "empty" APN are: Name, APN, MCC, MNC, Authentication type and APN type. All other settings are not set.
fxrb said:
You did quite a lot but did you ever check your APN settings? Some of the wakelocks in your BBS log could be due to bad/wrong APN settings, so check them very carefully, especially the proxy settings (if any).
Sometimes (in my case) it is even better to create a new, "empty" APN. The only values set in my "empty" APN are: Name, APN, MCC, MNC, Authentication type and APN type. All other settings are not set.
Click to expand...
Click to collapse
Forgot to mention it in the original post. I always check my APNs since all roms have the wrong internet APN of my provider (It's been updated for smartphones, for some reason most roms still set the old one by default). Usually it also adds some more APNs of a different provider that uses the same network and the same cell towers, so I have to delete them and modify the existing. Internet always worked just fine with the APN I set. I don't really use MMS so I guess that doesn't matter.
*bump*
CM9.1.0 stable version has a better battery and less l2_hsic wakelocks (wake count is about the same but count and expired count are both 0).
This is the only rom that has any difference in l2_hsic wakelocks except GB roms.

[Q] gpsd drain even while GPS off?

Hi!
I have been having an issue with my S III lately. For some time I have been trying to understand and configure my gps settings so that I could have gps always activated, without it draining the battery too heavily. I mainly tried manipulating my apps' location settings.
With no consistent results, I ultimately decided to try and turn gps off altogether in the pull down bar. Now, here's the issue; even with gps off, both the stock battery tool and GSam Battery Monitor report a 25% battery drain by "gpsd".
What am I doing wrong, and what can be done about it?
Thanks!
Stock S III, 4.1.2, unrooted.
Didn't wipe data when you upgraded?
Wipe the data of the service responsible.
Sent from my GT-I9300 using xda app-developers app
Thanks! If you are referring to the Android update, I simply installed it without wiping anything.
What exactly would wiping data entail?
Might be Google now working overtime
Questions go in the QA section, not general
slaphead20 said:
Might be Google now working overtime
Click to expand...
Click to collapse
I am pretty sure I disabled everything connected with Google and location...
Sorry for posting in the wrong place, will do next time!
it seems there is a bug in gpsd. sometime it hangs at 100% cpu (25% -> 1 of 4 cores) you can check this in shell with "top" cmd
if it hangs only a reboot help.
you will notice a bit lag when you switch your phone on and it gets a bit warm when this happens
for me it happens once every 1-4 days and i have allready disabled all google location settings and samsung security settings
any idea ? i dont find anything else on google.
btw. it looks like this started happen with XELLA but cant say it for sure
/inteks
That sounds exactly like the issue I have been having, especially it happening only one in every few days.
I can confirm that it seems to have had a definitive starting point, but not sure what changes I made at that point. What do you mean by XELLA? And are any other ways of telling when this happens?

Categories

Resources