[Q] Logging Processes using CPU - Android Q&A, Help & Troubleshooting

Recently, out of sudden, something got wrong with my Android (on Xperia Arc). From time to time, when screen is blocked, something starts to turn on and off the screen. It keeps going like this forever (switching every few seconds, then staying on for few seconds and going blank again) until I unlock the screen. After I unlock the screen I cannot of course determine which process it might have been. On the other hand having screen switched half a day, drains the battery very quickly.
Therefore I am looking for an app, which can monitor and, what is most important, log in some file CPU load (not a total one but divided into processes). It doesn't have to be a task killer or battery optimizer. Just simple logger will do. Anyone knows such app?
Of course any other ideas how to deal with the problem will be much appreciated.

You can use cpu spy. Also looking up a logcat might help you see what's the problem.
Sent from my LG-P350 using xda premium

Related

[Q] High consumption of battery

Hello
My Razr Xt910 batteries consumption is high
For example i'm in bed for 7 hours , It consumes 20%!
Idle consumption is too high
i'm using 2G
wifi and... is off
I close all programs
changed ROM
and .....
But this problem exists
In your opinion, why is this problem?
May be a hardware problem?
Sorry for bad English
Thanks
There's an app called Watchdog Task Manager that can monitor your apps and phone processes. That might be able to help you pin point if you've got a rogue app.
My girlfriend had to swap out her first Razr for a similar problem. Her phone would not last her an entire day with very light use. Using Watchdog Task Manager I was able to find that the suspend process was hanging and causing the battery to drain very rapidly.
milkshed27 said:
There's an app called Watchdog Task Manager that can monitor your apps and phone processes. That might be able to help you pin point if you've got a rogue app.
My girlfriend had to swap out her first Razr for a similar problem. Her phone would not last her an entire day with very light use. Using Watchdog Task Manager I was able to find that the suspend process was hanging and causing the battery to drain very rapidly.
Click to expand...
Click to collapse
How do u see that?
Sent from my MZ601 using XDA Premium HD app
milkshed27 said:
There's an app called Watchdog Task Manager that can monitor your apps and phone processes. That might be able to help you pin point if you've got a rogue app.
My girlfriend had to swap out her first Razr for a similar problem. Her phone would not last her an entire day with very light use. Using Watchdog Task Manager I was able to find that the suspend process was hanging and causing the battery to drain very rapidly.
Click to expand...
Click to collapse
I installed the program but did not notice anything
Who can help me?
http://www.juicedefender.com/
If you were rooted you may get rid of some apps. Like if you dont use backup asst.
It always runs in the back round. I talked to a rep the other day that said just force stop it. I said duh but it will re start itself. Make a list of what you see is running in the back round and and we can figure what program it is to see if we can freeze or get rid of it. Ahh I see you tried different Roms. You can use and app like NoBloat freeze. What Rom did you use? There is more information we need and can go from there.
Edit: How to use , go to system ,apps and look at running. Do you have email setup? How often is that set to refresh for email. So many things to look at.
Install Watchdog and agree to the license.
Set the default monitor to aggressive using the pulldown menu.
Hit the menu button on you phone and go to preferences.
Click "CPU threshold" and set it to 20%.
Click "Polling interval" and set it to 1 minute.
Click "Real time polling interval" and set it to 5 seconds.
Where it says "Include phone processes" make sure that is checked.
Click and check mark "Monitor phone processes" and "Display all phone processes"
Click on "System process CPU threshold" and set it to 40%
Now Watchdog will monitor all your apps and processes and will alert you if anything is going over the thresholds you have set. You can see what the culprit is under the alerts tab in the main menu.
Also, by going into the CPU tab on the app main menu, if you check "real time CPU" you can monitor your CPU usage in real time yourself. Anything in cyan is a background app/process, white is for system processes, and green is for apps/processes in the foreground.
I still use this app quite a bit especially if I install a few new apps, although I run it with the CPU polling interval at 10 minutes and the System process CPU threshold at 50% in my everyday usage to minimize CPU usage.
The suspend process that was giving my girlfriend problems on her phone can be seen while in the CPU tab if you check "real time CPU." I believe it will pop up after your phone is unlocked but should afterward stop and not consume any CPU. On my girlfriend's old phone this would not be the case. The suspend process would hang and constantly alert through Watchdog that it was exceeding the percentage threshold.
I'm not sure if this will be of any help and I apologize if it does not but it did help me. Good luck.
blueis300 said:
If you were rooted you may get rid of some apps. Like if you dont use backup asst.
It always runs in the back round. I talked to a rep the other day that said just force stop it. I said duh but it will re start itself. Make a list of what you see is running in the back round and and we can figure what program it is to see if we can freeze or get rid of it. Ahh I see you tried different Roms. You can use and app like NoBloat freeze. What Rom did you use? There is more information we need and can go from there.
Edit: How to use , go to system ,apps and look at running. Do you have email setup? How often is that set to refresh for email. So many things to look at.
Click to expand...
Click to collapse
Thank you very much
Rom 2.3.6
Version: 65.1.40.XT910.AsiaRetail.en.03
I close all running programs
I even removed the SIM card
But ...
-------
Running:
Setting
My Music
Sticky Note
News (i dont use it)
Homescreen
Google Services
My Gallery
MOBiDIV keyboard
I dont have a gsm razr but the maxx cdma. Look at what the post above says and try it. What is the actual live of the battery after a day of use or how long does it last with normal usage?
blueis300 said:
I dont have a gsm razr but the maxx cdma. Look at what the post above says and try it. What is the actual live of the battery after a day of use or how long does it last with normal usage?
Click to expand...
Click to collapse
ok
About 20 hours
and phone idle consumption is high
Watchdog alert:
suspend
Linux Process
43.4%
What's this?
What should I do?
You should use SetCPU and underclock your CPU so it runs slower but provides better battery life.
Switch the governor to the regular hotplug instead of mot_hotplug and under advanced change the sampling rate to 30000, up threshold to 95, down threshold to 50. Also in profiles set up profiles for various circumstances so if you're sleeping, you can make it so that if the screen is off you're limited to 300/600 mhz and so on.
I was using the ondemand governor earlier and then I stumbled upon some descriptions of them where they explained hotplug as being very similar to ondemand but having the capability to switch off the second core if there is not enough workload which I believe ondemand doesn't allow you to do.
Yesterday, I was at 65% battery left after 9 1/2 hrs of mild usage (2 phonecalls, 100 sms, bit of im'ing, light browsing and a couple of emails). Had the profile set so that it would limit clock at 600mhz when my battery is under 90% and at 800mhz when its above 90%.
evonc said:
You should use SetCPU and underclock your CPU so it runs slower but provides better battery life.
Switch the governor to the regular hotplug instead of mot_hotplug and under advanced change the sampling rate to 30000, up threshold to 95, down threshold to 50. Also in profiles set up profiles for various circumstances so if you're sleeping, you can make it so that if the screen is off you're limited to 300/600 mhz and so on.
I was using the ondemand governor earlier and then I stumbled upon some descriptions of them where they explained hotplug as being very similar to ondemand but having the capability to switch off the second core if there is not enough workload which I believe ondemand doesn't allow you to do.
Yesterday, I was at 65% battery left after 9 1/2 hrs of mild usage (2 phonecalls, 100 sms, bit of im'ing, light browsing and a couple of emails). Had the profile set so that it would limit clock at 600mhz when my battery is under 90% and at 800mhz when its above 90%.
Click to expand...
Click to collapse
I do not think the problem is the cpu usage
I think the battery has problem
Help Me
My battery also drains very fast, I have no clue why but I will try to charge it 100% tommorow and see how long it will last.
Please somebody help me!
May be a hardware problem?
Milad._.R said:
Please somebody help me!
May be a hardware problem?
Click to expand...
Click to collapse
Try the app juicedefender and see if that helps? a longshot but maybe its worth.
20 hours out of your phone but is that moderate usage? Forget about idle time. Do you not get regular usage out of your phone?
i have a Moto razr my own , and never noticed how much the battery would last.
of course it won't concern me much , cause i already prepared my self for a lousy battery back up with a 4.3 inch display and dual core cpu!!
i got your back on this whole messed up battery fiesta thing buddy ,
i'm gonna charge my razr up , and see how it's battery gonna react , if it's as bad as your device , chances are , it's a pretty common problem on every xt910 units , and you don't need to be worry about a thing.
Try the app juicedefender and see if that helps? a longshot but maybe its worth.
Click to expand...
Click to collapse
I use this program but had no effect
blueis300 said:
20 hours out of your phone but is that moderate usage? Forget about idle time. Do you not get regular usage out of your phone?
Click to expand...
Click to collapse
It does not matter, because the unemployment in 7 hours, 20% is consumed
sorry for bad english!
Have a look on this guide ( the last post) http://www.droidforums.net/forum/droid-razr/182391-random-apps-running-help.html
Sent from my MZ601 using XDA Premium HD app
after reading a few tips on the forums, I did the following:
1. installed SetCPU (paid) and made a custom "profile" that, when I turn the screen off, it reduces the CPU activity to the minimum (300)
2. I installed an app called "2x battery" (free) which will kill my data when the screen is off... I have it set up to where it will briefly enable my data connection every 15 min. to check for emails/texts, etc., and I also have it set up to where, if I have an active data connection (i.e. pandora) then it will not disable the data during that period.
3. With the 2x battery it also doubles as a manual task killer... or you can also install "memory booster" (lite = free)
4. set my wallpaper background to black
with these things I have really noticed an increase in battery power... try them and see what you think!
---------- Post added at 09:46 AM ---------- Previous post was at 09:39 AM ----------
oh yeah, after you are at 100% on your battery and have unplugged it and plugged it back in a couple times and it still stays at 100, then reboot into recovery (while still plugged in) - go to advanced - wipe battery stats - reboot - unplug and run battery all the way down till it dies - charge up without unplugging. see if that helps, it will re-condition your battery.

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.

[Q] How to determine what is keeping Android from deep sleep

I have an HTC Rezound running Android 4.0.1, and I notice that it very rarely enters sleep mode, even after the screen has been off for a very long period of time.
Is there any way I can determine which apps are keeping the phone from entering sleep mode? ..or which app is waking it up constantly, whichever the case may actually be?
I have tried doing a logcat and just let it run for a while after turning the screen off, but I'm not quite sure what to look for in the results..
any help?
BUMP
Nobody knows?
look for the app Betterbatterystats, there are also tutorials on how to set it up here on XDA, i can't really tell you how to use it bec. Im not familiar with the app, i have it but rarely use it.

[Q] G3 gets really warm

Anyone know why my g3 gets really warm even when doing simple tasks like texting and basic web browsing. Ive restored I've also had the latest update I installed a different rom the only thing I haven't tried is aosp rom but I don't know how good that works. When I've looked in battery status or cpu apps there's nothing really using my resources it just warms up like if I was charging the battery I don't know if it's normal anyone have a clue?
Sent from my LGLS990 using XDA Free mobile app
Turn down your brightness and when your done with a app clear it from your recents. You could also go into g3 tool box and make it to when you long press something it totally closes the app. Just try to closes every single app when your done and also make sure to keep your ram down.
Closing every app when you're done is bad advice. Android isn't Windows. Android abhors a [memory] vacuum, and will simply keep reloading apps into unused memory to keep them available for rapid use. Background apps, with few exceptions, aren't really "running." They just in standby mode, ready to be activated when called upon, and use no cpu. Constantly killing and reloading apps uses more CPU and battery than just letting Android do it's thing.
If your device is running really warm when not doing much, it could be a hardware issues, it could be an app or process running out of control. GPS will heat up the phone when actually in use, but shouldn't have any impact otherwise. What's your battery life like? In the battery screen, what apps are shown as using the most battery?
My brightness is down and I don't really do much on My phone it starts getting warm when I open an app and I've used it for at least 5 minutes it gets warm gps is always off only things I have on is either wifi or data everything else is usually off
Sent from my LGLS990 using XDA Free mobile app
Your data may be the problem, lets say you set your phone to "lte only" mode. Then the phone has to try harder to get lte. So maybe try changing network mode(s).

Wifi Icon keeps turning to white and orange within seconds

Hi all,
I am getting a strange issue with my Google Play services and GCM_Reconnect wakelock.
My wifi icon keeps changing from white to orange within seconds and this creates lots of GCM_Reconnect wakelocks and eats my battery too much.
I tried to go deeper to see what exactly it's happening but other than watching few connecting and disconnected errors I couldn't find any relative helpful information to sort it out and searching didn't provide me any info about this specific issue too. I tried google as well as xda too.
If I disable my wifi, my phone is fine and these wakelocks doesn't occur anymore but as soon as I activate my wifi, these wakelocks come back and wifi icons start going from white to orange and white and then orange thus showing how aggressively my phone connects and disconnects with google servers.
I couldn't find a reason to this or how to sort it out, any help is greatly appreciated.
PS. I have removed every kind of restriction through Privacy guard but no positive result.
Thank you.
how did you get to the screen that shows the "Ping, Connect, Disconnect, Events"?
I'll explain something but you have to apply it to your situation.
These apps you can get that protect privacy, control wakelocks, control network aspects of apps, startups, processes etc etc that people claim to save battery are all, to put it in a reasonable term, crap.
They do exactly what they say they do but one thing that is never explained is that android is its own entity and will do what it does regardless of what anyone tells it to do, or not do.
An example of this would be, you run an app that changes the running status of another app. The problem is that android will always run the closed app and the app that was used to close the app will always use wakelocks to determine if the app is running or not. If it IS running the app closes it, android picks this up and runs it again so the app wakelocks and finds the app is running so closes it again. Rinse and repeat, you have a war going on in your phone!.
Android will automatically close unnecessary apps and apps you dont use or need over time. But it will ALWAYS FILL THE RAM WITH APPS. Android is natured for that.
So the be all and end all is to get rid of the apps that attempt to control your device as they are the ones responsible for the battery issues by causing app wars on your phone.
Beamed in by telepathy.

Categories

Resources