[Q] [SOLVED] Wlan always enabled? - Kindle Fire General

Hey guys,
did anyone notice, that after rooting and/or installing the google apps, the wlan is always enabled, even when you turn off the screen?
This is pretty annoying to me, because the battery usage is much higher.
With wlan disabled the kindle battery usage is pretty low. It uses near to no power while in standby but when the google apps are installed (and therefor wlan is always enable) i loose up to 10 - 20% battery over night.
Is there anything i can do about this? Is there a way to figure out what exactly keeps the wlan from shutting down?
Thx

You happen to find anything else about this? First I saw of it.

This is actually a good thing in my opinion...

Hey again,
teookie, yes i know, to one its a bug to the other a feature but i prefer the old behavior and save some battery.
And finally i found the root of my evil.
An unknown app changed the wifi sleep settings. Sadly amazon removed this option from the settings dialog so you have to change it by hand in the settings.db .
Have a look here:
http://forum.xda-developers.com/showthread.php?p=19676566#post19676566
In step 16. change the value to "0".
You can also change the value "wifi_idle_ms" (in the "secure" folder) to something lower e.g. "5000" (5 seconds), to disable wifi even faster.
Now everything works like before, the only missing thing is the app that changed it.

Related

Everyone with Battery problem post info here fix soon

Ok, although I do not have a solution it seems that their are a small percentage of people on here that have the same problem as me.
This is what I know:
The EVO has a bigger display, a faster proccessor, 4G, and alot of advanced features this means battery is not going to be the greatest.
However, I am now rooted running CM6 RC2, and although I love this ROM I have been having terrible battery. Also, I was using Fresh's and stock unrooted ROM and had bad battery also, AFTER I PUT IN ALL MY SETTINGS.
When I would hard reset my phone, it would sleep like normal, and the battery would run great, however, I think their is a setting that I use with my phone that is keeping it awake.
Now I am going to give all the settings that I use on my phone without installing any apps from the market. Because I know some apps keep your phone awake but I did a factory reset, put in my settings without installing any apps and my phone stayed awake.
***I have already tried the HTC and Sprint method of "conditioning your battery" I know their are 2 methods I have done both. I have setCPU, juice defender, spare parts, all that stuff that supposedly saves battery, but so far none have helped. Also my phone is set to auto CDMA, i tried that*****
Here is what I think. I am changing some setting in the phone that is keeping it awake and I can't seem to find what it is, I had this same problem with google sync setting and thankfully someone helped me fix it and it solved the problem however, after that I am still having the issue.
Keep in mind I HAVE NOT INSTALLED ANYTHING FROM THE MARKET YET, I have only entered my settings in apps that came with the phone because I believe that is the culprit.
My settings
*#*#4636*#*#
Battery history, since last unplugged
running: 14.6%
Screen on: 10.4%
Phone on: 3.5%
Wireless and network
Airplane mode, wifi, bluetooth, tethering and portable hot spot VPN are all off
Under Mobile network
The options are: data enabled: Checked
data roaming: unchecked
System select (change the cdma roaming guide) options are either home only, affiliated networks, or automatic. I have automatic set.
Voicemail service my carrier
Nothing in the CM6 settings have been changed
Auto brightness, screen timeout 30 sec
Location: wireless network:checked
Use GPS sattelite: unchecked
Accounts and Sync:
Background data: enabled (checked)
auto sync: Enabled (checked)
Facebook-sync if off, I have not synced contacts with Facebook, and the problem I had last time was with google sync, I had google sync turned off and that kept my phone on. Now I have facebook sync turned off, COULD THAT BE THE PROBLEM?
Privacy: Back up my data-checked
automatic restore-checked
Mail settings, never update, I manually update.
News and weather is same thing, could google be trying to update even though its set not too and keep my phone awake?
Under facebook settings: refresh interval is set to never
Notifications are inactive.
About phone
Cell standby:37%
Phone idle:28%
Android system:20%
Voice calls:11%
Display:7%
If anything looks not right, or you think something as little as it may be may be causing the problem, even if it doesn't make sense please suggest it, I have tried everything, thanks.
Not to burst your bubble, but it's been pretty much proven that CM6 has unsatisfactory battery life.
Try Burnt Droid v1 + netarchy-toastmod kernel for optimum battery life.
I know,
but after reading through the thread it seems that about half of them half pretty good battery life, however I had poor battery with other roms, because something was keeping my phone awake.
I'm having a similar problem. On any ROM that's based of HTC's 2.2, my phone will run fine for about a day and then it will begin to stop sleeping. Once that happens the only way to get it to stop is to do a factory reset. What's funny is that using the exact same settings with CM6-RC2 I don't get the 100% awake issue. I've tried everything and can't figure it out.
I've tried turning off all automatic syncing, turning off network time and network location...didn't work. I deleted my Exchange account since I had heard that some people were having Exchange problems...didn't help. This last time around I didn't install anything from the market, it was just the stock apps. I did connect the phone to Sync in my truck and used it quite a bit before the problem cropped up.
I've got a sneaking suspicion that it's some kind background process that tries to run after a specified amount of time, but there's some kind of problem with the Sense-based ROMs that I've tried that won't allow it to run properly. So we need to figure out what the process is and either stop it from running in the first place, or figure out a way to take it out of the ROM so it isn't there to begin with.
I'm going to wipe everything and try installing Fresh 3.1.0.2 again. I'm going to try to remember to reboot my phone every night when I plug it in to charge and see if that helps. While it isn't ideal, it's way easier than having to do a factory reset every other day. I'll post back and let everyone know what happens.

[SOLUTION] Display Never Turns Off While Charging

I tried to find a solution for my problem, but I couldn't find any.
Everytime I plug in my phone for charging the display turns on and stays on, same thing happens when I disconnect my phone from the charger. The screen in GingerBread (JVQ) doesn't timeout like it timed out in Froyo/Eclair. This could be potentially a huge problem for your screen. You could get a "burn-in" effect if you get a power outtage while charging and you're asleep/away.
Thankfully there's Tasker (It's a paid app!).
With Tasker you can turn off your screen while you connect/disconnect your phone from your charger.
Here is how I set it up:
Add Profile and name it: TurnOffDisplayOnCharging
Add State-->Power-->I selected only AC
Add Enter Task: Add Tasker-->Wait-->5 seconds and then Add Display-->System Lock (You will need to add Tasker to your device administrators.).
Add Exit Task: Do the same like you did for your Enter Task above.
Of course you don't need to have both Tasks, you could only have an Enter Task or only an Exit Task, it's up to you.
You can also change the timeout/wait time or add any other setting if you like.
Solution 2 (free solution!):
WakeLocker for Galaxy S.
I've uninstalled the app and restarted my phone and the settings stayed! Yay!
Timeout is the same what you have set for "Screen timeout" under Settings-->Display.
I hope this thread was helpful!
display ALWAYS turns off while charging
unless you use modification that enables such setting
plus you must activate such setting to have 'screen steaying on when pluged in'
$omator said:
display ALWAYS turns off while charging
unless you use modification that enables such setting
plus you must activate such setting to have 'screen steaying on when pluged in'
Click to expand...
Click to collapse
Guess Juwe's ROM has such setting enabled.
as youve mentioned such setting might lead to burining screen pisxels
i think if juwe woiuld activate such settign he would put some information about this in huge red letters
$omator said:
as youve mentioned such setting might lead to burining screen pisxels
i think if juwe woiuld activate such settign he would put some information about this in huge red letters
Click to expand...
Click to collapse
So... you're saying there's something else keeping my display turned on after I connect/disconnect my phone from the charger? An app maybe, or some hidden setting?
And, NO, I don't have "Stay awake" option in Settings-->Applications-->Development, only "USB debugging" and "Allow mock locations".
yup something is wrong with your phone, never had such issue
and the only way i know to make display always on is this setting
I just did a re-search on Google for my problem and found your thread (it's even in your signature).
And one of the features for Stock+ is:
+ Enabled stay awake for ac and usb in settings/applications/development
Also found some other people with different roms have this same problem.
Guess this solution might be a good quick fix, instead of re-flashing/searching for other suitable roms.
as for stock+ look at my signature
as for the bug, as i said never hadsuch issue so realy hard to tell what can cause it
but that is not how properly working phone is behaving for sure
and not a problem of stock firmware
As much as strange this will sound.. this is not a bug, it's a feature...
Juwe has it implemented on his rom, as it is also in some other custom roms. I personally can't think of a proper use for this, but, trust me it's a feature. In Juwe and the other roms it is implemented as a setting somewhere in the settings(normally in 'Settings-->Applications-->Development' and sometimes in the display section). But it can also be enabled, if supported by rom (in stock it's not) , when using either SGS Tools, Nitranity or Spare Parts.. can't remember which one exactly sorry. try to remember if you used any kind of tool app to mess around
but leaving it ON as a default is stupid - as said it will 'burn out' your phone display
it MUST be optional - and information about this should be in big red text
Well, $omator , I am a big fan of yours, really! AND your are ABSOLUTELY, TOTALLY, UNDOUBTEDLY RIGHT, but even so that is not the case I know it for a reason because I played a lot with my SGS, since I got it. I have seen this in settings and availability to be enabled through an app.
Really hope you fix your problem, yani2000, shame to burn out accidentally the display. Until you resolve your issue you might want to try charging the phone while it's shut off and see if display still turns on. If not this a temporary fix
moegrave suggested an app for this solution and I've found it!
WakeLocker for Galaxy S (free app on the market!).
Guess there's an app for every trouble GalaxyS has.
EDIT: I've uninstalled the app and restarted my phone and the settings stayed! Yay!
Timeout is the same what you have set for "Screen timeout" under Settings-->Display.
@$omator:
This becomes a problem only if there's a power outtage or somehow your phone gets disconnected from the charger and you're away or asleep.
The phone doesn't wake up and stays on after 100% charge and eats the battery (like some have reported in other various threads).
So this is not such a big deal, but could be dangerous for your screen (burn-in effect) if it actually happens.
glad to be of assistance, yani2000
and guess there ARE apps for everything nowadays
thanks you so muchh you have solved my biggest problem
i have a custom rom on my sgs ii and i had this problem
thanks

CM10 Battery Drain and Feature Request

Hi there,
I installed CM10 (thanks a lot for it by the way) this morning and it seems my display sometimes just activates without reason. At first I only noticed the device being extremely warm, so I check battery usage and 92% of it have been "display". The device went from 95% to about 50% in a matter of a two or three hours with me not using the tablet at all in that time. When I checked again a little later, the display was active, although I am sure I had sent the device to sleep mode.
Also, here are two features I would like to request:
1. Please add a way to rotate the lockscreen
2. Please add Mobile Data as a switch for the quick settings (the one you get to by "clicking" the clock). It is rather annoying to go through the menu to activate / deactivate it...
The.Vortex said:
1. Please add a way to rotate the lockscreen
Click to expand...
Click to collapse
OK, found the fix for that problem... the other one still stands
And I have got an additional issue now:
my Mobile Data Connection doesn't work. My carrier is o2 Germany and the stock ROM had some issues with that carrier as well a while back. Maybe it is the same problem?
For now I am switching back to stock, without mobile data, the tablet is only half as usefull, even with the otherwise better ROM
Add your APN Setting manually and it works nice. They are in the 3G Settings. I even had to just add a almost empty one to make things wake up again.
The.Vortex said:
Hi there,
I installed CM10 (thanks a lot for it by the way) this morning and it seems my display sometimes just activates without reason. At first I only noticed the device being extremely warm, so I check battery usage and 92% of it have been "display". The device went from 95% to about 50% in a matter of a two or three hours with me not using the tablet at all in that time. When I checked again a little later, the display was active, although I am sure I had sent the device to sleep mode.
Also, here are two features I would like to request:
1. Please add a way to rotate the lockscreen
2. Please add Mobile Data as a switch for the quick settings (the one you get to by "clicking" the clock). It is rather annoying to go through the menu to activate / deactivate it...
Click to expand...
Click to collapse
I have actually experienced the opposite--battery has been outstanding since flashing the ROM. I usually turn on Airplane mode when I am not using the phone, and am certain to turn off WiFi as well. Try that and see if it makes a difference. Also, be sure you are charging with an appropriate charger!
emuandco said:
Add your APN Setting manually and it works nice. They are in the 3G Settings. I even had to just add a almost empty one to make things wake up again.
Click to expand...
Click to collapse
Thanks, that solved the 3G issue and, as far as I can tell after one day, the issue with the screen activating, as well.
For the other point, being able to activate / deactivate the mobile data easily, I found Power Toggle (can't post link, just look for it in the play market or remove the blanks: ht tps://play.google. com/store/apps/details?id=com.painless.pc) which can add a widget to the notification area that works great
You can add more switches to the menu popping up when clicking on the clock. Thats what I did. Its in System -> Notification Bar (Or something like that, I use it in German ^^)

[Q] How to debug “wlan_wake kernel wakelock” on an unrooted device?

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?

[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