4.2 clock app uses cpu in background - Nexus 4 Q&A, Help & Troubleshooting

Hi, I have an issue with the stock Android 4.2 clock app and its alarms.
I have an unrooted Nexus 4 running stock 4.2.2. The clock app usually stays in background, inactive and using 0% CPU, measured with apps such as SystemPanelLite or Usage Timelines Free. However, when setting an alarm, stopping it and exiting the app, the app stays in background but consumes between 1% and 5% cpu, when should be consuming 0%, being supposedly inactive. It doesn't prevent the phone from going into deep sleep mode, but when awake, the app wastes some battery, unless you kill it. It only uses CPU after you stop the alarm, not while waiting for it or after using the timers. After clearing the app data, the issue still exists.
Does this happen to any of you? I wonder if it is an issue with my phone ot it is a bug of the app.
Thanks.

BTW, it also happened in 4.2.1. Doesn't happen with other alarm apps.

Have you noticed significant battery drain due to this? If not don't worry about it

Michealtbh said:
Have you noticed significant battery drain due to this? If not don't worry about it
Click to expand...
Click to collapse
I haven't quantified it, but I guess it will cause a small battery drain. But it's something shouldn't happen at all, and if it happens to everyone it's a bug that should be fixed, well behaved apps don't do this.
For now I have switched to another alarm app that doesn't have this issue.

Related

Really Bad Battery Problem. Help.

past 2-4 days.... my nexus just dies suddenly with the battery drained. checking history with system panel shows that the cpu usage just suddenly shoots up to 100%! and i dont know what app is causing it.
just updated locale and extended controls + a lot of other apps. but my main main suspects are locale and extended controls (since EC posted that they are having problems with the update on the nexus)
any ideas? any other apps i could use to target and isolate the rogue app that drains my battery?
get a task manager and see ?
also, it may just be time for a new battery. ebay. $13 shipped, 2400 mah
antikryst said:
past 2-4 days.... my nexus just dies suddenly with the battery drained. checking history with system panel shows that the cpu usage just suddenly shoots up to 100%! and i dont know what app is causing it.
just updated locale and extended controls + a lot of other apps. but my main main suspects are locale and extended controls (since EC posted that they are having problems with the update on the nexus)
any ideas? any other apps i could use to target and isolate the rogue app that drains my battery?
Click to expand...
Click to collapse
System Panel HAS a history, and you can see which apps are using CPU, so have you done that? Is the phone getting hot? It would if the CPU was running 100%. And even at that, it wouldn't immediately die, I've never exactly tried to see how long 100% cpu utilization takes to drain the battery but I'd have to guess it's at least 2-3 hours.
khaytsus said:
System Panel HAS a history, and you can see which apps are using CPU, so have you done that? Is the phone getting hot? It would if the CPU was running 100%. And even at that, it wouldn't immediately die, I've never exactly tried to see how long 100% cpu utilization takes to drain the battery but I'd have to guess it's at least 2-3 hours.
Click to expand...
Click to collapse
seems fine at first then when i notice its hot... it is already about to restart. couldnt even get to check the app usage on system panel. after reboot... the app usage in system panel goes away. just checked now.. nothing is eating the battery up according to system panel.
guess the rogue app just turns on and eats up all the juice at some point in time. weird.
khaytsus said:
System Panel HAS a history, and you can see which apps are using CPU, so have you done that? Is the phone getting hot? It would if the CPU was running 100%. And even at that, it wouldn't immediately die, I've never exactly tried to see how long 100% cpu utilization takes to drain the battery but I'd have to guess it's at least 2-3 hours.
Click to expand...
Click to collapse
seems fine at first then when i notice its hot... it is already about to restart. couldnt even get to check the app usage on system panel. after reboot... the app usage in system panel goes away. just checked now.. nothing is eating the battery up according to system panel.
guess the rogue app just turns on and eats up all the juice at some point in time. weird.
Do you have SetCPU or anything else enabled with a performance-oriented governor or similar? That would likely keep the CPU pegged at the max without really doing anything.
Try disabling as many applications as you can until you can pinpoint which one is misbehaving.
Same Problem Here
My phone is experiencing atrocious battery life, and so is a friend of mine's. We are both on FRG83D, and it seems to have been the trigger for the problem. He is on AT&T and I am on T-Mo. My wife also has an N1 on FRG83D on T-Mo, but her phone is not having the problem. Her phone is set up very Vanilla, my friend and I have more system altering stuff on ours but nothing too wild, and none of the phones have ever been rooted. The two problem phones both use Launcher Pro and Extended Controls, I am not sure what else we have in common in our apps. I installed System Panel today to try and figure out what is happening, but I still can't find an obvious culprit. While the phone is sitting on the dock charging the CPU seems to be idling under 10% and when I pock it up and look at System Panel you can watch the CPU spike to the upper ranges if you scroll the screen but otherwise it is idling under 10%. The display is always the highest on battery usage and the worst app shows as System Panel, but that is basically what I expect to see. I am ready to start removing apps to see if I can get it back to normal unless anyone has an idea of how to better diagnose the issue.
I had this issue a while ago. "system" was taking up all my CPU, and I couldn't find any details about what was really causing the problem. I couldn't remember how I finally found out about the problem (I think I spent a night reading the logcat to see what was wrong). I couldn't even use the phone, it became horribly sluggish, and battery went flat in mere hours. Turns out, I had a bad picture or two in my SD Card, and the media indexer went in a loop trying to interpret the files. For some weird reasons, the same files got Windows Explorer "confused" too.
Try to remove or format your SD card and see if it's doing the same. I know it's more of an anecdote than a real known issue, but it won't hurt trying
oh wow i was hoping someone was having the same problem... left it overnight unplugged so far so good. now im really beginning to think its extended controls. took out the widget and replaced it with the stock one for now.
IDLING at 10% CPU usage??? Mine idle at 0% if nothing is active. Average 3% over time.
You guys should watch and see what's using hte most CPU, SystemPanel can do it if you look at the history (free for a week or 10 days or something, or buy it to keep the function), but also look at Spare Parts, you can install it from the market. It gives you visibility to a few more Android settings/info menus which you can see which apps are keeping the system awake etc, it can help pinpoint what's going on.
Something very bad is happening. When you all figure it out, report back.
When I look at system panel the little CPU circle graph stays at 100% for the most part. I don't understand if its accurate.
Sent from my Nexus One using XDA App
Do you have the app 'Extended Control' installed? The last update is very buggy and is causing bad battery life and broke the camera app on the N1. Check comments on the market. They are working on a fix.
Sent from my Nexus One using XDA App
Looks like Extended Controls
I did some testing and Extended Controls does appear to be the culprit. Dev seems to be aware, hopefully they get it sorted.
Edit-Overnight and battery life is back to normal with Extended Controls uninstalled. I didn't suspect it at first because they had already released an update after FRG83D, but apparently it was broken worse than they knew. I hope they fix it soon, I like the app.
msavic6 said:
When I look at system panel the little CPU circle graph stays at 100% for the most part. I don't understand if its accurate.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
It obviously should not sit at 100%, look and see what app is using CPU, it ain't rocket science.. Mine idles around 3% with my apps, mainly K9 and Tasker, weather etc..
Step 1: Call HTC's exclusive Nexus One Phone number
1-888-216-4736
Step 2: Tell the rep your battery isn't holding charge. (Possibly tell him your earphones blew as well, if you lost them like I did )
Step 3: Wait 3 days for the battery (and headphones?) to make it to your door.
You don't even have to ship your old battery back!
Step 4: ???
Step 5: PROFIT!

Horrible battery life out of nowhere

So all of a sudden my battery life is absolutely horrible. The other day I hadn't even touched the thing after taking it off the charger 5 hrs earlier and it was at 45%. As far as I know nothings changed besides updating Apps... Could it be one? If so, how do I figure out which? I don't use facebook and don't have any Apps running in the background, at least they aren't showing up in the status bar. Any suggestions?
Sent from my Nexus S 4G using XDA App
What is Battery Status showing?
I had Facebook go nuts the last few days and the new update yesterday seems to spend much less time in Facebook once I was able to access to turn Notifications and auto refresh off.
Likely is an app you can disable all suspect apps in App info on ICS if you are running an ICS ROM on your Nexus S (each app at a time disable) and see if Battery improves and narrow down which specific app is the issue. If you are on 2.X then you may want to use an App like Titanium Backup to freeze a suspect app and see how battery life goes the rest of the day.
Under settings? Shows display at 65% and several others with minimal usage, less than 7%. I am not using ics yet. I don't use facebook so I know that's not the problem.
I know about freezing Apps in titanium but how do I narrow down the suspect list? Right now it's all of them.
Sent from my Nexus S 4G using XDA App
Can you post a breakdown of, say, the top 10 apps and their usage from the battery usage screen?
OR
If you can, take a screenshot with your phone. If youre running CM or other modded roms, you may already have the option in the power menu. If not, there's plenty of apps that will take screenshots, assuming you're rooted.
It may be a recently installed app hogging the CPU clock
Try installing app like SetCPU (No need to have a rooted phone to track CPU load)
Check if the CPU runs 1000 MHZ constantly. It should be 100 when idle.
If so, try un-istalling the latest apps u installed one by one and ypu can detect the faulty app. Including recently updated apps.
I recently noticed my battery life is horrible as well. The battery usage screen shows that Google Maps is taking up 45% of my battery!!!!
Last time I opened Maps was several days ago. It was also updated about a week ago; so it all lines up.
Spare Parts app will break down cpu/ram usage by application. Install it and check to see which app is out of control.

Severe Battery Drain from "Android OS"

Anyone else having this problem? All the sudden Android OS is taking a ton of battery, killed half my battery overnight while the screen was off. Anyone have any of these problems?
Android OS is too general to say what is causing the wakelock. Use an app that can see which process is causing the wakelock directly and you will know what the problem is.
waltthizzney said:
Anyone else having this problem? All the sudden Android OS is taking a ton of battery, killed half my battery overnight while the screen was off. Anyone have any of these problems?
Click to expand...
Click to collapse
My android os consumes 70% of my battery. Tried better battery stats, but I don't see any wake locks
Sent from my Nexus 4 using XDA Premium HD app
for what it is worth, it lasts forever in airplane mode...
waltthizzney said:
for what it is worth, it lasts forever in airplane mode...
Click to expand...
Click to collapse
Then you definitley have an app or two that is causing it. Try CPU Spy (let's you know if you get deep sleep or not) and see if that helps any. I hate battery drain so best of luck in solving your battery drain issue.
Since I've upgraded to 4.2 roms on all my devices I've noticed this too. Normally, Maps is the culprit causing a "normal" wakelock. Google +, Latitude, Google Now, etc. This is just the way Google operates now & the biggest difference between 4.1 & 4.2. I've taken to disabling Location unless I'm needing GPS service. It checks your location every couple minutes it seems.
I've had a situation you describe a few times caused by media storage. It keeps scanning the SD card. Sometimes a reboot helps but mostly I've just changed roms instead of chasing it. Better Batt Stats should show it somewhere. Keep looking, look in "alarms". Also you might try GSam Battery Monitor. That app has come a long way lately & also helps finding battery sucking sources.
Sent from my Nexus 10 using Tapatalk 2
For me it was Viber. After deleting it I get almost no battery drain over night. Maybe 1% in 8 hours...

Battery drain on nexus 4 since yesterday

So, yesterday I noticed a sudden battery drain on my nexus 4. After checking battery it showed that AndroidOS takes over about 50% of the battery usage. It also showed that time awake was pretty much the same as the amount of time since I unplugged the phone, even though I kept my phone in sleep mode for the most of the day. After some research I downloaded better battery stats and it showed that from the moment I turn the screen off a process called suspend_backoff runs pretty much the entire time. Eventually I got it down to wifi. If I turn off wifi there are no processes running after the screen is turned off (or if there are they are 30 seconds tops), but the moment I turn wifi on suspend_backoff runs pretty much the entire time screen is off. I tried removing all of my apps, as well as doing factory reset but nothing helps. The moment I turn wifi ON this suspend_backoff consumes pretty much all the time during screen off period. Is anyone experiencing anything like this ? I have 4.2.2 on the phone and I havent' seen this extreme drain until just yesterday.
I experience the samething. Android OS would drain as much as the screen time.
I narrowed it down to the suspend_backoff. But the weird thing is that when i'm at home on my home wifi, suspend_backoff doesn't seem to drain anything at all. But when I'm at school, suspend_backoff kicks in.
Anyone help?
hihihoho said:
I experience the samething. Android OS would drain as much as the screen time.
I narrowed it down to the suspend_backoff. But the weird thing is that when i'm at home on my home wifi, suspend_backoff doesn't seem to drain anything at all. But when I'm at school, suspend_backoff kicks in.
Anyone help?
Click to expand...
Click to collapse
how did you narrow it down? Im having the same problem!
This is caused by a kernel wakelock. A bad mobile connection make battery drain worse... using WLAN nearly fixes this problem.
Thought this problem has got fixed in 4.2.2, at least battery life got improved and the wakelock reduced.
If it is appearing since yesterday, it is triggered by a app often waking the phone up using mobile data (that's why fixed with WLAN) and prevent the phone from getting into deep sleep as fast as it should.
hope i could help.
I use Greenify to hibernate every single user installed apps, then I release them one by one to see which one cause suspend backoff. But suspend backoff still occurs. So I think it's the kernel itself.
AW: Battery drain on nexus 4 since yesterday
hihihoho said:
I use Greenify to hibernate every single user installed apps, then I release them one by one to see which one cause suspend backoff. But suspend backoff still occurs. So I think it's the kernel itself.
Click to expand...
Click to collapse
as i said before, an app needs data, so it starts callung the kernel wakelock... this one causes tje drain, not the app itself
Sent from my Nexus 7 using xda app-developers app
hihihoho said:
I use Greenify to hibernate every single user installed apps, then I release them one by one to see which one cause suspend backoff. But suspend backoff still occurs. So I think it's the kernel itself.
Click to expand...
Click to collapse
Yeah, definitely not user apps. I did full reset on the phone to factory settings, no user apps. Even tried disabling Google Play and Google store after the reset. Still the same. The only thing that gets rid of it is disabling WiFi.
hihihoho said:
I experience the samething. Android OS would drain as much as the screen time.
I narrowed it down to the suspend_backoff. But the weird thing is that when i'm at home on my home wifi, suspend_backoff doesn't seem to drain anything at all. But when I'm at school, suspend_backoff kicks in.
Anyone help?
Click to expand...
Click to collapse
When did you start noticing this ? Has it been for a while or just recently ? I first noticed it yesterday (had the phone for a bit over a month now, didn't see any issues until just yesterday)
hihihoho said:
I use Greenify to hibernate every single user installed apps, then I release them one by one to see which one cause suspend backoff. But suspend backoff still occurs. So I think it's the kernel itself.
Click to expand...
Click to collapse
What is the difference between greenify and limit background apps in developers options?
AW: Battery drain on nexus 4 since yesterday
stop discussing, use search instead... http://forum.xda-developers.com/showthread.php?t=1999368
like i told you 3times now.... it's the wakelock
Sent from my Nexus 7 using xda app-developers app
indoh said:
stop discussing, use search instead... http://forum.xda-developers.com/showthread.php?t=1999368
like i told you 3times now.... it's the wakelock
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Yeah, it's clear that it's the wakelock. What's not clear is why. Also it's not the msm_hsic_host that the forum link you sent refers to. I don't have a problem with msm_hsic, that one barely takes any time during the day (maybe 30 seconds during several hours of standby). The wakelock causing this particular issue is "suspend_backoff" wakelock which supposedly happens when there is a sequence of sleep/wake calls too close together so the system decides to keep it awake. I was unable to find what exactly is causing the issue, even after restoring to the factory settings I kept seeing the same problem.
Anyway, I was able to "resolve" it by installing JuiceGuard app and setting it so it disables wifi when the screen is off. wakelock is gone now and my battery usage is back to normal.
I only get the suspend backoff wake lock when I'm connected to the university Wifi. When I'm at home, everything is fine, no suspend backoff. So my guess is that the Wifi encryption at university is different and causing a succession of close "awake" and cause wake lock.
I did factory reset like 3 times and it still there.
I'll try disable Wifi on Monday and see how it goes.
Same here, when wifi disabled the wakelock doesn't occur.
I have tried almost all of the kernels and non of them seem to help.
hihihoho said:
I only get the suspend backoff wake lock when I'm connected to the university Wifi. When I'm at home, everything is fine, no suspend backoff. So my guess is that the Wifi encryption at university is different and causing a succession of close "awake" and cause wake lock.
I did factory reset like 3 times and it still there.
I'll try disable Wifi on Monday and see how it goes.
Click to expand...
Click to collapse
Interesting... Maybe it is encryption. One thing with my Wifi is that it doesn't use password, but MAC list instead. It may indeed be an issue with different wifi encryption types.
OP do you have maps 6.14 on your phone? Mine kept switching on location reporting for a while and it woke my phone 344 times last night. I've been struggling with the same wake lock issues. I'm going to recharge (again) with maps disabled and see if that helps.
Sent from my Nexus 4 using Tapatalk 2
Check your Google account sync settings... In settings
The clowns may have left you a lovely gift there without telling you or asking any kind of permission.
The latest Maps was giving me horrible battery drain, on WiFi. I'd sleep for six hours with a fully charged phone and wake up with 10% left. it even enabled itself when. I disabled it in settings. I converted it to a user app by moving it to /data/app and greenified it. Seemed to have solved all of my issues with the suspend back off wake lock.
Download greenify
Sent from my Nexus 7 using Tapatalk 2
For some weird reason, I was also having serious battery drain suddenly since yesterday.
Turned out it was maps, and disabling Google network locations hugely increased battery life
Sent from my Nexus 4

Almost 100% Awake time draining my battery

My battery life had previously been fine. We had that last security update from AT&T and suddenly, my device is awake almost 100% of the time. Android OS is always at the top of my stats and awake time shows at 99%. I used the light version of Wakelock Detector (which doesn't require root) and it's not really showing anything, but I deleted all apps showing the most wakelocks anyway and I'm still at 99% wake time. I even took out my SD card to test that and it hasn't changed anything. I also disabled GPS to test and "awake time" still stayed at max.
I'm on the verge of wiping it, but I have already done that once to resolve other issues and I know there has to be a cause to all of this. Is anyone else experiencing this since the last update? Anything I haven't tried that someone recommends? I have not installed any new apps or anything.
One thing to note is that my drain is only around 1%/hr at idle, but I'm pretty sure the phone still shouldn't be awake almost 100% of the time.
1%/hr drain while idle means 4 days of standby i think you're fine
greyhulk said:
One thing to note is that my drain is only around 1%/hr at idle, but I'm pretty sure the phone still shouldn't be awake almost 100% of the time.
Click to expand...
Click to collapse
percussionking said:
1%/hr drain while idle means 4 days of standby i think you're fine
Click to expand...
Click to collapse
That doesn't change the fact that the phone is awake over 99% of the time. After a wipe, it's no longer going that and my idle drain is less. So, something was clearly wrong.
Sent from my SAMSUNG-SM-G935A using Tapatalk
Yeah, you're right if the behavior is different after resetting the phone. I was wondering if maybe Wakelock Detector might see certain features of the QC820 like AOD as applying a wakelock.

Categories

Resources