[Q] wlan_wake wakelock on Hyperdrive RLS 12 on Verizon Galaxy S4 - Verizon Samsung Galaxy S 4

Hey guys,
On my second samsung device and my fifth rom (including eclipse TW, eclipse AOSP, aokp, CM10, now hyperdrive). Have to say thay I'm satisfied with pretty much everything Hyperdrive has to offer, its freaking amazing! One issue doesn't seem to be resolving despite many attempts. My phone stays awake nearly 100% of the time with a wlan_wake wakelock. This isnt the well documented wlan_rx_wake wakelock, which I've also had in the past but managed to squash. I'll recount my findings in some order below.
I installed Hyperdrive, restored some some vital apps. Waited a couple days and found the battery wasn't what I'd hoped it'd be. I usually run with auto sync enabled for total 8 mins per hour (via Tasker) and wifi and mobile data on. I've also used a script that disables IPv6 whenever it connects to a wifi network -- work network has tons of IPv6 broadcasts that were triggering massive wlan_rx_wake wakelocks which were vastly reduced with this fix. Even with these throttles, I noticed that some time after boot (10-15 minutes) on my work as well as home network (10 mixed devices on a belkin router), a wlan_wake wakelock would start triggering and my phone would then stay awake 90-100% of the time, screen on or off.
I went ahead factory reset the phone, loaded just my google account, and found the same problem with autosync on, autosync off, GPS was off, Wifi "always allow scanning" option was disabled in the advanced menu, Google's Wifi network location was disabled, and no 3rd party apps except for BBS installed. Of course, with Wifi disabled, the issue abated but 3g/4g doesn't offer much better battery life than the phone staying awake the whole time. During this time, I used Network Logger and Shark for Root to attempt to identify Wifi traffic and found that a few apps were transmitting frequently, but not enough to keep the phone awake for the amount of time the wakelock indicated. Total battery drain is up to 8-10%/hour with absolutely minimal use. I've never had this particular issue with any other OS i've installed, any ideas what could be going on? Really looking forward to being able to rip through days without charging on Hyperdrive!

I have a Samsung Note 3 and I too have this same problem (except that a factory reset solves it). Can't seem to find a fix. People on internet suggest that it's because of some rogue app but my phone starts behaving like this randomly until I do a factory reset.

Related

[Q] SGS2 wifi constantly scanning

Hi all,
The Wifi on my SGSII is constantly scanning even though it is connected to my home wifi network (a WPA/WPA2 PSK secured connection on a G band router). The signal strength is "excellent" and I have the phone sitting right next to the router. Further, I have network notification turned off ( unchecked) and under advanced settings, my Wifi sleep Policy is set to "never".
Sprint users have reported exactly the same problem on the Epic Touch 4G" (http://forum.xda-developers.com/showthread.php?t=1272226 ). Has anyone else been experiencing the same issue on their ATT SGS2 ? I would be very grateful if someone could post a solution for this issue.
Thanks in advance
J
PS: My wifi setting screen looks like this genteman's ( except i have network notification turned off)
(http://keithandlaura.smugmug.com/Other/test/i-sMwh6bj/0/L/SC20110921-212528-L.png)
jwlkr said:
Hi all,
The Wifi on my SGSII is constantly scanning even though it is connected to my home wifi network (a WPA/WPA2 PSK secured connection on a G band router). The signal strength is "excellent" and I have the phone sitting right next to the router. Further, I have network notification turned off ( unchecked) and under advanced settings, my Wifi sleep Policy is set to "never".
Sprint users have reported exactly the same problem on the Epic Touch 4G" (http://forum.xda-developers.com/showthread.php?t=1272226 ). Has anyone else been experiencing the same issue on their ATT SGS2 ? I would be very grateful if someone could post a solution for this issue.
Thanks in advance
J
PS: My wifi setting screen looks like this genteman's ( except i have network notification turned off)
(http://keithandlaura.smugmug.com/Other/test/i-sMwh6bj/0/L/SC20110921-212528-L.png)
Click to expand...
Click to collapse
Scan rate is bumped up significantly when you're in the settings menu.
Have you confirmed via logcat that it's scanning frequently outside of the settings menu? It shouldn't be in that case - but without logcat it's almost impossible to tell.
Entropy512 said:
Scan rate is bumped up significantly when you're in the settings menu.
Have you confirmed via logcat that it's scanning frequently outside of the settings menu? It shouldn't be in that case - but without logcat it's almost impossible to tell.
Click to expand...
Click to collapse
Entropy,
What should I be looking for in logcat? I have Betterbattery stats installed and according to that, Wifi scan time is 8+ hours even though Wifi on time is only 2+ hours. That doesn't seem to make sense, but what do I know.
I am running UnNamed 1.3.1.
johny_i said:
Entropy,
What should I be looking for in logcat? I have Betterbattery stats installed and according to that, Wifi scan time is 8+ hours even though Wifi on time is only 2+ hours. That doesn't seem to make sense, but what do I know.
I am running UnNamed 1.3.1.
Click to expand...
Click to collapse
I believe BBS is reporting scan time improperly. I've seen that in a few threads.
Sent from my GT-P7510 using Tapatalk
You're probably right, except now scan time doesn't even show.
I have also observed this on my phone.
I have a Samsung Galaxy IIs, using a Sony Ericsson MW600 BT handsfree as well as a Pioneer car Bluetooth handsfree system.
I have not measured anything yet, but I notice that when the Wi-Fi scanning is going on, I get significant disturbances on both of my Bluetooth hands-free sets. Listening to music is without a hitch, but talking on the phone (Norwegian GSM - operator Telenor) is terrible.
i also noted this after installing the OTA update to 2.3.6 today. I just rooted mine yesterday after reading 54+ pages to make sure i understood everything. i had a cappy and loved installing new roms but have not taken the plunge yet on the sgs ii. I haven't noticed a huge difference in battery yet, but it has only been a couple of hours since the update.
What ROM are you running? You can edit the build.prop to change how often it looks for networks. It is the line "wifi.supplicant_scan_interval=xx". I set mine to 180 which is 3 minutes, some ROM's set it really low. Also the scan rate is bumped up significantly when you're in the settings menu like Entrophy said.
Hi,
I had the same problem where my WIFI was fluctuating.... I dont know if this is the problem/ solution but this is what happened...
My SGS 2 is already rooted and unlocked. I had flashed the Entrophy DD 12/23 first then I had flashed Unnamed Custom ROM. After rebooting the phone, I saw the Wifi was not stable. So I again did a "Wipe Factory Data Reset" and "Wipe Cache Partition" and then installed the Unnamed Custom ROM from the SD Card. My Wifi is pretty stable now.
I am not sure if you guys had this issue when flashing a ROM but this seemed to fix it.
Wifi Scan - Milliwatts
ktoonsez said:
What ROM are you running? You can edit the build.prop to change how often it looks for networks. It is the line "wifi.supplicant_scan_interval=xx". I set mine to 180 which is 3 minutes, some ROM's set it really low. Also the scan rate is bumped up significantly when you're in the settings menu like Entrophy said.
Click to expand...
Click to collapse
I have written about this wifi-battery drain a while back here in XDA.
When I used to have my Nokia symbian cell phone I used to flash custom roms
and there were a lot of nice new features after flashing.
A couple of the really nice battery saving mods were:
#1: added option to change the amount of wifi milliwatt output from 18 milliwatts (default) to 3 milliwatts
which is more than enough if the phone is no more than 20-25 feet from the wireless router.
(the mod gave the option of 3mw,6mw,12mw & 18mw)
Saves a lot of battery life.
Don't know why none of the DEVS have addressed this issue yet.
#2: added a mod so once the wifi establishes a connection it no longer scans
at all unless the connection is disconnected or lost.
So in other words, the phone only scans for wifi until it connects.
Right now I am connected to wifi with my phone and yet in settings it displays "scanning"
non-stop-constantly even though in wifi settings it displays "connected".
Why should the phone be scanning for wifi if it's already connected? (I have no idea).
Don't know why none of the DEVS have addressed this issue yet either.
Both of these mods really made a noticable difference in battery life
for for me since I do use the wifi feature in my phone a lot.
Hopefully one of the DEVS can look into these issues soon.
Now someone mentioned wifi constant scan, I noticed mine is doing the same thing. I leave the wifi setting screen on, it re-scans every 3 seconds!
Misterjunky said:
I have written about this wifi-battery drain a while back here in XDA.
When I used to have my Nokia symbian cell phone I used to flash custom roms
and there were a lot of nice new features after flashing.
A couple of the really nice battery saving mods were:
#1: added option to change the amount of wifi milliwatt output from 18 milliwatts (default) to 3 milliwatts
which is more than enough if the phone is no more than 20-25 feet from the wireless router.
(the mod gave the option of 3mw,6mw,12mw & 18mw)
Saves a lot of battery life.
Don't know why none of the DEVS have addressed this issue yet.
#2: added a mod so once the wifi establishes a connection it no longer scans
at all unless the connection is disconnected or lost.
So in other words, the phone only scans for wifi until it connects.
Right now I am connected to wifi with my phone and yet in settings it displays "scanning"
non-stop-constantly even though in wifi settings it displays "connected".
Why should the phone be scanning for wifi if it's already connected? (I have no idea).
Don't know why none of the DEVS have addressed this issue yet either.
Both of these mods really made a noticable difference in battery life
for for me since I do use the wifi feature in my phone a lot.
Hopefully one of the DEVS can look into these issues soon.
Click to expand...
Click to collapse
Power control - Not likely, unless there is some documented power control already in the driver it's not going to happen. We're in a bad enough state as it is trying to make the chip not fire interrupts at 1 Hz on the Infuse.
Broadcom is one of the least open source friendly chipset manufacturers on the planet - their drivers have NO comments or documentation whatsoever, and datasheets are not available.
The rescan stuff is probably only addressable on Cyanogenmod, messing with it would require source code for the userland wifi management stuff.
mickey4mice said:
Now someone mentioned wifi constant scan, I noticed mine is doing the same thing. I leave the wifi setting screen on, it re-scans every 3 seconds!
Click to expand...
Click to collapse
As stated earlier in this thread - this is by design. It is assumed that if you're in the settings screen you want to change networks and have an up-to-date list.
I also am having this problem. I am running the rooted UKK6 from entropy512. After turning on my wifi, my battery drained from 90% to 70% in 5 hours with no use. My android OS is running at 80-90%. I don't have any extra apps except for 3g watchdog and CPUSpy and BBS. I do have Go launcher and GoSMS installed. As soon as I turn wifi off, i can see my battery level off under settings. I have searched for the last 2 days for a "fix". no luck.
Battery Drain
hatgirl223 said:
I also am having this problem. I am running the rooted UKK6 from entropy512. After turning on my wifi, my battery drained from 90% to 70% in 5 hours with no use. My android OS is running at 80-90%. I don't have any extra apps except for 3g watchdog and CPUSpy and BBS. I do have Go launcher and GoSMS installed. As soon as I turn wifi off, i can see my battery level off under settings. I have searched for the last 2 days for a "fix". no luck.
Click to expand...
Click to collapse
Try doing a clean flash using "wipe data/factory reset" in CWM
recovery and then see if the phone has normal battery drainage.
(which it will if you flash the UnNamed v2.2.1 custom rom)
Then install one app at a time so you can find out exactly which
app is the culprit that causes your excessive battery drain.
This is the best way to trouble shoot battery drainage issues.
You will see that your battery drainage issue is not caused by
the custom rom, but it is caused by a few apps which are just
not very battery friendly.
The UnNamed v2.2.1 rom is the best custom rom currently
available for our i777 phones and it has outstanding battery life.
Good Luck!
hatgirl223 said:
I also am having this problem. I am running the rooted UKK6 from entropy512. After turning on my wifi, my battery drained from 90% to 70% in 5 hours with no use. My android OS is running at 80-90%. I don't have any extra apps except for 3g watchdog and CPUSpy and BBS. I do have Go launcher and GoSMS installed. As soon as I turn wifi off, i can see my battery level off under settings. I have searched for the last 2 days for a "fix". no luck.
Click to expand...
Click to collapse
This has nothing to do with this thread - This thread is talking about wifi scanning.
Drain problems - read my known battery drainers thread. A lot of people are having problems, there is no fix, and there won't be until all the people complaining start actually collecting some data.

IMS_Data_Retry Keeps RAZR Awake

I've been using the app BetterBatteryStats as recommended by XDA to determine why my RAZR is awake much of the time, even when the screen is off and data is turned off. It turns out the problem is the internal process IMS_Data_Retry. This process apparently keeps attempting to establish a data connection over cellular data, at least 4G LTE. It aquires a wake lock while doing its work. This one process can keep the phone awake 95% of the time. The only way I have found to semi-stop it is to turn on 4G LTE. Even then, while it stops consuming CPU time (supposedly), the count of retry attempts keeps going up. (Putting the phone in Airplane mode also stops it, but then calls are stopped as well.)
There is a setting in /system/build.prop that I thought controlled this process:
ro.cdma.data_retry_config=default_randomization=2000,max_retries=infinite, 0, 0, 120000, 180000, 540000, 960000
I looked at some code references I found ( http://hi-android.info/src/com/android/internal/telephony/cdma/CdmaDataConnectionTracker.java.html ) and learned that the above values are in milliseconds. It seems that the default_randomization value is added to the other values in the list to create a schedule of retry attempts, but I wasn't able to figure out all the parameters to the method, if I even have the right one. I tried changing "infinite" to a small number under 10, but it had no effect - the process just keeps retrying forever.
Is there a dev out there who knows more about this? I want to limit this process because I seldom use cellular data right now and am usually on WiFi. It hinders any attempt to extend battery life. Is it a bug? Is it fixed in a later release (I'm on .748 stock) ? Do any of the custom ROMs have this problem? Can the build.prop setting I found be given values that limit the amount of time this process holds wake locks?
Thanks.
Did you ever get any resolution on this? For me, I think the problem started with the ICS update this summer. I constantly have gsm_data_tracker, RILJ, and IMS_Data_Retry using up the battery (in that order from highest to lowest). I tried wiping cache which helped the 1st time it cropped up and then it came back. I also tried a tip I saw somewhere for turning on airplane mode, rebooting, and turning off airplane mode (though mine as soon as it reboots, it already turns off airplane mode which it shouldn't). That worked for several weeks, but I had to do it EVERY DAY when I got to work. I think it's something with the 3g repeaters in the building. I did have it so it was wifi only (mobile radio off) on my work profile in profile scheduler, but then I needed cell for some mms stuff, so I ended up enabling it again. Basically when I come in the building and forget about my phone for an hour or 2, I go to get it out of my backpack and it will be hot from processing and 20% or more of the battery gone when I've done nothing in 2 hours of being at work. I saw somewhere that someone though either gsm_data_tracker or RILJ was related to something with the alarm, which I do use my phone as my alarm, but I use a 3rd party app. With the time change, there were a few days I woke up before it ever went off, so I turned it off before it did alarm. There were no differences with the partial wakelocks or battery drain in those cases. Unfortunately, I don't have another alarm readily available to get up for work right now and on the weekends when I don't need an alarm, I can't replicate the cell repeater at work issues, since I wouldn't be around the cell repeaters. As fart as in the building at work, until I reboot with airplane mode and all of that, the cell signal will bounce between like 0 bars/3g and lots of bars (no indication of network) and some bars with 1x network. It's all over the place. The airplane mode/reboot used to stabilize that, but it doesn't seem to be doing the trick anymore the last few days that I've tried that. I have to leave my phone on the charger as much as possible at work so that I don't leave for the day with a dead phone.

Android and battery

I love Android.
I think the customization is great, and since v4 it's smoother and feels more responsive.
There are LOTS of apps and it's better than iOS.
But i'm sick of the battery issues.
I've always loved trying new features, ROMs, apps, hacks and whatever.
I now have SGS3 and it's my third android device, and i've installed ROMs dozens of times, even on my friends' devices.
One thing that always kept me alert is the battery life - the maximum I can get from my battery is around 30 hours with my usage - 1/5-2 hours of screen, ~45 minutes talk, lots of standby.
But every now and then, my girlfriend, my dad, my aunt or my friend ask me 'why does my battery drain so fast?'
Sometimes its google maps.
Sometimes its mediaserver/media scanner
Sometimes - and only I can see it cause they are not familiar with tools like BBS, it's gsf (Google Services Framework).
The point is, when you have an Android device, you need to check the battery stats every now and then to make sure nothing is unusually heavy on the battery.
I am currently experimenting with ParanoidAndroid and AOKP, which are faster and more responsive than omega/stock.
Yesterday i went to sleep (6 hours) with 25% battery (after it lasted 15 hours) and I turned off the data connection and the wireless connection.
I woke up after 6 hours (lucky..) and I saw my phone if off. after I connected it to the charger and turned it on I saw mediaserver decided to wake up in the middle of the night, after It almost did nothing during the day, and worked for 5.5 hours until the battery died!
Today I unplugged my phone and in 1 hour of standby 10% of the battery were gone, I checked what happened using BBS and saw gsf again (that GTALK_SYNC whatever wakelock) was draining battery, after I thought I fixed it yesterday when I disabled app data and browser sync in the google account sync options). I rebooted and now it seems ok again, the phone is back to ~70-80-% sleep.
I want to emphasize that I don't like all the stupid battery tips that tell me to castrate my phone:
turn off wifi when it's not needed, turn down the brightness, lower the screen timeout, disable sync (wtf? but its a smart phone, I WANT push notifications!) and that sort of things.
I KNOW I can get >24hours of battery without disabling the basic features of my phone.
And the draining battery processes that I mentioned earlier can suddenly appear even in a stock ROM, so I don't think it's PA or AOKP's fault.
What I want is that google will finally build a supervisor entity that will check what causes an unusual battery drain, check if it makes sense, and disable that cause!
It's absurd that google maps application comes with default 'enable location reporting' that constantly drains your battery and for what?? google maps doesn't run in the foreground, why the hell will I want that background location reporting draining my battery? and if so, why do you put this option enabled BY DEFAULT? The average user doesn't know this sort of stuff, and get only 10 hours of battery out of a device that should ideally provide ~30 hours!!!
Just wanted to let it out of my system...
And to get useful battery tips if any...

Google Play Services keep awake

Google play has been second on my battery use list for the last day or two. Keep awake for the last day and five hours. This is just out of nowhere, anyone else having this issue?
I battle with that app daily. Every month my data usage from Google Play Services is over a gig, even though I have no idea what it is doing. I have it disabled, but it turns itself on and I constantly have to "force stop" the app. I suspect it is tracking everything I do and using that data for marketing reasons.
I asked a similar question months ago and received no responses. I am out of ideas on how to prevent this thing from chugging away at data usage and the battery. I guess if you want to be Android then you accept that this thing is going to suck the life out of our phones.
For me it goes away for a while and then out of the blue decides to fire up and peg the throttle at full speed. Happens on my phone and tablet. Do not want!
Late but hopefully useful?
Researched this a lot, found some solutions, bad and good fixes and after trying some different twists on it after two days this is what I found to be the best, and I decided since this is just as bad as 4.0/4.1 and the mediaserver battery drain I might as well try and help at least 1 person by mass posting this reply I wrote else where to other threads, so here you go:
"Hey- I don't know if you, or anyone else has found a working solution, but here is the way I found best:
Note- I am on galaxy s4 [sgh-i337] running a 4.4 KitKat rom. I have found the following work around to work best for me:
1 Google now & Hotword detection=OFF,
2 GPS = OFF and turned on only when needed, eg maps/checkin on facebook/whatever needs location.
3 Settings-> Manage Apps -> Google Play Services -> Manage Space -> Clear All Data.
**Optional:After this [root only] I go into KT tweaker and make sure my phone cpu is set to a max of 810 Mhz when screen off.**
This fix usually works until I reset the phone. I ALWAYS follow those 3 steps when rebooting. AND always check that after I've used GPS that Google Play Services isn't keeping my phone awake. [Eg, after 30 minutes I check if the phone ever went to sleep again when the screen was off.] IF it does act up, I repeat steps 1, 2 &3. I still get notifications and all, and this is the least feature disabling way I've found that works with the cost of a little micro-management of your phone.
With this fix I can idle for an estimated 5-6days. As I take off my phone from charge at 8am and at noon with minimal usage [maybe 4 or 5 texts] I am at 97%. With WiFi on & connected.
OTHER: I personally keep NFC&Android beam&Bluetooth OFF, and turn ON when I need it on. Other- WiFi is always ON, and "Scanning Always Available" & "WiFi Optimization" is checked ON for me. And for location mode when I do have it on, I keep it at EDIT: Device only. Using only gps to find my location.
All in all, I hope this gets fixed."
I can post screen shots and all if somebody wants them or if there is need for one
-icy

Idle is draining battery

Hello,
I have the following Problem, while in Idle the phone is consuming so much battery, any help ?
push
Which ROM release are you on?
I am on Stock Rom and have the latest ota 15.07
dafuq2111 said:
Hello,
I have the following Problem, while in Idle the phone is consuming so much battery, any help ?
Click to expand...
Click to collapse
There are quite a few threads on this already including what I wrote (pasted below).
<<<<
I had two types of standby battery drain - mobile data and wifi. I have fixed both of them through lots of trial and error. From my testing and looking on XDA at similar experiences of people on other phones, these are bugs in Android rather than anything Elephone can fix through updates (I'm on the latest 20160419 update).
I fixed the mobile data problem by creating Tasker profiles to keep the phone on 2G whilst it's connected to wifi. I can't post links yet but a search on XDA/Google will find you these profiles. Maintaining a 4G connection is unnecessary whilst on wifi, besides, some people have problems receiving calls on this phone whilst on 4G. If the phone is not connected to wifi (rare in London because it's everywhere even on public transport) 4G comes on. Best of both worlds.
The wifi drain solution sounds counterintuitive but it is simply to set it to 'always on'. With both of these measures, my standby drain has been 1% overnight for the last two nights and roughly 0.25%/hour during the day. Standby drain on 4G whilst moving around London with location on at least quadruples battery drain to around 1-2%/hour.
Some of my other settings will have an impact too. I find the auto-brightness calibration of the P9000 poor, so adjust brightness manually (which also saves battery life). NFC, bluetooth, etc. I only turn on when needed. I use Greenify and have all apps Greenified except Tasker, Textra, and Hangouts. I haven't Greenified any system apps except Google Maps. Location is always on but mostly device only (again counterintuitive, you'd expect it to be 'battery saving') unless I am moving around in which case I have a Tasker profile to automatically switch it to 'high accuracy'.
I tried to get Xposed working so that I could use Amplify too (see my other post) but that didn't work. Since I'm very happy with battery life now that's not that important anymore though it would be nice for the further tweaks it makes possible.
There are too many other variables to list and everybody's phone is set up differently. However, hopefully using some of the main big gains I've listed above you can fix your wifi drain specifically and improve standby drain generally.
Well, it's somewhat problably what keeps the phone awake, this occurs after factory reset, i already did the Tricks you've listed and on screen Features and so on are all off, there are no Apps who should keep the phone awake Cause it's happening Straight after factory reset so there are no other Apps..
Push
Finger print sensor or DT2W for sure. Disable them
On the latest ROMs it is the finger print sensor. Turn it off or go back to 20160810

Categories

Resources