[rn3 Pro] Constant Awake & Screen On


MIUInewbie

Members
Jul 1, 2016
239
52
This is something that happens on whichever ROM I've tried. For a couple of days everything is great and then suddenly the phone shows constant awake and screen on, even of the phone is locked. You can see it on the attached screenshots, the blue line when the phone was awake with the screen on is actually from when the phone was locked with the screen off. After I wiped the dalvik and cache, it went back to normal. Anyone found a solution to this?
 

Attachments

  • Screenshot_2016-07-05-21-00-43-150_com.miui.securitycenter.png
    Screenshot_2016-07-05-21-00-43-150_com.miui.securitycenter.png
    70.3 KB · Views: 451
  • Screenshot_2016-07-05-21-00-33-005_com.miui.securitycenter.png
    Screenshot_2016-07-05-21-00-33-005_com.miui.securitycenter.png
    53.8 KB · Views: 427
  • IMG_20160705_210009.jpg
    IMG_20160705_210009.jpg
    240.3 KB · Views: 449
After I do a factory reset, the phone acts normally for 5-6 days. Then I have the constant awake and screen on. I have tried official global stable and dev roms and now I am using xiaomi.eu 6.6.30 rom, same thing happens on each of them so I think it's an app, a setting or something similar
 
I'd check to see what's keeping the device awake using BetterBatteryStats or Wakelock Detector. Either will do. Could be kernel related, could be app-related. Either way there's fixes for both but you need to know what it is first.

Someone else might be able to suggest better ways of doing this... but from the top of my head:

If app-related - you can either try disabling specific app autostarts using a variety of apps (such as System Tuner Pro... but I think MIUI has it baked in if I remember correctly - Settings > Permissions > Autostart) or alternatively, cap them using Amplify or NoWakeLock (one or other; both need the Xposed Framework). The latter option is needed if it's something that NEEDS to run but is holding a wakelock - i.e. a system component - you shouldn't disable it's autostart but you can set it to be killed in Amplify if it's hanging, keeping the device awake.

If it's kernel related, sometimes changing settings can help (i.e. double tap to wake is one that holds a wakelock often, turning it off fixes that) or in the worst case scenario, using terminal to outright disable the kernel wakelock function (usually eventX wakelock).

Find out what the wakelock is first, then go from there.
 
At the moment I don't have that problem since I did a clean install of 6.7.7 rom. If it happens again, I will post the wakelock log
 
  • Like
Reactions: Marko94
I have the awake problem again....
 

Attachments

  • Screenshot_2016-07-13-11-47-39-436_com.miui.securitycenter.png
    Screenshot_2016-07-13-11-47-39-436_com.miui.securitycenter.png
    61.4 KB · Views: 391
  • Screenshot_2016-07-13-11-47-26-184_com.miui.securitycenter.png
    Screenshot_2016-07-13-11-47-26-184_com.miui.securitycenter.png
    152.2 KB · Views: 430
  • Screenshot_2016-07-13-11-48-52-889_com.miui.securitycenter.png
    Screenshot_2016-07-13-11-48-52-889_com.miui.securitycenter.png
    106.4 KB · Views: 402
  • Screenshot_2016-07-13-11-47-30-800_com.miui.securitycenter.png
    Screenshot_2016-07-13-11-47-30-800_com.miui.securitycenter.png
    52.9 KB · Views: 414
  • Screenshot_2016-07-13-11-48-28-373_com.uzumapps.wakelockdetector.png
    Screenshot_2016-07-13-11-48-28-373_com.uzumapps.wakelockdetector.png
    135.3 KB · Views: 412
  • Screenshot_2016-07-13-11-48-12-912_com.uzumapps.wakelockdetector.png
    Screenshot_2016-07-13-11-48-12-912_com.uzumapps.wakelockdetector.png
    213.5 KB · Views: 359
  • Screenshot_2016-07-13-11-47-54-343_com.uzumapps.wakelockdetector.png
    Screenshot_2016-07-13-11-47-54-343_com.uzumapps.wakelockdetector.png
    237 KB · Views: 390
Same problem guys on a Xiaomi Redmi4!

No matter what rom I use, after one week awake(screen off) process shows up in betterbatterystats and eats 3%/hour battery! That's insane.