Device is always awake and WiFi is always on - OnePlus X Q&A, Help & Troubleshooting

Hi,
I'm having battery issues with OPX again, first it was a faulty battery, but now it looks like the there's something wrong with the settings. The device loses about a third of it's battery overnight, but when I look at the stats I can see that WiFi is always on and the device is always awake!
I have installed naptime as well and told it to ignore sensors (not that it matters as the device is not moving overnight) and to sleep even if connected to a charger etc. No matter what I try the device is always awake.
Is there a way to find out what is keeping it awake?
When I look at usage since last full charge there's nothing unusual there, just regular apps and single digit percentage numbers.
Thanks for your help!

System version?

I'm on Android Marshmallow, using Resurrection Remix ROM.
I'm not quite sure how to use the wakelock blocker, but I just installed Wakelock detector and it shows TripAdvisor as #1 on the list. I have it blocked in notifications, but I can't find anything related to TripAdvisor in wakelock blocker.
Is there any way to prevent apps from keeping the system awake, or should I just unintall TripAdvisor completely?
Not sure if I'm on the right track, but something is keeping the system awake and I need to find out what

OS3 with google back up turned off I get zero drain. Maybe 2-3℅ max over night. Also turned off automatic updates playstore. With just those two things off dont see drain anymore might just be lucky.

Well I think I'm back on normal drain. I uninstalled TripAdvisor, not using it except when I'm on holidays. I disabled the option to keep WiFi on even during sleep.
I used wakeblocker to block all weather/facebook entries, and I have two gmail accounts, one which is use a lot and one which I don't - so I blocked all wakelocks from syncing the account I don't use often.
Battery history confirms device is now correctly going to sleep and turning off WiFi. Automatic updates are still on.
I probably blocked too much, but I don't care anymore, I have 30% more battery every morning and that's good enough for me

crótach said:
Hi,
I'm having battery issues with OPX again, first it was a faulty battery, but now it looks like the there's something wrong with the settings. The device loses about a third of it's battery overnight, but when I look at the stats I can see that WiFi is always on and the device is always awake!
I have installed naptime as well and told it to ignore sensors (not that it matters as the device is not moving overnight) and to sleep even if connected to a charger etc. No matter what I try the device is always awake.
Is there a way to find out what is keeping it awake?
When I look at usage since last full charge there's nothing unusual there, just regular apps and single digit percentage numbers.
Thanks for your help!
Click to expand...
Click to collapse
Which ROM and recovery do you use?

Related

Battery drain over night FIXED(!?)

I was pissed off as my phone lost all the juice over the night and didnt have time for filling it in the morning as i have to go to my job. Also i am a privacy freak and from obvious reasons i dont like google apps, same goes for gmail (as i am using exchange server i dont need all the sync stuff there) which was my initial reason for preventing the application to start - i dont use ANYTHING releated to google/market and i dont have any account there, i never used it.
On rooted phone I started to prevent starting everything related to google and DRM, market etc. (autostarts https://market.android.com/details?id=com.elsdoerfer.android.autostarts):
- DRM*
- Factory Test*
- com.google.*
(i think this was all, i'll recheck if there was something else)
And guess what. The battery drain over the night is now around 2% and the phone is quite able to survive 2 days (not completely accurate as i had it connected to computer for 10 minutes in between to pump some files from it), after the second night i still had 12% of battery left.
If someone else is able to repeat that, please report the results and if someone is able to figure out which app exactly is draining the battery even batter.
One thing i dont really understand is what are those apps doing during the night, there is no reason to contact any of google services as i dont have any account entered, so wtf are they doing?!
To ROM cookers, please stop adding google apps by default, make them as package to be installed later if you wish.
I do not have any communication or at least there should be none over 3g (droidwall) and i dont want to kill aplications just to have peacefull sleep. I was searching for final solution and i have found it.
One solution is to switch off wifi and data connection in night and sure you will have better battery drainage.
Not entirely related but just a heads up for people, last night i downloaded that Getjar app and it decimated my battery overnight so i uninstalled it this morning.
I assume most on here know about https://market.android.com/details?id=com.asksven.betterbatterystats&hl=en this is the best app you can get when it comes to preventing battery drain (tells you exactly what is draining your battery)
seems getjar is eating away at the battery, dont understand why it needs to do that !
Go to the task manager and kill all running tasks, then clear ur RAM before going to sleep @ night.
I loose like 1-2%
Send from my Samsung Galaxy S II
I do not have any communication or at least there should be none over 3g (droidwall) and i dont want to kill aplications just to have peacefull sleep. I was searching for final solution and i have found it.
If it is a night issue, try turning the display ON before unplugging the charging cord. I have used this method and the battery stays at 100% all night long.

[Q][Solved] How to debug "Android-System" power consumption

Hi everyone,
I've done very much try and erroring to find out which app is draining my battery and if it's really neccessary.
As you can see on the attachment, it looks really nice already. The only thing which drives me crazy are those long and often "Aktiv" (Awake) parts. I couldn't find any information on the SDK pages.
My Phone seems to be very often Awake while in standby. I can't understand why it has to wake up that often. Am I right, that this "Awake" means, that the cpu is running (not in sleep mode)?
Is there any way to log which software is waking the device up?
Greetings
Chris
Yep, "awake" means that cpu is running. Try Badass Battery Monitor, it has a list called AppSucker, that lists the apps by battery consumption
Thanks. That is exacly what I was looking for.
Now I'm still sure, that there is somethink wrong with the battery consumtion. As you can see on the attachment, "Android-System" takes 2 hours(!) for some stupid things.
These are the datas for one night (it was a short one ) The phone wasn't used at all. Is that normal? I mean, thats nearly 30% of the time. Okay, the total capacity loss seems okey, but the phone hast absolutly nothing to do. Except for some interrupts of from the baseband and some cronjobs maybe. But that doesn't need 2 hours.
Any suggestions what courses these long awake times? Or another way to debug this?
Thanks
Chris
Android-system, huh? Seems like you have a wrong config, or a service is keeping awake the CPU...
Sorry, I dunno other way to debug it, but you already tried to calibrate your battery? (let that your battery runs out, charge it fully and, without unplug the charger, go to Recovery >Advanced >wipe battery stats. Unplug and reboot).
Yep, that was the first ding I did.
I'm running IceColdSandwich - 7.4 - AOKP STRIPPER EDITION. Maybe this is some kind of bug.
Maybe someone have another idea how I can debug this. Nevertheless thanks for helping.
You should check to see if Sync is turned on. This will cause the phone to wake up to contact any accounts you have set up to sync... I would suggest setting sync to off unless wifi is available.
On my rom (Gingerbread base) the wifi is turned of when the screen is off, which will make sure that google will never try to sync while the phone is idle.. The downside you will have to wake the phone in order to receive emails and stuff via wifi, and if not on wifi you will have to check your email manually.
I think I found it. Badass Battery Monitor showed that "Google Backup Transport" is part of Android-System, so I removed it. I didn't use it anyway.
My phone is not crashing, I still runs smoothly. The keep-awake time shrinked to 30m during 7h (including short uses). That seems totally legit for me.
Thanks for helping
Chris

Sudden Battery Drainage

I understand all these battery drain issues that the prime has been having but haven't actually had them, until now. I used to lose about 2-3% overnight but suddenly I am losing around 15% because it won't sleep. I go into the battery setting and it shows it been awake the whole time. Now I am sure if I looked around I may find a fix but it just seems a bit odd that it has just suddenly occurred. And its not a wifi drainage issue as I usually put it to sleep at power saving mode and wifi off. Just asking why?
Thanks,
I think it could be the Asus weather widget which I had set at 1 hour refresh rate.
if this just recently occured out the blue, likely a rougue app or something you recently installed. an app running in background or sync is likely the culprit.
Just put Skype on it but that's not signed in most of the time
every android tablet and phone i have does this occasionally, and those occasions are when i either play video or music. some of these media players employ a wakelock that will not disable after you put your device to sleep. sometimes a reboot will work, sometimes not. most of the times the reboot keeps it from draining. even force quitting all my media apps wouldn't work.
so basically i reboot every time i use any type media player so i don't get the drain - netflix doesn't require it, dice and just about every music player does. i'm not sure it this may be your problem, but it may be a possible solution.
I find that making sure to check the last two settings under Asus Customized Settings helps this. I was waking up in the morning to find my dock dead everyday before I checked those two settings. The only down side is when I turn the screen on and wake it up, it takes about 5-10 seconds to connect to the wifi. No biggie.
Use better battery stats and see what is causing it. I have read that skype does drain battery pretty bad. And even if you're not connected it still runs in the background at start up. Another app I would recommend is Autostarts. It allows you to disable apps at start up. I know system tuner is free and has the same functionality but I find Autostarts better. With ST, you just disable the app at start up, with Autostarts you can disable it at start up, shutdown(which some apps fire when the tab is being shut down and other system events), also other events. Like some apps fire up when you get a text, or when your connection changes etc.. I just think Autostarts has more options.
Also dev Entropy has a thread in the GS2 forums about know battery drainers. Some of it applies specifically to the GS2 but there are a bunch of general battery killers listed
http://forum.xda-developers.com/showthread.php?t=1308030
If you go to setting and battery it should show you which is using the most battery. The first one on top. If its android system, you can click on it and it will show you a list of whats been using your battery which may point you to the culprit. In my case, media was the only thing in the list. And I know if an SDcard is inside my dock it will drain battery. So after removing it the drainage went away. Havent had the drain issue since. Again yours might be different so check the battery usage.
Thanks for the feedback guys, the first thing i am gonna do is charge it up after it fell flat right up to 100% then try some suggestions. I am thinking a reboot could help it.

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...

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