[Q] How to debug “wlan_wake kernel wakelock” on an unrooted device? - Galaxy Note 3 Q&A, Help & Troubleshooting

The question is as short as the title. I've a Samsung Galaxy Note 3 & it has started showing issues where the CPU remains in lowest possible frequency (250Mhz) and it doesn't go to deep sleep.
I tried uninstalling all the apps that I installed in last 2 days but I can still see the issues.
Searching on google isn't helping either. Most of the posts that get in search results are the posts where people paste the betterbatterstats output. On the official wiki, https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/wlan_wake , it's mentioned that a sniffer should be used to debug.
I saw that most of the sniffers actually require root. So, how do I debug this wakelock without rooting my phone?
Thing to note is, I was not seeing this wakelock since a few days back and I started seeing it just today. I don't want to switch off the wlan while the screen is off & I actually want to fix this.
PS: Please help as I've actually very religiously searched on the internet and I'm unable to find the solution.

wakelock detector
Sent from my SM-N9005 using Tapatalk

Chenglu said:
wakelock detector
Sent from my SM-N9005 using Tapatalk
Click to expand...
Click to collapse
That's how I came to know about it (using BetterBatteryStats though). It's a kernel wakelock, not a partial one. So, it's not what's triggered by the apps and hence it isn't easy to find the app that's causing it.
At various places, people are suggesting that some app is constantly using the wlan0 and hence the wakelock but I'm not sure which one.

So, anyone knows?
Bump

shadyabhi said:
The question is as short as the title. I've a Samsung Galaxy Note 3 & it has started showing issues where the CPU remains in lowest possible frequency (250Mhz) and it doesn't go to deep sleep.
I tried uninstalling all the apps that I installed in last 2 days but I can still see the issues.
Searching on google isn't helping either. Most of the posts that get in search results are the posts where people paste the betterbatterstats output. On the official wiki, https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/wlan_wake , it's mentioned that a sniffer should be used to debug.
I saw that most of the sniffers actually require root. So, how do I debug this wakelock without rooting my phone?
Thing to note is, I was not seeing this wakelock since a few days back and I started seeing it just today. I don't want to switch off the wlan while the screen is off & I actually want to fix this.
PS: Please help as I've actually very religiously searched on the internet and I'm unable to find the solution.
Click to expand...
Click to collapse
Have you tried disabling automatic time zone in settings?
My note used to have this wlan_wakelock ,but after I disabled automatic time zone its' seems to be fine.

That's weird
tyrand3 said:
Have you tried disabling automatic time zone in settings?
My note used to have this wlan_wakelock ,but after I disabled automatic time zone its' seems to be fine.
Click to expand...
Click to collapse
How'll that even remotely effect wlan_wake?

Guys, I was really hoping if someone could help... Thanks

N900 Wakelock
Hi
I had the same problem
Sometimes it's happened when I change WIFI state (On/Of)
Follow this:
0)I use Cpu Spy app to determine wakelock & Deep Sleep Problems
1) go to Wifi settings & turn on Wifi
2) go to Advanced
3)Set "Keep Wi-Fi on during sleep" to "Never"
4)Wait some seconds (I used to turn off screen, wait for some seconds)
5) turn off wifi
if you want to use wifi, turn on wifi and set "keep Wi-Fi..." to "Always" or not.
Notice that befor turning of Wifi, set it to "Never"
notice that when your phone is connected to charger T before disconnecting charger, unlock phone and wait for a few seconds while screen is on, then disconnect charger,
4.3
N900
XXUCMK1
XXUCMK2

Few possible causes:
- Do you have Wifi Scanning set to enabled? (Wifi settings)
- Do you have Use Wifi Networks enabled in Location settings in both Settings and Googe Settings?

Related

WiFi randomly enabling itself

In the morning before I go to work I usually disable WiFi as I don't use it at work and would like to save a little battery. However, I've noticed that throughout the day, I'll check a notification and see that WiFi has turned on without me turning it on myself. I can't see any pattern or correlation that would match up with this. Does anyone know what would cause this? I factory reset last night (due to an unrelated issue) and it's still occurring. I only have a couple of extra apps installed, Falcon Pro and reddit sync.
i think power saving mode sometimes enables wifi when its available... not sure how often this happens or if thats even the issue you're having but check the power save mode settings... 3g and 4g use more power than wifi
fade2green514 said:
i think power saving mode sometimes enables wifi when its available... not sure how often this happens or if thats even the issue you're having but check the power save mode settings... 3g and 4g use more power than wifi
Click to expand...
Click to collapse
I don't have the power saving settings enabled, and I don't see any setting that resembles that kind of behaviour.
So at some point while I was driving home from work WiFi enabled itself again (I didn't even touch the phone). I'm wondering if it may be S Beam causing it? I haven't actually used it but it's the only thing I can think of that would need to actually turn WiFi on. I may try turning it off tomorrow morning when I turn WiFi off and see if that stops WiFi from randomly enabling.
Galaxy S4 Wifi auto enable
Is there a resolution for this? I heard that on the S3 it would pay attention to what cell towers you are using and if it recognizes you are in an area where you have used wifi before it will enable and connect. This seems to be the symptom that I am seeing and it's bad for me. It keeps trying to connect to my work network because occationally I log on so I can access materials. but when I want to listen to Slacker Radio I can't because it's blocked. This is a cronic problem for my phone and I'm not able to find out how to disable it.
if you have got any battery saving apps delete them
Sent from my GT-I9505 using Tapatalk 2

Android 4.3 introduced problems with Wifi not turning on.

Hi Guys
I dunno if I am the only one that is suffering this problem as I haven't seen any posts about it but:
I use 2x Battery to save power over night when I am sleeping, and this turns off Wifi/Bluetooth and GSM/HSPA Data, and periodically will turn them back on every 2 hours to allow my phone to get emails and other notifications.
Since the introduction of Android 4.3 to my device, every couple of days I have to switch my device off and back on again because Wifi refuses to turn on. Exactly the same problem existed in 4.2 but instead with bluetooth refusing to turn on, which I might add has been fixed in 4.3.
Has anyone else experienced this?
Andy
Personnaly, i rather switch wifi and sync off in the night, coz i only have a look at my phone in the morning.
And i can tell that with last update (JR..Y) with data & wifi off, that the battery isn't draining more than 1% in 6 hours.
4.3 included several battery saving optimisation, have a look in the wifi advanced parameters...
Thanks for your input on battery saving methods but I'm trying to resolve a potential software issue with Wifi
tehrules said:
Thanks for your input on battery saving methods but I'm trying to resolve a potential software issue with Wifi
Click to expand...
Click to collapse
Of course. But take care about the compatibility between your battery saver app, and you android's version... JWR66V ? Y ? JSS ?!
Are you sure they are both compatible ?
Did you try to wipe cache & dalvik, and reinstall your app ?
I think that it's your app that's not "aligned" with OS api's.
You can test Snapdragon Battery guru
I use Llama which is a real great app for controlling your phone and it does occur where it will not turn my wifi back on. With all the optimizations with wifi in 4.3 and battery saving I just decided to leave wifi on all the time. So far it has not caused any real noticeable drain maybe an extra 1-2% total
WiFi not turning on after android 4.3 update
Hey guys,
First time poster, long time reader.
Now I've been doing some hard searching on this issue but I don't think this problem has been completely addressed yet (Apologies if it has).
I updated to Android 4.3 today on my Galaxy S3 (GT-I9300). The update seemed like it went smoothly but after it completed I noticed that the WiFi wasn't turned on. Once I click it looks like it loads and after a few seconds just stops. So I simply cannot get the wifi to turn on!!!
I've tried clearing the app cache, and looked at different forums but has anyone else come across this issue?!
Please help!!!
Thanks in Advance.

bad battery drain since updating to 4.3 on samsung galaxy s4 i9505

Hi all. I have noticed a problem since updating my samsung gala y s4 i9505 to jellybean 4.3
The battery is draining really quick.
I have all the s features turned off. Gps, wifi turned off
in settings its saying 53% for screen
17% google services
Surely the battery shouldnt be draining this quick
Can anybody help
Try making sure your WiFi is off by going to Settings->Wifi->Menu Button->Advanced-> Disable Always allow Scanning(4.3 only)
deathst said:
Try making sure your WiFi is off by going to Settings->Wifi->Menu Button->Advanced-> Disable Always allow Scanning(4.3 only)
Click to expand...
Click to collapse
This was already turned off me, and I also have been experiencing battery drain after updating. Google services and screen..It's annoying
Check to see for Wakelocks you may have some apps keeping your phone awake.
I recommend either betterbattery stats or wake lock detector. Both available on the market. Let that run over the course of a day then check to see if you have any high number of wakelocks caused by any apps.
Also see whether you have location reporting on or off in the Google settings app. Location can sometimes hammer with wakelocks.
It's probably one of the apps you have installed, I never have any battery problems with 4.3
Sent from my GT-I9505 using Tapatalk
nikzDHD said:
Check to see for Wakelocks you may have some apps keeping your phone awake.
I recommend either betterbattery stats or wake lock detector. Both available on the market. Let that run over the course of a day then check to see if you have any high number of wakelocks caused by any apps.
Also see whether you have location reporting on or off in the Google settings app. Location can sometimes hammer with wakelocks.
Click to expand...
Click to collapse
Doesn't the wake lock stop the phone from going into Deep Sleep? Mine seem to sleep just fine but ever since I upgraded to 4.3 it drains almost 40% over night. With Wifi and BT turned off it's only about 3%. the 'always allow scanning' option is turned off.
Is the Mobile Data on? Do u have a Exchange account added? Because I see the issue is because of the Mobile data always trying to download or upload something. I disabled the exchange account and it started working fine. But that just a workaround.
dhiraj027in said:
Is the Mobile Data on? Do u have a Exchange account added? Because I see the issue is because of the Mobile data always trying to download or upload something. I disabled the exchange account and it started working fine. But that just a workaround.
Click to expand...
Click to collapse
Thanks.....I do have two Exchange accounts and without Wifi and mobile data things are much better. I think I'll delete and re-create the accounts on the phone.
I've noticed bigger battery consumption too, idle and with screen on. I even did a factory reset but to no avail. I definitely used to get much longer screen-on time than before, such a shame.
Check your battery! My battery life started to decrease not long after moving to 4.3, thought it was the ROM but turns out I had one of those faulty batteries.
ewok666 said:
Thanks.....I do have two Exchange accounts and without Wifi and mobile data things are much better. I think I'll delete and re-create the accounts on the phone.
Click to expand...
Click to collapse
Definitely WiFi for me. On Mobile data it drains 2% in 8 hrs and on with WiFi on it drains about 35% or so.
ewok666 said:
Definitely WiFi for me. On Mobile data it drains 2% in 8 hrs and on with WiFi on it drains about 35% or so.
Click to expand...
Click to collapse
Hi.
To make sure WIFI is not using up yr battery, check google play store settings and uncheck updates through wifi. and u might also want to uncheck software updates through wifi in settings/about device/software updates.
Next is open Google Settings app, go to Android Device manager and uncheck "Remotely Locate This Device".
Another thing to point out is to uncheck "notification reminder" in settings/accessibility/notification reminder.
This was the big culprit for me for the 100% screen awake on my device...
Cheers..
maanz "L" said:
Hi.
To make sure WIFI is not using up yr battery, check google play store settings and uncheck updates through wifi. and u might also want to uncheck software updates through wifi in settings/about device/software updates.
Next is open Google Settings app, go to Android Device manager and uncheck "Remotely Locate This Device".
Another thing to point out is to uncheck "notification reminder" in settings/accessibility/notification reminder.
This was the big culprit for me for the 100% screen awake on my device...
Cheers..
Click to expand...
Click to collapse
Thanks for the suggestion. I've done all of that but my Wifi battery drain remains. I even disabled active sync altogether but still screwed. Either I disable Wifi or the battery drains overnight.
ewok666 said:
Thanks for the suggestion. I've done all of that but my Wifi battery drain remains. I even disabled active sync altogether but still screwed. Either I disable Wifi or the battery drains overnight.
Click to expand...
Click to collapse
Have u tried re-installing yr firmware again?
What custom roms and kernels are u using?
Since the day I installed 4.3 knox-free version, i have no WIFI drain issues apart from the '100% screen awake'.
I'm using MJ5, all google-related connectitvity turned off, I'm having 2 and half days of battery life.
Deep sleep is between 92%-96% all the time.
maanz "L" said:
Have u tried re-installing yr firmware again?
What custom roms and kernels are u using?
Since the day I installed 4.3 knox-free version, i have no WIFI drain issues apart from the '100% screen awake'.
I'm using MJ5, all google-related connectitvity turned off, I'm having 2 and half days of battery life.
Deep sleep is between 92%-96% all the time.
Click to expand...
Click to collapse
I did reinstall the firmware a few times actuallybut in the end I fixed it with a reset. I reset my phone (from the settings) then gone into recovery and formatted cache and data from there as well and the drain was gone. Must have been something in the old settings coming across from 4.2.2. Pain in the A*** but at least it worked. Lase night I upgraded to MK8 (DBT so MK8 radio as well) without a reset and there is no drain.
ewok666 said:
I did reinstall the firmware a few times actuallybut in the end I fixed it with a reset. I reset my phone (from the settings) then gone into recovery and formatted cache and data from there as well and the drain was gone. Must have been something in the old settings coming across from 4.2.2. Pain in the A*** but at least it worked. Lase night I upgraded to MK8 (DBT so MK8 radio as well) without a reset and there is no drain.
Click to expand...
Click to collapse
Good to hear that, mate.
This is getting ridiculous
Sent from my Perseus powered octa
..
Sent from my Perseus powered octa

[Q] Location Service Auto Off Itself, Help!

Hello whoever may lend a helping hand,
I've got a problem with my Note 4 Location services. Whenever i set it to on mode, it will somehow automatically switch off by itself over time. I've tried many ways to stop this from happening but to no avail. I dont see any programs or app that is turning my location off for me.
The reason i would prefer it to be switched on is because im using google "keep" and alerts are normally based on location. If my location keeps turning off, google is not able to notify me of reminders when im at certain locations.
Does anyone have similar problems?
dominicyee said:
Hello whoever may lend a helping hand,
I've got a problem with my Note 4 Location services. Whenever i set it to on mode, it will somehow automatically switch off by itself over time. I've tried many ways to stop this from happening but to no avail. I dont see any programs or app that is turning my location off for me.
The reason i would prefer it to be switched on is because im using google "keep" and alerts are normally based on location. If my location keeps turning off, google is not able to notify me of reminders when im at certain locations.
Does anyone have similar problems?
Click to expand...
Click to collapse
Running into the exact same issue. Very annoying
When you exit Ultra Power Saving mode, Location Services is not switched back on. It's a glitch that will probably be sorted out in a future update.
iR¡[email protected]!* from i9505 via Tapatalk 4
Thanks for your reply! Is there a way around this? How do i solve this problem? Thanks alot.
Sent from my SM-N910C using XDA Free mobile app
No way around it unfortunately. Just remember to turn Location back on after you disable Power Saving.
iR¡[email protected]!* from i9505 via Tapatalk 4
Ok. But i dont use power saving thus how is this affecting me?
Sent from my SM-N910C using XDA Free mobile app
Oh, I assumed you did, my bad. If you don't use Ultra Power Saving, then it must be something else. I really don't know!
iR¡[email protected]!* from i9505 via Tapatalk 4
dominicyee said:
Hello whoever may lend a helping hand,
I've got a problem with my Note 4 Location services. Whenever i set it to on mode, it will somehow automatically switch off by itself over time. I've tried many ways to stop this from happening but to no avail. I dont see any programs or app that is turning my location off for me.
The reason i would prefer it to be switched on is because im using google "keep" and alerts are normally based on location. If my location keeps turning off, google is not able to notify me of reminders when im at certain locations.
Does anyone have similar problems?
Click to expand...
Click to collapse
Hey, i have the exact same issue. Without using power savings mode or any tasker apps, my location services randomly turns off. It is extremely annoying
Have you found a fix yet?
This is related with the other device having the same user but different settings
Sent from my SM-N910C using XDA Free mobile app
Make sure it's set on "High accuracy" mode. I know you're most likely have it on "High accuracy" mode, but just make sure. Maybe a stupid suggestion but oh well.
Same problem
Location services keep turning off.
Phone goes to no service every day or two ( tried turning off lte) has to reboot to fix.
Mobile data and WiFi seems to also turn on and off randomly.
Reception is poor vs my s3 and s5.
All in all this phone is shaping up to be disappointing.
Samsung has a no swap out policy in SA so they are prepared for me to take it in to get fixed. Last time that happened it took 3 weeks to get my phone back.
I'm convinced it's the carriers branded software pre loaded that causes trouble. Vodacom (Vodafone)
The location services bug only seems to have started a few weeks ago after an update.
I thought it was related to the places feature and I've tried to disable it but can't find how to do it.
Just got my Note 4 a few weeks ago and I'm seeing this happen too. Bump to see if anyone has any solutions!
I'm on Rogers in Canada, running stock, unrooted, baseband version N910W8VLU1ANJ3, build number KTU84P. I do not use Power Saving mode (some have said that location services don't turn back on after exiting Ultra Power Saving). Seems to happen regardless of battery life (just turned off on the way to work in the morning with full battery).
I really only noticed because I tried using a location based profile in Tasker using AutoLocation, and it kept notifying me that location services were turned off. It also affects a weather/clock widget. No other Tasker profiles that would affect it.
Anybody have any ideas why this is happening? Any ideas for fixes?
UPDATE: So yesterday afternoon I booted into recovery and did a wipe data/factory reset. Everything seems to be holding so far in terms of Location Services staying on. Might have just been a glitch or something. I'll report back if they turn off again.
location services turns itself off on note 4
pvagotici said:
hey, i have the exact same issue. Without using power savings mode or any tasker apps, my location services randomly turns off. It is extremely annoying
have you found a fix yet?
Click to expand...
Click to collapse
i have the same problem my location services turns itself off even though my power saving mode is disabled. Time and time again i have to turn back on the location services . Please help .
I have a S5 and everytime I leave the house my location services turns off by itself. I can't explain it cause I literally use my phone for calling/texting and games. I don't mess with apps, setting, configurations, or power saving mode. But the really weird thing is that if it doesn't shut itself off completely it says I'm in a different location all together. Help please!

[FIX] Stock Lollipop 5.0.2 Wi-Fi Battery Drain Issue

If you are on Stock Motorola Lollipop 5.0.2, check your Battery History in System Settings - you may notice Wi-Fi is constantly active, even when you turn it off.
In my case, the following setting in Viber was the cause: Settings > General > Wi-Fi sleep policy > Change to 'Use device's settings'
Instructions:
Firstly, go to: Settings > Wi-Fi > Advanced Wi-Fi > Keep Wi-Fi on during sleep > Change to 'Never.'
The issue appears to be that certain apps are keeping Wi-Fi active in Lollipop. Not every app may offer this setting related to 'sleep policy', a workaround is to use the App Settings Xposed Module - which allows you to disable such a permission for individual apps.
The permission can be known as: Change_Network_State.
After making these changes you may need to turn off Wi-Fi and restart phone.​
Related: https://code.google.com/p/android/issues/detail?id=79368
Thanks . it solve my real problem.
i have question. If we have change Keep Wi-Fi on during sleep to 'Never.' Will programs like Whatsapp or Viber get the gcm notifications when phone is going to sleep?
Dizzyrul3z said:
i have question. If we have change Keep Wi-Fi on during sleep to 'Never.' Will programs like Whatsapp or Viber get the gcm notifications when phone is going to sleep?
Click to expand...
Click to collapse
This is true, when phone sleeps - there is no Wi-Fi data connection.
Rather than leaving Wi-Fi on however, some people might prefer the phone wakes up every 15 minutes / 30 minutes / 1 hour, and enables Wi-Fi for 1 minute - allowing any messages to arrive. Many apps can do this, one example is DS Battery Saver.
There is also an argument that if you use Wi-Fi a lot, it's better to leave Wi-Fi on during sleep, because excessively enabling and disabling it is costly in terms of battery-life.
I've been using stock Lollipop on XT1008(Moto G Forte, I read it was just a "commercial" variant of the XT1032).
As far as I can tell, my phone doesn't report high Wi-Fi usage, but I disabled an option that I think it´s more responsible than the one mentioned here, that's "Search Always Available", this one was turning on my wifi when I even shut it down, wasting more battery than keeping it on.
Currently, my phone has been on like 13 hours and has 13% left, with a WiFi usage around 85% of the time.
Thanks for making us aware of that option in Viber.
But even after disabling that option in Viber, in the battery graphic seems like wi-fi is always active. Is it because I will also need to set "Keep Wi-Fi on during sleep" to "never"? But if it's set to never, doesn't it mean that when phone screen is off, it automatically switches off wi-fi even if you kept it on from the toggle?
lollerblade said:
Thanks for making us aware of that option in Viber.
But even after disabling that option in Viber, in the battery graphic seems like wi-fi is always active. Is it because I will also need to set "Keep Wi-Fi on during sleep" to "never"? But if it's set to never, doesn't it mean that when phone screen is off, it automatically switches off wi-fi even if you kept it on from the toggle?
Click to expand...
Click to collapse
Yes, 'never' means Wi-Fi is off when phone is sleeping. There is also the advance Wi-Fi option 'Scanning always available - which' you might want to disable.
Double check you have changed the setting in Viber, and you may need to reboot phone. It's also possible another app is causing Wi-Fi to always be active, for some it's Whatsapp.
lost101 said:
Yes, 'never' means Wi-Fi is off when phone is sleeping. There is also the advance Wi-Fi option 'Scanning always available - which' you might want to disable.
Double check you have changed the setting in Viber, and you may need to reboot phone. It's also possible another app is causing Wi-Fi to always be active, for some it's Whatsapp.
Click to expand...
Click to collapse
Ok so that option works as I thought, so for correctly receiving notifications with screen off it should be set on "always". I double checked on Viber's option and it's set correctly, then rebooted, plus scanning always available is off, geolocation (which can keep wi-fi on) is off and apparently there are no things that can keep wi-fi on.
Whatsapp does not allow to set wi-fi behavior, and the strange thing is that I have the same apps I had on Kitkat, where I didn't have such problem of viewing in battery graphic.
I am having the doubt if this may be only a Lollipop graphic issue or if wi-fi actually stays on...
lollerblade said:
Whatsapp does not allow to set wi-fi behavior, and the strange thing is that I have the same apps I had on Kitkat, where I didn't have such problem of viewing in battery graphic.
Click to expand...
Click to collapse
That's why I mention the 'App Settings' module in OP. I believe Whatsapp can and does cause this issue - there is just no setting within the app itself. You can check what permissions apps have by using 'App Settings.'
lost101 said:
That's why I mention the 'App Settings' module in OP. I believe Whatsapp can and does cause this issue. You can check what permissions apps have by using 'App Settings.'
Click to expand...
Click to collapse
Mmm yes I saw that...but I'm guessing that without root there's nothing else to do, right?
lollerblade said:
Mmm yes I saw that...but I'm guessing that without root there's nothing else to do, right?
Click to expand...
Click to collapse
No. Root would be necessary for changing permissions. However this issue may have been resolved in Android 5.1 - removing the need for this fix.
Wifi should be lefy alone as default to "never sleep"
Wifi should never sleep, even if the phone's cpu sleeps. Wifi will receive messages from whatsapp or whatever and wake up the cpu.
But if you put wifi chip to sleep, the phone will connect using 2g or worse, 3g or HSPA, and drain even more battery.
Wifi comes by default to "never sleep" for this reason, it is more battery efficient than 2g/3g.
And if you dont have wifi at home, all you have to do is slide down the menu and turn of Wifi. No need to change internal configuration on behaviour who only make things worse.
On the other hand, Viber is known for years to be a battery abuser.
I have been using android for years, and wifi policy was always the same, and my phones have idle times of several days
i even published some screen shots of my moto defy and moto G with a full week Idle without charging.with whatsapp and Wifi polocy never sleep.. With viber i wouldnt even try to make it last 2 days.

Categories

Resources