Weird CPU loads and system lag in 2.2 FroYo - Nexus One Q&A, Help & Troubleshooting

I have been seeing odd periods of heavy cpu use and I am unable to pinpoint the reasons. systempanel is not showing any out of control apps, but sometimes shows prolonged heavy use of the cpu; often at 100% use. (also everytime I charge the device history shows 100% use the whole time, I do have dock mode active though) Often times when I see 100% load, the history shows it starting when I open systempanel, but systempanel is not showing heavy use according to its personal history chart. I contacted the dev and he is looking into it, but does not believe it is the app. The system my lag at these times, but does not become unresponsive. After a fresh reboot, systempanel seems to show normal cpu loads even when active and in the foreground, but after a time it shows 100% every time I open it. (and history shows the high use starts when I open the app, but sometimes the chart does show moderate heavy use around 50% before systempanel is even started, so I can not be sure if systempanel is the cause)
I have also been having odd slow downs and lag that a kill all command from a task manager will not fix, but a reboot does. (I am thinking this lag corresponds to random high cpu use, but because of the above unreliability of systempanel I can not know.
It seems to happen over time, like a memory leak but with cpu and system load.
Anyone else having this problem in FroYo?
Systempanel is the only app that I know of that has that level of detail about what is going on in the phone, so I can not check it against another app.

OK i was just curious and downloaded systempanel and looked at the cpu usage. First i have a uptime of 88 hours exactly. the cpu usage is between 277Mhz and 450Mhz. I'm also using Froyo and everythinds is stock (kernel, Rom).
SO maybe there is a app that isn't showing his cpu usage? i don't use any taskiller so i don't kill anything.

I have a task killer to kill any apps that go haywire. I found another app to check against systempanell it does not have logging but I can check current stats.

Guess I'm the only one?

Ok since installing a second active monitoring app, the weird cpu loads are gone; things seem normal. Both apps seem to show the same results. Though I still feel that the cpu load being at 100% the entire time the phone sits on the charger is unnecessary.
-------------------------------------
Sent via the XDA Tapatalk App

I've had unusual cpu pegging (started a thread about it too). Four forced reboots so far.

britoso said:
I've had unusual cpu pegging (started a thread about it too). Four forced reboots so far.
Click to expand...
Click to collapse
You still got it? i think there has to be a faulty app not that people got this problem, you are the only 2 i heard from though.

commodoor said:
You still got it? i think there has to be a faulty app not that people got this problem, you are the only 2 i heard from though.
Click to expand...
Click to collapse
Yes, just today my gtalk froze with 100% cpu when switching to it. Had to force power off after waiting about 3 mins (power+vol down+trackball)

I am having the EXACT same problem, I was actually browsing through here to see if anyone else was getting it as well before i started my own thread...
it started yesterday actually and I am wondering if it is the new .0.4.2 launcher pro beta because i just put that on yesterday and i had no problems with .4.1
that is my speculation, can anyone confirm?

its probably not your launcher, I'm on ADW. Will try Launcher2 and see if it is better...

Related

Battery life worse after FRF83

Ive noticed a significant decrease in battery life ever since i updated my phone to FRF83. I can leave it on at 100% and it drains down to 75% or even lower the following morning. It usually drains no more than 10% if i leave it running overnight.
I dont have any apps running in the background, and my task killer is set to auto kill 3 mins after screen blankout. Auto refresh is, and has always been on since the day i got the phone though.
I manually updated to FRF85B and the battery life is still as bad as ever. Ive never gotten this problem with android 2.1 or any of the earlier froyo builds. Someone care to tell me whats wrong? Ive heard others reporting that their battery life has increased after updating to froyo, why am i getting the opposite?
I have this issue because of my exchange server.
Ive never set up and exchange server on my phone. The only constant apps that should be auto syncing are gmail, calander and twitter, which is set to refresh once every 1 hour.
Same for me, battery life sucks lately.
Mokurex said:
Same for me, battery life sucks lately.
Click to expand...
Click to collapse
Then there are people reporting that their battery life has increased after updating to froyo. In fact mine was ok at first, until i started using FRF83 onwards then it all started to go downhill. This morning i woke up with the battery at 44% when i last saw it, it was at 90% the night before. It drained that much overnight and its not supposed to happen!
Mine was very good since updating to froyo ( starting from first builds leaked). Its very good now too, better than before anyway. I used to run of juice by 9PM, now i have ~ 20% left with the same usage.
Check out what apps are consuming the battery, i got terrible batt life when i tried the droidx live wallpaper.
App usage are the usual stuff.
Display being the highest, followed by android system, then cell standby, phone idle, twitter, android OS, launcher pro..etc
something seems to be sucking up my battery and i dont know what
I'll be the first one, I guess - I blame the task killer. It's widely known that you shouldn't need a task killer, unless you have some rogue app.
EarthsiegeTA said:
I'll be the first one, I guess - I blame the task killer. It's widely known that you shouldn't need a task killer, unless you have some rogue app.
Click to expand...
Click to collapse
But if your task killer is set to auto-kill on screen-off, even if various apps restart then that should only be in the first few minutes and shouldn't reduce the battery that much.
I have taskiller installed but only for manual killing of problem apps (a rare occurrence) and I have noticed poor battery life since moving to FRF85b - didn't notice anything of the sort in the Froyo versions before 85b though.
Well i just uninstalled task killer, i'll leave the phone running overnight again to test the battery again. But from the looks of it. It seems battery life has improved slightly, but it could be just me.
drewstiff said:
But if your task killer is set to auto-kill on screen-off, even if various apps restart then that should only be in the first few minutes and shouldn't reduce the battery that much.
I have taskiller installed but only for manual killing of problem apps (a rare occurrence) and I have noticed poor battery life since moving to FRF85b - didn't notice anything of the sort in the Froyo versions before 85b though.
Click to expand...
Click to collapse
Yeah thats true. It shouldnt suck up that much battery cos it only kills apps once. It could be an issue with the task killer causing it to drain the battery, because after uninstalling it i think the battery lasts a little longer. But i'll leave it running overnight again to confirm.
My quick story:
- frf72 and earlier - about 12 hours battery life for me. Used task killers, 2 emails on push. WiFi, BT off. Also tried juicedefender and setCPU. They made my battery life even worse.
- frf82+ (now frf91). Read up on how Android manages tasks and power. Got rid of all the task managers, setCPU and JD. Only use OSMonitor every once in a while to see if any dumbass app using up CPU in wakelock. So far none.
- EVERYTHING is ON. Wifi, BT, GPS - always on. I never use 2G, it's always 3G/HSDPA. GMAIL on PUSH, Exchange PUSH or 10minutes (no difference in battery for me)
- After a 24-hour test (from which 8 hours were on standby at night) I lost 80% battery life, so 20% still remain.
My advice: uninstall anything like setCPU, JD or taskkillers. Let Android handle that. Install OSMonitor and make sure nothing's in wakelock. Wipe cache if you want. If you're not getting 18-20+ hours, perhaps time to calibrate ur battery.
Thanks for the tip, just installled OSmonitor. The interface is pretty messy! But at least i understand whats going on. So all i need to do is keep track of which apps are at the highest load?
Is it really necessary to kill unwanted apps (Twitter, goggles, gmail..etc) because they are taking up RAM to improve battery life while idling?
OR you could just take Paul's advice and not use a task killer. My money is on him =)
FAQ: Why You Shouldn’t Be Using a Task Killer with Android
Wow thats a very informative read! Thanks for the link. I too also thought that an unwanted running task means i need to kill it to free RAM in order to speed things up and improve battery life. Didnt know im actually doing it harm.
Looks like i'll ditch my task manager for good and have faith in the OS.
Using LauncherPro Beta? I think some battery issues have been traced back to the way LP is handling updating widgets right now. Hoping for an update to fix it soon.
Well guess what. I just used the phone for an entire day and left it on since last night. It dropped down to 25% when i got home and was about to replace the battery pack. So it looks like task manager was the cause of the problem.
Launcherpro doesnt seem to be affecting the battery life.
cr0wnest said:
Well guess what. I just used the phone for an entire day and left it on since last night. It dropped down to 25% when i got home and was about to replace the battery pack. So it looks like task manager was the cause of the problem.
Launcherpro doesnt seem to be affecting the battery life.
Click to expand...
Click to collapse
Well it won't show up in the battery usage as affecting the battery. It has something to do with the widget updating not launcherpro. I removed BBC News, Beautiful Widgets and my Battery Info widget and my battery is now holding steady.
I'd be interested if you'd run an experiment, remove all updating widgets, notification widgets, etc and try again.

[Q] Battery Drainage cannot be stopped!

I need help with my battery drainage, I cannot seem to track down what is the cause of my problems here. While at work I get a drain of anywere from 30-40 percent in about 5-6 hours! now that seems like ALOT.
I've tried stock, CM 6 R2, and Enom - I am on a custom kernel (2.6.35-925mV-CFS-SVS-720p-Monks-081010).. I am currently on that kernel and Enoms latest rom.
I've tried many things I've found on this forum. I installed "ShutUpBatterySaver", I removed my task manager, removed TiKL (heard it wasted battery while not in use), uninstalled ALOT of apps that I dont use/need just in case, Installed OSMonitor and watched to make sure nothing is using the CPU while its trying to sleep (I get less than 10 percent in use at any given time while the phone should be idle from android system mostly), I've stopped using live wallpapers and made sure my auto dim setting is on..
I'm not sure what else to do here Please Help!!
Thanks
viper2g1 said:
I need help with my battery drainage, I cannot seem to track down what is the cause of my problems here. While at work I get a drain of anywere from 30-40 percent in about 5-6 hours! now that seems like ALOT.
I've tried stock, CM 6 R2, and Enom - I am on a custom kernel (2.6.35-925mV-CFS-SVS-720p-Monks-081010).. I am currently on that kernel and Enoms latest rom.
I've tried many things I've found on this forum. I installed "ShutUpBatterySaver", I removed my task manager, removed TiKL (heard it wasted battery while not in use), uninstalled ALOT of apps that I dont use/need just in case, Installed OSMonitor and watched to make sure nothing is using the CPU while its trying to sleep (I get less than 10 percent in use at any given time while the phone should be idle from android system mostly), I've stopped using live wallpapers and made sure my auto dim setting is on..
I'm not sure what else to do here Please Help!!
Thanks
Click to expand...
Click to collapse
Your system is using 10% cpu while the phone is IDLE??? Yeah, that's not right. Mine is in the noise (<1%) when idle.
viper2g1 said:
I need help with my battery drainage, I cannot seem to track down what is the cause of my problems here. While at work I get a drain of anywere from 30-40 percent in about 5-6 hours! now that seems like ALOT.
I've tried stock, CM 6 R2, and Enom - I am on a custom kernel (2.6.35-925mV-CFS-SVS-720p-Monks-081010).. I am currently on that kernel and Enoms latest rom.
I've tried many things I've found on this forum. I installed "ShutUpBatterySaver", I removed my task manager, removed TiKL (heard it wasted battery while not in use), uninstalled ALOT of apps that I dont use/need just in case, Installed OSMonitor and watched to make sure nothing is using the CPU while its trying to sleep (I get less than 10 percent in use at any given time while the phone should be idle from android system mostly), I've stopped using live wallpapers and made sure my auto dim setting is on..
I'm not sure what else to do here Please Help!!
Thanks
Click to expand...
Click to collapse
me too the battery life on n1 sucks for me... i would unplug it then when i get to work on idle i turn it on it drops like 10 -15 percent in about an hour or so...??
Here is what I did.
1. Try to use black themes. I installed black desire bar and use black wallpaper.
2. Install SetCPU and set it to "on demand"
3. Change Wifi sleep policy to never.
4. Turn off autosync and use Shutupbatterysaver (This app automatically closes even after adding to task manager ignore list)
5. Remove widgets that auto refresh.
6. I'm using the same kernel as yours.
I also have **** battery life. Is it almost a must to calibrate the battery if you want to achieve good battery life?
Some people comment about how they have 36 hours of battery life OVERCLOCKED. If only my battery could come remotely close to that!
Unplugged my phone 1.25 hours ago and I'm already at 92%!
Edit: hmm, it tells me that my phone has been awake for 28 of the 75 minutes which is essentially impossible. Is there an issue where the phone takes too long to sleep?
I just recently got some very good usage out of my battery. Over night it only dropped something like 4%.
I'm not sure exactly what to attribute to as I've tried so many ROMS etc recently but the main things are probably
Installed SetCPU and set to 245min 500max
When in wifi location connect to it for data sync instead of 2g/3g as it uses less power when idle.
rickytenzer said:
I also have **** battery life. Is it almost a must to calibrate the battery if you want to achieve good battery life?
Some people comment about how they have 36 hours of battery life OVERCLOCKED. If only my battery could come remotely close to that!
Unplugged my phone 1.25 hours ago and I'm already at 92%!
Edit: hmm, it tells me that my phone has been awake for 28 of the 75 minutes which is essentially impossible. Is there an issue where the phone takes too long to sleep?
Click to expand...
Click to collapse
Something you're running is keeping it awake.. Most likely you have online/syncing/notifications on IM, Facebook, Twitter, something like that... Not the apps themselves, but them set to sync etc..
Spare Parts should be able to tell you what's keeping it awake.
What's UID 10018?
Here is what I did.
1. Try to use black themes. I installed black desire bar and use black wallpaper.
2. Install SetCPU and set it to "on demand"
3. Change Wifi sleep policy to never.
4. Turn off autosync and use Shutupbatterysaver (This app automatically closes even after adding to task manager ignore list)
5. Remove widgets that auto refresh.
6. I'm using the same kernel as yours.
Click to expand...
Click to collapse
Some details I forgot origionally:
1. I have a black theme and my wallpaper is dark not black though
2. SetCPU is not installed but via spare parts I have my max at 107520 and govenor is on demand
3. My Wifi policy is never
4. i tried shutupbatterysaver and switched to juice defender but will probably switch back
5. I removed all widgets that auto refresh except the facebook widget (set to never refresh but it does anyway for some reason), and beutiful home widget set to update weather every 6 hours.
When in wifi location connect to it for data sync instead of 2g/3g as it uses less power when idle.
Click to expand...
Click to collapse
I try to do this as much as possible actually.
Something you're running is keeping it awake.. Most likely you have online/syncing/notifications on IM, Facebook, Twitter, something like that... Not the apps themselves, but them set to sync etc..
Spare Parts should be able to tell you what's keeping it awake.
Click to expand...
Click to collapse
Here is a bit of my partial wake usage: Android system (Most), UID 10020, Dialer, Facebook, TiKL (anyone know what that is?), then News and Weather (I never use this not sure why its there), JuiceDefender, Handcent SMS.
OTher Usage shows: Running 54.9%, Screen on 27.1%, Phone on 15.9%, Wifi On 90.1%, Wifi Running 49.6% - All since last boot
rickytenzer said:
What's UID 10018?
Click to expand...
Click to collapse
It's usually OS monitor I think.
Anyone have any answers?
viper2g1 said:
Anyone have any answers?
Click to expand...
Click to collapse
In the process of calibrating my battery by draining it COMPLETELY (as in I can't even access the bootloader) and then charging it fully. I'll let you know if that helps!
Seems as if it's helped quite a bit. I managed to boot up, deal with the phone for a few minutes and download a 65MB file over WiFi and when I unlocked I was still at 99%. Try re-calibrating.
Try removing handcent. I used on my g1 and out was a serious battery hog.
Sent from my Nexus One using XDA App

[Q] Android OS (kernel) Eating up Phone resources?

Hello,
Below is the message i wrote on the google support forum, but i havnt gotten a single reply yet, so i turn to you guys, in hope that you're able to help me
I have been experiencing this issue on and off for the past month or two. The issue being, that something called "Android OS", in the battery usage list, is eating up all my battery.
An example is, currently my phone has been unplugged for 1h30m(im down to 69% battery life remaining after i unplugged it at fully charged 100%) where the battery usage is ranked as follows:
Android OS: 72%
Display:18%
Wi-Fi: 2%
Cell standby 2%
Android System 2%
and so on and so forth.
The reason why i wrote (kernel) in the title of this question, is, that with the app "Powertutor" i have been shown that the main "app" or proccess eating up my battery, when this "Android OS" is eating up my battery as shown in the Battery Usage list, is the Kernel. Right now is shows the kernel is using 84,3% of the energy usage, Handscent has been using 3.1% and so on.
Often a reboot will bring the phone back to normal and the Android OS issue goes away for a while. A friend of mine, however, who has the exact same phone as I, has this issue, almost all the time, and a mere reboot doesnt seem to do the trick for him. His phone only lasts 6-7 hours tops, where it most of the time is just idle, and he isnt using the phone at all. While mine, when the Android OS issue isnt present, last up to 20 hours on a single charge, when i dont use it much.
When the Android OS process is eating up all the power, the phone grows really hot as well, and the difference is easilly felt. So when i feel that my phone is hot like that, i automaticly think "oh, time for a reboot".
I've been unable to find any info regarding this issue on the internet, and therefore I'm unsure what to do to fix it for real. Tried several factory setting resets on my friends phone, tried not installing many new apps, formatting the SD card, formatting the phone from bootloader (still testing his phone to see if this worked properly)things like that, but always, the issue returned, as on my phone where it only pops up once every other day.
Hopefully, someone will be able to help, or shred some light on the case.
Thank you,
Chris
Device: Nexus One
Carrier: AT&T Phone Version, Danish Carrier Bibob
Country / Language: Denmark / English
OS / Browser / build number (if applicable): Android 2.2 Froyo / Native / FRF91
Having Exchange sync on, by any chance? Try turning it off for a day, see if it helps.
Jack_R1 said:
Having Exchange sync on, by any chance? Try turning it off for a day, see if it helps.
Click to expand...
Click to collapse
"Exchange sync" being exactly what? The basic sync function on the phone that can be enables and disabled? The basic sync with your google account?
If thats the case, then yea im having that on all the time, so that it may sync whenever it wants to. The sync icon doesnt appear that often though, so cant see how this could be the reason why. But if you come back to me and tell me that this is what you meant, i will definetly give it a try
Thx for responding
No, Exchange sync means - MS Exchange account (in addition to your default Google account) that syncs calendar/email/both with Exchange server.
I'm guessing again that that is something extra you must install / set up, which i have not done. The only two accounts i have that can sync are my facebook and my default google account. I never sync the facebook one though.
Edit:
Update:
Reinstalled Watchdog Lite today, since my phone has been exceptionally sluggish, and SeePU graph keeps showing a full graph on cpu usage. I've had to reboot it twice today, in hopes of it returning to normal state. It does for a while, but then returns to a slow state where Android OS uses like 80% of the battery.
I made Watchdog Lite monitor the base android processes as well, and right now it keeps warning me that the "Base System", "Linux Process" uses up 89,6% of the CPU and 10,3MB of RAM, while nr 2 on the list is Android System, Foreground, with 3,8% and 27 MB.
I feel like the state of my phone is worsening, and I'll prolly do a full factory reset(again)/format of everything within a few days if i cant find the root of the issue this time around.
Please help I love my phone and i want it to be healthy again.
chris6647 said:
Hello,
...
Click to expand...
Click to collapse
"OS" is an abbreviation for "Operating System". That means ALL of the background stuff that eats battery and CPU time that isn't attributable to a process or function easily understood by the typical user. This includes, yes, the Linux kernel, but also all the other background things that your phone does in order to continue functioning in a normal synchronized state...
Your phone has a CPU. The kernel has a process scheduler, which swaps different programs in and out of the CPU in order to make it look like it is running more than one thing at a time. Each clock cycle consumes some amount of the power from the battery, so if it assigns 10 cycles to process A, 10 cycles to process B, and then waits for 20 cycles for I/O synchronization, then HALF of the power consumed in those last 40 cycles (attributable to CPU) will be "Android OS". Clear?
lbcoder said:
"OS" is an abbreviation for "Operating System". That means ALL of the background stuff that eats battery and CPU time that isn't attributable to a process or function easily understood by the typical user. This includes, yes, the Linux kernel, but also all the other background things that your phone does in order to continue functioning in a normal synchronized state...
Your phone has a CPU. The kernel has a process scheduler, which swaps different programs in and out of the CPU in order to make it look like it is running more than one thing at a time. Each clock cycle consumes some amount of the power from the battery, so if it assigns 10 cycles to process A, 10 cycles to process B, and then waits for 20 cycles for I/O synchronization, then HALF of the power consumed in those last 40 cycles (attributable to CPU) will be "Android OS". Clear?
Click to expand...
Click to collapse
Alright, I was wondering exactly what it meant when it just said Android OS, just that seemed like quite a broad description.
But what your saying is that it may be other applications that is actually eating up the power, just the kernel assigning the power to the program, and therefore the Battery Usage shows the kernel/Android OS as the culprit?
If its the case that its an app then, that through the kernel is triggering the usage that drains my phone, then how come my friend had this issues with an almost "naked" phone? He had installed just a few apps and still ran into this issue.
Am i understanding what you're telling me correctly?
chris6647 said:
Alright, I was wondering exactly what it meant when it just said Android OS, just that seemed like quite a broad description.
But what your saying is that it may be other applications that is actually eating up the power, just the kernel assigning the power to the program, and therefore the Battery Usage shows the kernel/Android OS as the culprit?
If its the case that its an app then, that through the kernel is triggering the usage that drains my phone, then how come my friend had this issues with an almost "naked" phone? He had installed just a few apps and still ran into this issue.
Am i understanding what you're telling me correctly?
Click to expand...
Click to collapse
It's not normal, something is causing it. Most likely some poorly written app or some other weird thing is causing the "Android OS" (which I assume is likely the virtual machine itself) to do bad things.
khaytsus said:
It's not normal, something is causing it. Most likely some poorly written app or some other weird thing is causing the "Android OS" (which I assume is likely the virtual machine itself) to do bad things.
Click to expand...
Click to collapse
Today the linux process "init" has been hogging up all my phones resources, as in 77%+ of all the CPU usage :/
Was wondering if rooting my phone and installing/ flashing some custom rom would solve the issue for sure? Or should I send the phone back to the states for at checkup or repair? (dont think this is needed but now I ask anyway)
Is there an app that could track down exactly what is sucking my phone dry? Cus all that I've found are those broad references or processes :/
Thx for all your responses
Same problem here:
http://forum.xda-developers.com/showthread.php?t=826507
http://www.google.mw/support/forum/p/android/thread?tid=7da0c666e8ffbc36&hl=en
Seems like there is no solution available yet...
chris6647 said:
Today the linux process "init" has been hogging up all my phones resources, as in 77%+ of all the CPU usage :/
Was wondering if rooting my phone and installing/ flashing some custom rom would solve the issue for sure? Or should I send the phone back to the states for at checkup or repair? (dont think this is needed but now I ask anyway)
Is there an app that could track down exactly what is sucking my phone dry? Cus all that I've found are those broad references or processes :/
Thx for all your responses
Click to expand...
Click to collapse
There is no solution, because you can't track the app that is causing the system to hang.
You can uninstall all the latest installed/updated apps and install them one by one, using Titanium - and that'll pinpoint the offender.

[Q] My phone keeps dying!

In the last week or so I have picked up my phone three times and it has been dead.
The power button doesn't turn it on again.
I have to take the battery out and then restart it.
I'm running a rooted 2.35 JVT.
I have nothing untoward running ...
Settings
Sense analogue clock
DRM content
Software update
SnsService
Google Play Store
Samsung keypad
Apart from Angry Birds, there's almost nothing else, and nothing new for months except Bad Piggies.
deanbilly said:
In the last week or so I have picked up my phone three times and it has been dead.
The power button doesn't turn it on again.
I have to take the battery out and then restart it.
I'm running a rooted 2.35 JVT.
I have nothing untoward running ...
Settings
Sense analogue clock
DRM content
Software update
SnsService
Google Play Store
Samsung keypad
Apart from Angry Birds, there's almost nothing else, and nothing new for months except Bad Piggies.
Click to expand...
Click to collapse
Could it be a dead battery?
otherwise, tried to wipe and (re)flash a rom?
The battery is fine, and the ROM has been there for well over a year with no problems.
Finding the root cause of battery drain...
deanbilly said:
In the last week or so I have picked up my phone three times and it has been dead.
Click to expand...
Click to collapse
There are a number of standard steps to run through to find the root cause of battery problems, assuming the drain is caused by the OS or apps and not actually due to a physically failing battery.
I have been tracking a few battery issues myself recently and this is what I have learned from doing some reading on XDA:
There are two free apps on the app market that are typically used to diagnose battery problems:
Better Battery Stats
CPU Spy
I would recommend installing both apps. The third place to look is in the battery details in the system settings...sorry I can't remember what they look like on Gingerbread because upgraded to Jelly Bean a couple months ago, though I do remember there was less information in the stock battery info on Gingerbread.
IF you are not, indeed dealing with a physically dead battery, then the root of your battery drain is most likely caused by a background process or app that is keeping the processor in a partially active state even though the screen is turned off and one would assume the phone should not be using any power.
Android OS will automatically change the running speed of the processor in the phone based on the demand of the system. If only a few background tasks are running and updating information the speed might be 200 or 400 Mhz. If the system is running full out servicing a graphic intensive game the processor will likely be running at the full 1000 MHz speed. The speed of the processor will directly effect the battery drain.
The expectation is that when we turn the display off (not power down, just put the phone to sleep) the processor should need fewer resources and slow down, tending towards a state known as "Deep Sleep". At this point the processor us using very minimal amounts of power. Any app or process that is active in the background will prevent the processor from getting to Deep Sleep. The CPU spy app will allow you to check how much time the phone runs at various speeds. Once you install it and run it, then reset the timers in the menu and turn your screen off for about 10 or 15 minutes. Then 'refresh' the timers. Normally, you should see most of the time accumulated in Deep Sleep. There are standard background tasks such as syncing with the cell tower, updating time, mail, checking alarms etc. That will engage the processor momentarily but they should be relatively short compared to the deep sleep time. In my case, an errand process was keeping my phone at 100Mhz constantly preventing deep sleep.
Once you know that something is keeping the phone awake in the background, you can use Better Battery Stats to narrow down which process or app it is the cause. This app allows you to track the individual processes that are consuming the most time and preventing 'wakelocks'. Wakelocks are essentially an app preventing the sleep state and are very well explained in this post: http://forum.xda-developers.com/showthread.php?t=1827676
The battery info in the system settings can also be used to give clues though again, I can't remember how much detail was included in Gingerbread..
If your problem only started happening recently, then it could be a new app that you installed recently, a feature or setting you changed recently or possibly a recent update to an app that was already installed. Try to think back at any recent events that could have triggered a change in the system.
Common problem apps I have read about are:
- Facebook - seems to be bad at using lots of background processor time. (Don't run this app but reading several posts shows its a processor hog)
- Google Apps that sync - Gmail, Chrome (syncs browser history, tabs etc.), Google location stats.
The wakelocks link goes into a great deal of detail and is hugely valuable in nailing your issue down.
Good Luck, let use know via a post if you find the root cause...
Sorry, maybe I wasn't clear about it being 'dead'.
The battery is 100% or thereabouts, no problems ever with the battery.
The phone looked as though it was turned off, but wouldn't turn on again with the power button.
I have to take the battery out and put it back again, then it starts on the button.
I've cleaned the contacts, and it still happened.
User error.
Sent from my GT-I9100 using xda app-developers app
To me, it sounds more like a rogue process messing up power managing or response, but it's hard to tell what it could actually be.
For instance, you might come a cross a game that leaves your phone locked in max cpu frequency, draining the battery without explanation.
If it was me, I'd re-flash the rom from Odin, perhaps with an sd card wipe too.
Sent from horseback.

What could cause EXTREME lag? (30-second delays)

My Moto X randomly started lagging heavily. It's unbearable.
It's not just a little bit here and there, the entire system is EXTREMELY LAGGY. It takes 30 seconds for the device to register a touch or perform an action.
I have root + stock ROM + gravitybox + very minimal third-party apps.
What the hell is going on?
Download an app that keeps track of CPU and RAM usage for each app. One of your apps may be keeping one or both of those at close to 100% usage and slowing it way down.
Sent from my XT1049 using Tapatalk
DonDizzurp said:
My Moto X randomly started lagging heavily. It's unbearable.
It's not just a little bit here and there, the entire system is EXTREMELY LAGGY. It takes 30 seconds for the device to register a touch or perform an action.
I have root + stock ROM + gravitybox + very minimal third-party apps.
What the hell is going on?
Click to expand...
Click to collapse
Many things could cause it. Backgrounded app crashing over and over (loop), malware (very unlikely), weird software conflicts, perhaps you froze an app that the system is trying to wake non stop, etc. Might be faster just to backup, RSDlite and restore. Titanium Backup and Ultimate Backup make it very easy with batch backups/restore. 2 key inputs backs up all your apps and 2 restores them lol. It's ridiculously easy
Also make sure you're not running battery saving mode, I imagine that caps your max clock speed to a lower value although it shouldn't cause THAT big of a performance hit.
Apps like BetterBattery stats or GSAM can also show you what's hammering your battery in the background and occupying your CPU cycles. I would take a quick peak at those tools first before I decide how to approach the situation.
What's happening is some app or software conflict is polling (sending commands to) your CPU non stop so when you interact with your phone each key press/swipe/action is put into what is now a long queue for the CPU to process it. Kind of like a lineup at a coffee shop in the morning, you wanna get in and out fast but they gotta serve the people in front of you first.
scorpion667 said:
Many things could cause it. Backgrounded app crashing over and over (loop), malware (very unlikely), weird software conflicts, perhaps you froze an app that the system is trying to wake non stop, etc. Might be faster just to backup, RSDlite and restore. Titanium Backup and Ultimate Backup make it very easy with batch backups/restore. 2 key inputs backs up all your apps and 2 restores them lol. It's ridiculously easy
Also make sure you're not running battery saving mode, I imagine that caps your max clock speed to a lower value although it shouldn't cause THAT big of a performance hit.
Apps like BetterBattery stats or GSAM can also show you what's hammering your battery in the background and occupying your CPU cycles. I would take a quick peak at those tools first before I decide how to approach the situation.
What's happening is some app or software conflict is polling (sending commands to) your CPU non stop so when you interact with your phone each key press/swipe/action is put into what is now a long queue for the CPU to process it. Kind of like a lineup at a coffee shop in the morning, you wanna get in and out fast but they gotta serve the people in front of you first.
Click to expand...
Click to collapse
I've frozen a bunch of apps and it's been fine for months.
I also turned on CPU updates from developer options to see if anything is bogging it down. I don't see anything in battery stats either.
I wiped cache and dalvik cache and now it's fine. I've never had something like cache build-up cause this much of a problem before. Weird.

Categories

Resources