Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
jakeschweinz
Old
#1  
Member - OP
Thanks Meter 12
Posts: 67
Join Date: Apr 2011
Default [Q] Wakelock issues

hey guys, I've been having a lot of problems with what appears to be a partial wakelock from "android system" (according to Spare Parts) It says that my phone is running 100% of the time, even when the screen is off.

I do not have my background data on, nor do I have Facebook or Twitter set to auto sync. I've read every thread I could find on this, and tried every suggestion to no avail.

is anyone else having this problem, and possibly have any suggestions?

thanks in advance.
 
imnuts
Old
#2  
imnuts's Avatar
Recognized Developer
Thanks Meter 2382
Posts: 3,125
Join Date: Jul 2007
Location: West Chester

 
DONATE TO ME
Use adb logcat to look for the wakelock and see what is causing it. On the Fascinate with Froyo, GPS seems to cause a wakelock if left on.

Setup a Development Environment
Setup and Use the Android SDK
Stock Odin Restore files

You can find the answer to all of your questions right here. If that doesn't work, then try this or this
 
jakeschweinz
Old
(Last edited by jakeschweinz; 23rd May 2011 at 01:53 AM.)
#3  
Member - OP
Thanks Meter 12
Posts: 67
Join Date: Apr 2011
thanks for the quick reply. I'm getting things like this:

I/AlarmManager( 2421): mWakeLock.acquire(500);

I/Z7Service(23911): wakelock acquired: 1

any ideas? I hardly ever use my GPS, and I only use wifi when I need it.

EDIT: My phone had started going into deep sleep again, but stopped as soon as I put my phone in airplane mode. Maybe that has something to do with it? I've also been running more logcats and finding stuff in power manager service, things like:

W/PowerManagerService( 2438): type=PARTIAL_WAKE_LOCK 'AlarmManager'
active (mS=0) activeT=509
W/PowerManagerService( 2438): type=PARTIAL_WAKE_LOCK 'WaitingScreen
Off' active (mS=0) activeT=15
W/PowerManagerService( 2438): mPokeLocks.size=1:
W/PowerManagerService( 2438): pokeLock 1 'PhoneApp'
D/PowerManagerService( 2438): sendNotificationLocked on=false
I/PowerManagerService( 2438): release mScreenOffWakeLock
 
imnuts
Old
#4  
imnuts's Avatar
Recognized Developer
Thanks Meter 2382
Posts: 3,125
Join Date: Jul 2007
Location: West Chester

 
DONATE TO ME
Quote:
Originally Posted by jakeschweinz View Post
thanks for the quick reply. I'm getting things like this:

I/AlarmManager( 2421): mWakeLock.acquire(500);

I/Z7Service(23911): wakelock acquired: 1

any ideas? I hardly ever use my GPS, and I only use wifi when I need it.

EDIT: My phone had started going into deep sleep again, but stopped as soon as I put my phone in airplane mode. Maybe that has something to do with it? I've also been running more logcats and finding stuff in power manager service, things like:

W/PowerManagerService( 2438): type=PARTIAL_WAKE_LOCK 'AlarmManager'
active (mS=0) activeT=509
W/PowerManagerService( 2438): type=PARTIAL_WAKE_LOCK 'WaitingScreen
Off' active (mS=0) activeT=15
W/PowerManagerService( 2438): mPokeLocks.size=1:
W/PowerManagerService( 2438): pokeLock 1 'PhoneApp'
D/PowerManagerService( 2438): sendNotificationLocked on=false
I/PowerManagerService( 2438): release mScreenOffWakeLock
You'd have to scroll through and see if apps are properly releasing wake locks. The first couple lines above for the z7 service makes me think that it could be the ticker causing problems. Not sure why the phone app could create a lock and not release it if you put it in airplane mode, but anything is possible.

Setup a Development Environment
Setup and Use the Android SDK
Stock Odin Restore files

You can find the answer to all of your questions right here. If that doesn't work, then try this or this
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...