Phone randomly being kept awake all night by random apps - Xiaomi Redmi Note 5 / 5 Plus Questions & Answers

Every once a while (like once every 1-2 weeks), I go to sleep with 90% battery and wake up to a phone that's dead or close to dying (15-20%). Looking at battery usage says some app kept the phone awake all night (like 9 to 10 hours continuously).
Sometimes this app is "GetApps", sometimes "Media", sometimes "GMail". No pattern.
I have tried everything. Factory resetting, twice! Using debloat tool to remove all bloatware. Turning off auto system updates and auto system app updates. Absolutely nothing has worked.
I installed this app called 'Hidden Settings for Xiaomi' which exposes actual Android battery optimization settings menu. And in it, every single app has battery optimization disabled. Xiaomi's own stupid optimization is turned on and it is clearly not doing anything.
Any guidance? Or is my only option now removing crappy MIUI OS and install some other ROM.

Related

[Q] Battery and bootup problem

Something strange happened to my phone. One night I installed an app that can turn the phone into sleep mode instead of pressing the button at the uppermost right of it. I still have around 70+% battery by that time. The next morning, I was surprised that my battery is already out. I charge it but was stuck at the cyanogen logo. I removed the battery and tried to open it, this time the animation boot happened twice before finishing. I removed the app but noticed that my battery begun draining much faster than before. Just letting it on idle state will reduce it to 40% in 9 hours. The bootup problem is also present every time I boot the phone - it will get stuck at first at the logo,remove the battery, turn it on again where the animation will happen twice before the phone become usable.
Checking the phone usage, mobile standby and phone idle have the largest usage. I read some threads mentioning something about wakelock or something that prevent the phone from going to sleep. Checking the Spare parts battery history, only two things are present - Running (100%) and Screeon on (5.1%).
Any help or tips to know the real problem? Thanks
sinscythex said:
Something strange happened to my phone. One night I installed an app that can turn the phone into sleep mode instead of pressing the button at the uppermost right of it. I still have around 70+% battery by that time. The next morning, I was surprised that my battery is already out. I charge it but was stuck at the cyanogen logo. I removed the battery and tried to open it, this time the animation boot happened twice before finishing. I removed the app but noticed that my battery begun draining much faster than before. Just letting it on idle state will reduce it to 40% in 9 hours. The bootup problem is also present every time I boot the phone - it will get stuck at first at the logo,remove the battery, turn it on again where the animation will happen twice before the phone become usable.
Checking the phone usage, mobile standby and phone idle have the largest usage. I read some threads mentioning something about wakelock or something that prevent the phone from going to sleep. Checking the Spare parts battery history, only two things are present - Running (100%) and Screeon on (5.1%).
Any help or tips to know the real problem? Thanks
Click to expand...
Click to collapse
this will happen when install every crappy tweak **** - i'm not understand why users have to install extra apps for buttons
to help you something:
wipe your system, not the data - only if it doesnt work after wiping the caches.
than try to boot ... if its doesnt nrmal booting, reinstall the rom and do a full wipe. sometimes apps installing libraries in system.
^
I was thinking of reducing the usage of the hard button so I used it. Will resintallation of the ROM afefct my partition? I have a nandbackup before this problem happened, but I still do not have the partition by that time.
And how do you do it by the way? Just flash again the ROM? Thanks
Edit: Wiping the cache seemed to help. It doesn't stuck at the logo, but the animation still happens twice instead of once. Gonna observe the battery usage. Thanks.
100% running, that means your phone is not in sleep, but only with LCD off. Grab betterbatterystats([email protected]) and check your wakelocks.
Sent from my LG-P500 using XDA App
Based on the betterbatterystats, the gpslocationprovider is the culprit. But my gps apps are off and are not running any services. Any idea how can I stop it?
sinscythex said:
Based on the betterbatterystats, the gpslocationprovider is the culprit. But my gps apps are off and are not running any services. Any idea how can I stop it?
Click to expand...
Click to collapse
Off GPS ,on only when needed
Sent from my LG-P500 using XDA App
I copid a gpa.conf somehere in this forum. I replaced it with the originial and I'm currently observing whether it will return to normal. My gps apps are off, and both wireless and gps sattelites are disabled on my location & security tabs.
I'm planning on doing a restore to at least remove the boot up problem. But my last nandbackup was still before I partitioned my sd card and flashed dark tremor, and configre a2sdgui. If I do the nandrestore, do I have to disable or remove dark tremor and a2sdgui, or remove the partition of my card? Thanks
sinscythex said:
I copid a gpa.conf somehere in this forum. I replaced it with the originial and I'm currently observing whether it will return to normal. My gps apps are off, and both wireless and gps sattelites are disabled on my location & security tabs.
I'm planning on doing a restore to at least remove the boot up problem. But my last nandbackup was still before I partitioned my sd card and flashed dark tremor, and configre a2sdgui. If I do the nandrestore, do I have to disable or remove dark tremor and a2sdgui, or remove the partition of my card? Thanks
Click to expand...
Click to collapse
I has the same gps wakelock even disabling GPS- reboot and the thing is gone
I changed it, but my phone still doesn't sleep. Although this time, the gpslocationprovider is no longer shown with the betterbatterystats. It just states that my phone is awake for around 47 minutes but my screen is just on for around 4 minutes. I've already rebooted several times and wipe the cache but its still like this. Still trying to find other ways.

HELP!! Android system suddenly drain 35% power overnight!

Everyday before sleep, I usually turn off wifi,bluetooth,all unwanted application. And I used task manager to kill unwanted program running and
go to Task managers and free up the RAM. Usually when I awake on the morning, I have similar battery power left before I goes to sleep. BUT
today morning, my device battery all drained up completely, and I charge up the battery and check what causing the excessive power usage. I go to
Setting>About device>battery usage. I notice Android system using 35% power over night. And I check which application running on the background
and I see all these things list running over night and it scares me to hell.
Included packages:
Perso
Security storage
DRM content
EncryptApp
PopupuiReceiver
Software update
VPN Services
Error
Status bar
Bluetooth Test
Settings
com.sec.android.app.Icdtest
Factory Test
Settings storage
com.samsung.InputEventapp
WlanTest
Account and sync settings
Setup Wizard
Task manger
MTP Application
Service mode
Android system
License settings
Google Backup Transport
wssyncmlnps
All these thing causing my android system used so much power over night today. And I was scary as hell what might cause these testing. Did I get
a virus/malware? I didnt install any weird app the previous day. Today I charged back 100% power started the device, half hour idle time, android system
goes down to normally 5% power usage. Seems normal for now, but I duno what causing all the testing running overnight? Help appreciated.
That's a LOT of apps running! I don't think I have that much going on when I am busy and connected! I do find that battery readings get "stuck" and I see a 30-40% drop all at once, but that's after a lot of use and the battery stuck for a few hours. Maybe you have something backing up to the cloud and the app isn't smart enough to know you don't have a connection. If this keeps happening, you might install an app like "Power Tutor" to see if you can pinpoint the app that's causing the most drain.
An important thing to remember is that the battery gauge on our devices is wildly inaccurate on it's best days.
I just want to know what causing these testing on android system overnight?
Last night I did deleted and add some files(not important system files, just other files like game apk,mp3,picture,etc). Then my media scanning says my storage full/lower memory when I still had 5 GB internal storage left. (probably referring to the RAM, not sd storage space) Then I search around and I found that my media storage has like high 95mb, so I clear data/cache. Then the media scanning icon can complete scanning and "full storage/low memory" message disappear. And I restart my device, then I went to sleep. Then today wake up with all those listed items running/testing on Android System drained up my battery.
Calm down
I say just calm down a bit. This is probably just a one-time thing. I doubt it will happen again. If it does, though, you should come back here and post immediately, and somebody will probably find out what's wrong.
P.S.
Do you have a custom ROM or Kernel? Sometimes these things can act strangely. I once had one that spent a bunch of battery trying to get a cell connection on my Galaxy Player!
I didnt have any custom rom, it is a stock rom
Did you install any new apps or anything different from what you'd been using normally?
I tried to install gameloft Fishing King, but fail, so I copied the data to that folder failed too. so i deleted those files and uninstall it.

Sudden Battery Drainage

I understand all these battery drain issues that the prime has been having but haven't actually had them, until now. I used to lose about 2-3% overnight but suddenly I am losing around 15% because it won't sleep. I go into the battery setting and it shows it been awake the whole time. Now I am sure if I looked around I may find a fix but it just seems a bit odd that it has just suddenly occurred. And its not a wifi drainage issue as I usually put it to sleep at power saving mode and wifi off. Just asking why?
Thanks,
I think it could be the Asus weather widget which I had set at 1 hour refresh rate.
if this just recently occured out the blue, likely a rougue app or something you recently installed. an app running in background or sync is likely the culprit.
Just put Skype on it but that's not signed in most of the time
every android tablet and phone i have does this occasionally, and those occasions are when i either play video or music. some of these media players employ a wakelock that will not disable after you put your device to sleep. sometimes a reboot will work, sometimes not. most of the times the reboot keeps it from draining. even force quitting all my media apps wouldn't work.
so basically i reboot every time i use any type media player so i don't get the drain - netflix doesn't require it, dice and just about every music player does. i'm not sure it this may be your problem, but it may be a possible solution.
I find that making sure to check the last two settings under Asus Customized Settings helps this. I was waking up in the morning to find my dock dead everyday before I checked those two settings. The only down side is when I turn the screen on and wake it up, it takes about 5-10 seconds to connect to the wifi. No biggie.
Use better battery stats and see what is causing it. I have read that skype does drain battery pretty bad. And even if you're not connected it still runs in the background at start up. Another app I would recommend is Autostarts. It allows you to disable apps at start up. I know system tuner is free and has the same functionality but I find Autostarts better. With ST, you just disable the app at start up, with Autostarts you can disable it at start up, shutdown(which some apps fire when the tab is being shut down and other system events), also other events. Like some apps fire up when you get a text, or when your connection changes etc.. I just think Autostarts has more options.
Also dev Entropy has a thread in the GS2 forums about know battery drainers. Some of it applies specifically to the GS2 but there are a bunch of general battery killers listed
http://forum.xda-developers.com/showthread.php?t=1308030
If you go to setting and battery it should show you which is using the most battery. The first one on top. If its android system, you can click on it and it will show you a list of whats been using your battery which may point you to the culprit. In my case, media was the only thing in the list. And I know if an SDcard is inside my dock it will drain battery. So after removing it the drainage went away. Havent had the drain issue since. Again yours might be different so check the battery usage.
Thanks for the feedback guys, the first thing i am gonna do is charge it up after it fell flat right up to 100% then try some suggestions. I am thinking a reboot could help it.

Android and battery

I love Android.
I think the customization is great, and since v4 it's smoother and feels more responsive.
There are LOTS of apps and it's better than iOS.
But i'm sick of the battery issues.
I've always loved trying new features, ROMs, apps, hacks and whatever.
I now have SGS3 and it's my third android device, and i've installed ROMs dozens of times, even on my friends' devices.
One thing that always kept me alert is the battery life - the maximum I can get from my battery is around 30 hours with my usage - 1/5-2 hours of screen, ~45 minutes talk, lots of standby.
But every now and then, my girlfriend, my dad, my aunt or my friend ask me 'why does my battery drain so fast?'
Sometimes its google maps.
Sometimes its mediaserver/media scanner
Sometimes - and only I can see it cause they are not familiar with tools like BBS, it's gsf (Google Services Framework).
The point is, when you have an Android device, you need to check the battery stats every now and then to make sure nothing is unusually heavy on the battery.
I am currently experimenting with ParanoidAndroid and AOKP, which are faster and more responsive than omega/stock.
Yesterday i went to sleep (6 hours) with 25% battery (after it lasted 15 hours) and I turned off the data connection and the wireless connection.
I woke up after 6 hours (lucky..) and I saw my phone if off. after I connected it to the charger and turned it on I saw mediaserver decided to wake up in the middle of the night, after It almost did nothing during the day, and worked for 5.5 hours until the battery died!
Today I unplugged my phone and in 1 hour of standby 10% of the battery were gone, I checked what happened using BBS and saw gsf again (that GTALK_SYNC whatever wakelock) was draining battery, after I thought I fixed it yesterday when I disabled app data and browser sync in the google account sync options). I rebooted and now it seems ok again, the phone is back to ~70-80-% sleep.
I want to emphasize that I don't like all the stupid battery tips that tell me to castrate my phone:
turn off wifi when it's not needed, turn down the brightness, lower the screen timeout, disable sync (wtf? but its a smart phone, I WANT push notifications!) and that sort of things.
I KNOW I can get >24hours of battery without disabling the basic features of my phone.
And the draining battery processes that I mentioned earlier can suddenly appear even in a stock ROM, so I don't think it's PA or AOKP's fault.
What I want is that google will finally build a supervisor entity that will check what causes an unusual battery drain, check if it makes sense, and disable that cause!
It's absurd that google maps application comes with default 'enable location reporting' that constantly drains your battery and for what?? google maps doesn't run in the foreground, why the hell will I want that background location reporting draining my battery? and if so, why do you put this option enabled BY DEFAULT? The average user doesn't know this sort of stuff, and get only 10 hours of battery out of a device that should ideally provide ~30 hours!!!
Just wanted to let it out of my system...
And to get useful battery tips if any...

greenify gone crazy on my phone

Greenify suddenly started going crazy on my phone.
To give you an idea how bad it is.
The screen was red hot to touch.
Battery had dropped to 72% whilst plugged into usb in the space of 5 minutes.
Greenify process showing constant 70+% usage.
Here is what is happening now, if I reboot the phone, things seem normal, cpu usage is ok.
If I then load the greenify app, cpu usage goes crazy, if I close the app using the back button, the cpu usage does NOT recover, stays crazy.
I tried disabling auto hibernation which has no effect.
If I force close the app via long press back (wanam xposed) cpu usage recovers, but will go crazy again the moment I relaunch the gui.
I have s5 901f, touchwiz 4.4, xposed installed and using module, all experimental features enabled.
The last actions I did before this issue occured was to greenify instagram, and also force hibernate airdroid, since then this behaviour has persisted. I tried degreenifying both instagram and airdroid to no effect.
I suspect some data greenify uses is corrupt so I will try to full wipe the app and restore it either from a backup or configuring it from scratch.
Confirmed is ok after wiping and restoring backup.
Sorry to hear that. If that happens again, could you please capture a logcat for me to further analyze this issue.

Categories

Resources