Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,943 Members 52,920 Now Online
XDA Developers Android and Mobile Development Forum

[Q] More info on the Android OS bug. Suspend process , wakelocks and battery life.

Tip us?
 
saejin2000
Old
#1  
Member - OP
Thanks Meter 6
Posts: 34
Join Date: Jan 2011
Default [Q] More info on the Android OS bug. Suspend process , wakelocks and battery life.

Hello all,

I first posted this in Q&A on the home forum. There doesn't seem to be any interest so I thought I'd post it here again. Below is what I wrote on the original post.

"If you’ve been supremely annoyed with the AOS bug like I have , here’s some interesting information I’ve found (Did a search and it appears no one else has found this yet). It’s a paper written (in 2010)by Rafael J. Wysocki which touches deep into the subject. What I hope is that it will help some developers understand this bug and ultimately integrate a work around / fix as soon as possible. Hopefully this will help some users understand what is going on with their phones as well.

I have and Epic 4g Touch and all the ROMS I’ve tried have this bug but according to the article, looks like a kernel problem. My suspend / events/0 processes runs for a long time, eating up cpu and I don’t have it as bad as some people but thought it's worth mentioning.

Basically what I get from the paper is that…
1. The suspend (and by association the events/0 process) process is Google’s implementation of a power management system, an add on to the Linux Kernel
2. That the wakelock / suspend feature is , to make a long story short , not working the way it’s supposed to.
3. “Poorly” written apps, or apps that are written without the inner workings of how suspend /wakelocks work, will trigger this bug. This can be ANYTHING.
4. Supposedly, kernel version 2.6.37 will fix this. The Epic 4g Touch kernels are all .35 as far as I know which explains the fact that so many Epic 4g Touch owners complain about this.

Would love for the smarter than me people to give their take on this?

Since this is my first post, it won't let me post a link. Do a google search for Rafael Wysocki suspend_blockers.pdf and it should be the first link that shows up."

Hopefully there's more interest here!
The Following User Says Thank You to saejin2000 For This Useful Post: [ Click to Expand ]
 
Danial723
Old
(Last edited by Danial723; 10th February 2012 at 08:50 PM.)
#2  
Account currently disabled
Thanks Meter 240
Posts: 1,916
Join Date: Dec 2011
Location: Anthony
http://systemsens.cens.ucla.edu/~cs219/lectures/Suspend-Blockers.pdf
sent from the near past
 
saejin2000
Old
#3  
Member - OP
Thanks Meter 6
Posts: 34
Join Date: Jan 2011
Danial, thanks for the reply. Not sure if it was intentional but that's not the document I was referring to. However it looks like useful info and simplifies some of the explanations and even uses the the document written by Wysocki as a reference so thanks for that.
 
saejin2000
Old
#4  
Member - OP
Thanks Meter 6
Posts: 34
Join Date: Jan 2011
Bump! for battery life lovers!!!
 
pcmanager
Old
#5  
Senior Member
Thanks Meter 38
Posts: 153
Join Date: Mar 2008
how do I check to see if this bug is causing battery drain on my phone. thanks!

Sent from my SPH-D710 using Tapatalk
 
saejin2000
Old
#6  
Member - OP
Thanks Meter 6
Posts: 34
Join Date: Jan 2011
Quote:
Originally Posted by pcmanager View Post
how do I check to see if this bug is causing battery drain on my phone. thanks!

Sent from my SPH-D710 using Tapatalk
If you go to Settings, About Phone, Battery usage, you'll see "Android OS" take an unusal amount of battery time. Mine varies from 25-80%, some others I've read, consistently get 80%. You should be running on battery for a while before you check this since if you've only been on battery for a few hours, that stats may be misleading.

A more precise way is also to download the free Battery monitor Widget, and in the statistics section, you'll see the processes "suspend" and "events/0" take hours of usage when it shouldn't. You also may see *wakelock* take up hours of time.

Some dwho have it bad, download watchdog, and monitor on the fly, which processes go over a certain amount of % usage. If your batter drains quickly, suggest this route to confirm its suspend and events/0.
 
pcmanager
Old
#7  
Senior Member
Thanks Meter 38
Posts: 153
Join Date: Mar 2008
thanks for all those great infos. my android os is usually under 10 percent after several hours of use so I don't think that is buggin me. Could you explain exactly what a wakelock is? I know I could use the search button but the info you provide here in this thread might help a lot of other people trying to resolve battery drainage issues. Thanks!

Sent from my SPH-D710 using Tapatalk
 
faceyourfaces
Old
#8  
faceyourfaces's Avatar
Senior Member
Thanks Meter 21
Posts: 130
Join Date: Feb 2012
Location: New York
Quote:
Originally Posted by saejin2000 View Post
Hello all,
Since this is my first post, it won't let me post a link. Do a google search for Rafael Wysocki suspend_blockers.pdf and it should be the first link that shows up."
I'm assuming you were talking about this site, which was the second search result:
http://lwn.net/images/pdf/suspend_blockers.pdf

As a side note, my Android OS is at 7% of my battery usage right now.
 
saejin2000
Old
#9  
Member - OP
Thanks Meter 6
Posts: 34
Join Date: Jan 2011
Quote:
Originally Posted by faceyourfaces View Post
I'm assuming you were talking about this site, which was the second search result:
http://lwn.net/images/pdf/suspend_blockers.pdf

As a side note, my Android OS is at 7% of my battery usage right now.
May I ask,

1. How long your phone is on battery for?
2. Kernel Version?
3. ROM?

Would love to be @ 7% for Android OS!
 
pcmanager
Old
#10  
Senior Member
Thanks Meter 38
Posts: 153
Join Date: Mar 2008
1. How long on battery 1:15
2. Kernel Version EL29
3. ROM StrongSteve blue, Odex
4. Android OS 3%


I will let you know what the OS % is at the end of the day before the battery dies ......

Would love to be @ 7% for Android OS![/QUOTE]



Sent from my SPH-D710 using Tapatalk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes