[Q] How to see which applications causing partial wake locks in Gingerbread - Desire General

Hi all, I'm using the Gingerbread Oxygen rom by Adam G. It's fantastic.
But I have a quick question, whose answer I can't find by searching:
My battery life is poor, I think because some app is using a partial wake lock to prevent sleep (grrrr). In my previous ROMs I was able to use the code *#*#4636#*#* to bring up detailed information on which apps were causing problems. However with gingerbread/oxygen this level of detail is not present. Anyone got any ideas how I can find the misbehaving bugger?
Peace out!

I would like to know that too. I'm also using Oxygen, and suffering from very poor battery life.

PowerTutor is what are you looking for

Check whether or not your wireless is on but not connected. I found this to be an issue with Oxygen and battery life initially but I set a rule in the power control widget to only turn on bluetooth and wireless when plugged in to a power source.

Thanks. I will try Power Tutor.
The problem happened after I switched to Oxygen from the stock Desire kernel, so I suspect that some apps don't play nicely with Gingerbread, and hence keeps the phone from sleeping. I have tried with WiFi off and the battery drain still happens.

Related

100% Wake Time

I now have 100% wake time again. My ROM is Fesh 3.2 and Kernel is Netarchy 4.1.9. Is 100% wake time even an issue anymore? I remember it being an issue with the Hero, but I just started looking at it with my Evo. Using spare parts the highest on the partial wake usage is UID10018, but its a very small bar, the second is android system. Under battery usage it says running 100%, screen on 7.5% and phone on 13.8%. I have setcpu and juice defender, but I had 100% even with those uninstall ed. Any ideas would be great appreciated!
Also under running services, I have easy tether and juice defender on that list, could that be the problem?
bigupurself7 said:
I now have 100% wake time again. My ROM is Fesh 3.2 and Kernel is Netarchy 4.1.9. Is 100% wake time even an issue anymore? I remember it being an issue with the Hero, but I just started looking at it with my Evo. Using spare parts the highest on the partial wake usage is UID10018, but its a very small bar, the second is android system. Under battery usage it says running 100%, screen on 7.5% and phone on 13.8%. I have setcpu and juice defender, but I had 100% even with those uninstall ed. Any ideas would be great appreciated!
Also under running services, I have easy tether and juice defender on that list, could that be the problem?
Click to expand...
Click to collapse
Are you using BT?
I know there are some ROMs/Kernels that have an issue where they will not sleep if bluetooth is active... I'm running CM6 with King's kernel and I have to remember to manually turn off BT when I'm done so the phone will sleep.
sohr said:
Are you using BT?
I know there are some ROMs/Kernels that have an issue where they will not sleep if bluetooth is active... I'm running CM6 with King's kernel and I have to remember to manually turn off BT when I'm done so the phone will sleep.
Click to expand...
Click to collapse
Nope, not using bluetooth. I just reinstalled my rom and started fresh, im going to re-install each app, one at a time to see where the problem is. I wish there was an easier way
I have been reading A LOT about this lately, and I am also affected by this problem. No matter what you do, the problem comes back after a day or two.
I have tried uninstalling ALL my apps and still have 100% uptime. I'm starting to think this has to do with Sprint's Voicemail App that recently got updated. That's the only thing I can think of.
I have to say though, i have NOT noticed a hit on battery life. Still, this bothers me.
Ive had to deal with this a few times and it was almost always an app or a widget that was causing it. Sometimes its swype and people dont realize it.
Old thread but I just had this problem with 100% wake time and finally figured out that is was a process called com.android.providers.stocks, I just force stopped it in the "running apps" list and the little animated sync icon went off and I'm no longer at 100% wake time.... hope this helps

[Q] Oxygen 2.0-RC6, Battery drain issues

Hey everyone,
I wanted to ask everyone for advice/opinion on my horrible battery life.
I have been trying out 2.0-RC6 for some time now and I love it, except the fact that the battery is drained in about 10 hours. I am coming from LeeDroid 2.2 and could go sometimes 2 days without charging.
I have searched forums, posts, what have you ... tried different kernels, radios. No joy.
I am now running a virgin RC6 with all caches wiped (S-OFF too). What it comes down to is a mysterious drain of about 100mA even when the phone is sleeping (radio on, bluetooth off, wifi off). Which makes no sense... I used to get really low drain with the laggy HTC Sense rom (about 5-10mA). Again - this is a clean rom there are no apps installed on it apart from a battery widget and setCPU.
Why i think it is the radio's fault is that when I do put the phone in airplane mode the power drain goes to 2mA. I have tried most radios, even flashed the 32.49.00.32U_5.11.05.27_RIL and for some reason the radio is still constantly drawing power.
So, I am stumped. I was wondering if any of you have found some tweaks that have worked for you. Have you experienced this kind of problem and do you have any advice as to how I can go about debugging this issue? I have very little knowledge about radios in general but i'm willing to learn.
There have been people with battery drain issues out there, but no one seems to know how to resolve them (or those issues simply go away when they flash a new rom, which hasn't happened for me).
I would appreciate comments from developers who know how to debug those issues and I think this will be of help to everyone.
Thanks
slyn4ice said:
Hey everyone,
I wanted to ask everyone for advice/opinion on my horrible battery life.
I have been trying out 2.0-RC6 for some time now and I love it, except the fact that the battery is drained in about 10 hours. I am coming from LeeDroid 2.2 and could go sometimes 2 days without charging.
I have searched forums, posts, what have you ... tried different kernels, radios. No joy.
I am now running a virgin RC6 with all caches wiped (S-OFF too). What it comes down to is a mysterious drain of about 100mA even when the phone is sleeping (radio on, bluetooth off, wifi off). Which makes no sense... I used to get really low drain with the laggy HTC Sense rom (about 5-10mA). Again - this is a clean rom there are no apps installed on it apart from a battery widget and setCPU.
Why i think it is the radio's fault is that when I do put the phone in airplane mode the power drain goes to 2mA. I have tried most radios, even flashed the 32.49.00.32U_5.11.05.27_RIL and for some reason the radio is still constantly drawing power.
So, I am stumped. I was wondering if any of you have found some tweaks that have worked for you. Have you experienced this kind of problem and do you have any advice as to how I can go about debugging this issue? I have very little knowledge about radios in general but i'm willing to learn.
There have been people with battery drain issues out there, but no one seems to know how to resolve them (or those issues simply go away when they flash a new rom, which hasn't happened for me).
I would appreciate comments from developers who know how to debug those issues and I think this will be of help to everyone.
Thanks
Click to expand...
Click to collapse
Try the 32.54.00.32U_5.14.05.17 radio and use a RIL designed for it also. For me this gives the best battery life. Also set wifi sleep mode to never by going into wifi settings, menu->advanced

[Q] Battery drain and 3G connectivity loss

Hi all!
Since a few months ago, my Desire has been having two major issues:
- Huge battery drain in 2 to 5h time (unable to identify application responsible, powertutor reports android system or os - can't remember -, while built-in battery usage monitor reports either display or cell standby - the second appears especially when the phone is idle and supposedly sleeping). The few times I enabled airplane mode, I got double battery time, though it doesn't come close to former normal battery time.
- 3G connectivity loss, when going through no signal areas or when the phone is forced to switch between GPRS and 3G and vice-versa.
Regarding the second issue, I've already tried to enable GSM (auto-PRL) and the result is practically the same as having 3G enabled. Only factory resetting after enabling the former setting and choosing GPRS only, in Settings works in no signal downtime.
Nothing I've tried takes care of the battery draining issue, even hard-resets. I've already flashed different roms from Eclair to Gingerbread, from unrooted stock to root stock-based: no real change.
So after this rambling, my question what is more likely either some hardware malfunction or a software bug in the android system or in some application?
Anyway, I'll try to use systempanel or watchdog to try pinpointing the culprit.
Thank you.
Flash latest radio
Also worth thinking about the kernel, I had a similar thing to you, and it was because I flashed a different kernel to the one packaged with the rom.
I would also try a full wipe, ie cache, data, system etc. in recovery and installing something clean eg oxygen rom.
The suggestion above about the radio is definitely worth trying also I would check that your current ril is compatible with your radio version:
http://forum.xda-developers.com/showthread.php?t=902752
Hello! Sorry for not answering sooner.
I have been running the latest radio for at least one month, and it hasn't changed that much the issue.
Also, at some point, I did try another kernel, having seen that suggestion elsewhere in the forums. It also didn't change much.
Finally, I have also tried flashing and using the clean oxygen gingerbread rom. The battery time improved a bit, but didn't go back to normal.
Still, after seeing the results of systempanel monitoring, I will try flashing oxygen rom again because, perhaps with 2.3.4, whatever the issue is, it might have been fixed.
Try to calibrate your battery:
1.) Load phone till full when on
2.) Turn off and load to green led
3.) Turn completely on, turn off and load until green led appears
4.) Boot into recovery, wipe battery stats and now use phone as normal
No warranty for any damage.
Sent from my HTC Desire using XDA App
Did it start when you flashed something new?
Hello!
That is possible. However, I have flashed and formated the phone many times since then and there has been no change.
Also, I have been monitoring the cpu usage through systempanel as suggested in some other threads, throughout the last weeks and in average, there's no installed application going further than 10% cpu usage consistently. When seeing the history of usage, at the top I have the system process, which has an average consumption of 0.2% over one week.
So, the phone seems to be working normally, but when using the currentwidget app to see the current drawn from the battety in each instant, at the best I get 50-70 mA, at the worst I get 700-800 mA. On average, 300-500 mA consistently.
I think something is draining the battery consistently much more than normal and also causing the baseband or the radio subsystem to crash, when switching from 2G to 3G or vice-versa.
I have done everything suggested in this thread, except for flashing a new clean oxygen rom and I've got no result.
What could be causing this: some hardware problem?
Thank you for your patience.
Maybe try the battery in someone else's desire, that you know functions ok, and their battery in yours? Perhaps the battery is dying?
Since I haven't been able to find anyone with an HTC Desire and I can't be certain if the problem is with the battery itself, I'll just send my Desire for repair to HTC.
Hopefully, they'll find and solve whatever the problem is.
Thank you all, anyways.

Battery life severely reduced!

Please can I get some assistance, I cannot for the life of me figure out what has happened.
LeeDroid 3.3 latest.
I have gone from 48h standby to 14h. During use it's depleted in a matter of hours, it's incredibly low in relativity to what I'm used to.
I was on LeeDroid 3.0.2 previously and battery life was VERY long, I loved it - going back to this version doesn't help and the battery issue remains, and therefore it also remains on the newest build.
Previously I was running a bucket load of apps/games with normal 50% brightness, I have resorted to deleting apps/keeping tasks closed but to no avail. The Statistics for battery usage seem to look similar to how it used to be before, with display taking up a large chunk.
I tried the battery trick today but it hasn't helped. My phone has already gone to 98% (40m uptime) with screen turned off + SetCPU set at powersave/lowest mhz while screen is off.
I hope you can help, Thanks.
This does happen sometimes, not sure what causes it but a wipe and reflash sorts it out for me.
What kernel are you using? Have you made any recent changes before massive drain started happening?
Try monitor the current using current widget. If it's normal, around 1-4ma during standby, perhaps, your battery need calibrated. If it didn't resolve your problem, then, maybe the battery is dead.
ErOR22 said:
What kernel are you using? Have you made any recent changes before massive drain started happening?
Click to expand...
Click to collapse
I dont think this is the problem because when it happens to mine it just happens by itself after a few weeks of having the ROM installed with very few extra applications which I install immediately.
anyone know if the proximity sensor is classed under display? could be that thats stuck on. got any apps that use or used the proximity sensor? or maybe the touch screen is stuck on.
have you tried removing the SD card? see if its something on there.
Well I reinstalled Leedroid with the recommended rom and although the battery life is nowhere near what it was previously... its at a respectable 22h or so... enough to give me time to actually find a fix...
Theres no apps, nothing, just the rom and its apps so I will try it without SD card also, i dont understand how to check for proximity sensor though
Thanks

Can someone please tell me what's causing my battery drain?

I even broke my phone with App Ops trying to figure it out, disabling wake permissions for most apps which caused FC's and even reboots. I have since restored all permissions but I still get FC's whenever I leave an app or switch out of it. Not sure if it's really crashing, but I get a FC message every time. So much so that Substratum turned off its theming for Files because it "crashed" after every screenshot was successfully uploaded to this post. Btw I just removed CrossBreed Lite and it seems to have helped. So far no reboots doing the same stuff that caused reboots! Not sure why it caused problems though. I used it for a few days with no issues.
Anyway, back to my battery woes. 30-40% kernel system usage. Why is this happening? Even Snapchat which is abusing wake locks is nothing compared to kernel system.
I'm running the latest build of AIM 8.1 with EX Kernel. I have just visited the other thread about tweaking governer values to optimize battery life so I'll report back with results although I doubt that's relevant to my battery drain.
I've Googled quite a bit on the subject and it seems that each case is different. Usually caused by a certain bug, although a lot of people say it's "normal" which I strongly disagree with.
Update: optimizing the CPU has definitely made an improvement, but the kernel battery drain still exists.
Could it really be pick up to wake and wifi search behind the drain? Isn't this phone supposed to have a sensor hub that allegedly allows for all sensors to constantly be on while using minimal power? I never noticed this drain on any other phone with both of these features on.
Anyway, I disabled pick up to wake and I'll start trying to remember to turn off wifi when not in use.
I think you're trying too hard and running a bunch of stuff. The kernal usage looks about right. I wouldn't run Gsam and BBS at the same time. They can fight each other. What makes you think there's a problem? Nothing jumps out at me.
Sent from my [device_name] using XDA-Developers Legacy app
I also can't see anything out of the ordinary, except this one picture where it shows the phone being active while dozing. I don't know how to understand that because I don't use that app, maybe I'm reading it wrong. What does Android's built-in battery monitor show? Is it dozing properly while screen is off? What is your average SOT? Is your mobile signal strong? I'm also using AIM 8.1+EX combination with satisfying results. Is your radio up to date?
maybe Wakelock Detektor or Greenify can help you.
And if you currently have things crashing all the time, start with a factory reset. Much easier to diagnose the cause when the apps aren't doing random stuff.

Categories

Resources