When my phone won't go to sleep, what is the best way to trouble-shoot what the problem and/or offending app is?

(In my case I am running CyanogenMod, and so I don't know if the solution will be the same or different than for stock Android)

  • What version of CyanogenMod? Commented Feb 21, 2011 at 9:01
  • Sorry - CM 6.1.0-DS
    – Mingo
    Commented Feb 21, 2011 at 11:24
  • 1
    In stock Android, there is a developer setting "never sleep when plugged in". Is that turned on?
    – ale
    Commented Feb 21, 2011 at 15:50
  • I couldn't find a similar option in CyanogenMod, but it could be there somewhere.
    – Mingo
    Commented Feb 22, 2011 at 8:29
  • 1
    The setting Al mentioned was found under Settings -> Applications -> Development on my Galaxy S until the 2.2.1 update, check there if you have it. Commented Feb 22, 2011 at 8:43

2 Answers 2


First, look at which apps are runnng (including services). Then use Titanium Backup to freeze on of those apps (exclude regular system apps/services, unless you've determined nothing else is the culprit) and see if your problem stops. If you haven't found the offender, un-freeze and try another.

  • Just out of curiosity, are there other apps like Titanium Backup that can freeze an app?
    – Mingo
    Commented Feb 22, 2011 at 14:58
  • I'm not sure. There are definitely other apps that do backups and uninstalls. So you could always back up the app, uninstall it, and restore it if it's not the problem. Of course, you can screw up your system if you mess with a system app (though not permanently as the device/filesystem/etc. will be fine). Commented Feb 22, 2011 at 15:07

When your phone wont go to sleep, check for wakelock using apps. Programs like "Wakelock detector" will help you to do that. Good luck!

Reference: Wakelock , Wakelock detector

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .