Insane amounts of Kernel wakelocks on Nougat - Xperia Z5 Compact Q&A, Help & Troubleshooting

Hello! I've been trying to investigate battery drain issues on my Z5C (with nougat) for the last week. It's been quite the annoying experience, to be frank.
Here is a screenshot from Wakelock detector LITE: http://imgur.com/a/2Ljyv
As you can see, for about 13-14 hours, with 30 minute of screen time, these wakelocks have built up to numbers like 20,000, or 70,000, etc. I am not sure if this is normal, but to be fair it seems like it absolutely isn't normal.
I have only used the screen to browse google wakelock searches in these 30 mins, more or less, and to check the wakelock app itself.
Furthermore, I tried using Greenify and it did slow my screen turn-on time considerably. I uninstalled it. My delay with screen wake-up remained... It was a huge mistake to try this app as it seems to have broken my OS and introduced unexplained OS lag at random times, which I did NOT have before at all.
Do you think a factory reset can solve this?
I am starting to think about rolling back to 6.0.1 and staying there forever with root and xposed. This type of erratic phone behavior really plays a number on my nerves.
thanks for reading!

go back and just restrict every non-system sony/xperia and as much of the google things as you can without restricting play service/store or framework

Related

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.

[Q] BetterBatteryStats reports 'gpsd-interface' killing battery on Galaxy Player 5.0

Hi there,
I've had my Galaxy Player 5.0 for over a month now, and it's been exhibiting a weird battery drain problem. I have everything set up to drain as little battery as possible when the device is sleeping. I've got auto-sync off, Juice Defender Plus to automatically disable Wi-Fi... it's working beautifully most of the time. I can go for days without the battery draining at all when I'm not using it. But then it inevitably hits a point where I turn it on and lo, like half the battery charge is gone. I check BetterBatteryStats often to monitor this problem, and it usually shows about the same awake time as screen on time, which is what you'd expect. When the problem kicks in however, the device shows hours and hours of extra awake time.
Two new kernel wakelock entries appear at the top:
gpsd-interface
GPS
Those account for pretty much all the extra awake time. I can break these wakelocks by turning on the GPS, starting Google Maps, letting it read my location, closing Google Maps and finally turning off GPS again. I never use Google Maps or GPS the rest of the time, but these wakelocks keep coming back every few days. I've searched everywhere for any mention of "gpsd-interface" and I found nothing.
Any idea how I might be able to fix this?
Thanks, Nir

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...

Erratic behaving Z3v (screen won't turn on sometimes, receive texts hours later)

The problems started today.
-When I push the power button sometimes the screen will not turn on. When I hold the power button I can hear the sound of the power menu pop up so I know the device is receiving the signal from the power button.
-I am receiving texts very late or not at all. I just got a message my friend sent like 8 hours ago.
-The device is also a little laggy sometimes, and certain things, like the play store will not load.
-I can't turn on airplane mode
I re-flashed it with the original firmware (while keeping my data intact) and this made no change. I have installed some new apps recently, but this was several days before the issues started. I have since installed those apps and no change
Tomorrow I plan to get a new sim card, but does anyone have any other ideas?
I recently had a similar problem with my z3v. I had a wakelock from Google services that was making my processor use almost 70% constantly and would drain battery in like 3 hours. Mine turned out to be Google calendar sync. My phone would lag so hard it couldn't run widgets or anything. Check your battery in settings and see if something has a high percentage. The screen should be the highest usage by a large margin.
krenogin said:
I recently had a similar problem with my z3v. I had a wakelock from Google services that was making my processor use almost 70% constantly and would drain battery in like 3 hours. Mine turned out to be Google calendar sync. My phone would lag so hard it couldn't run widgets or anything. Check your battery in settings and see if something has a high percentage. The screen should be the highest usage by a large margin.
Click to expand...
Click to collapse
I turned off auto-sync and no change. The screen was the largest use followed by the playstore which had be trying to start since I tried to open it.
My playstore was messed up and would not open while this was going on. It just stayed white and if I locked the screen it took 5 mins to unlock. I also have root and used wakelock detector. I used cpu z to see if I had high processor usage.
You can try ur phone in ultra stamina and see how it acts as well for troubleshooting.
krenogin said:
My playstore was messed up and would not open while this was going on. It just stayed white and if I locked the screen it took 5 mins to unlock. I also have root and used wakelock detector. I used cpu z to see if I had high processor usage.
You can try ur phone in ultra stamina and see how it acts as well for troubleshooting.
Click to expand...
Click to collapse
Turns out the verizon cloud backs up text messages as well so that's what I needed. I ended up just doing a factory reset of the phone, seems like all is good now. I didn't think it was going to work since I put new firmware on it and nothing changed. It seems we had the same type of problem though. I did run the phone in safe mode with no improvement, but not ultra stamina. How did you end up fixing the problem?
My husband's phone started having basically the same issues out of the blue yesterday as well. It's not rooted or anything and he hasn't downloaded any apps or anything in weeks. Folks at Verizon store have no idea what's going on. We're about to try a factory reset. We also noticed the play store was burning a lot of battery even though he hadn't tried to open it or use it for several days at least, and can't get it to open now.
Try clearing play store "data" and "cache" through app manager.
This is a disaster, I've been trying forever to restore my text messages from the verizon cloud. Keeps failing after transferring less than 20 percent (different amount each time)

Device is always awake and WiFi is always on

Hi,
I'm having battery issues with OPX again, first it was a faulty battery, but now it looks like the there's something wrong with the settings. The device loses about a third of it's battery overnight, but when I look at the stats I can see that WiFi is always on and the device is always awake!
I have installed naptime as well and told it to ignore sensors (not that it matters as the device is not moving overnight) and to sleep even if connected to a charger etc. No matter what I try the device is always awake.
Is there a way to find out what is keeping it awake?
When I look at usage since last full charge there's nothing unusual there, just regular apps and single digit percentage numbers.
Thanks for your help!
System version?
I'm on Android Marshmallow, using Resurrection Remix ROM.
I'm not quite sure how to use the wakelock blocker, but I just installed Wakelock detector and it shows TripAdvisor as #1 on the list. I have it blocked in notifications, but I can't find anything related to TripAdvisor in wakelock blocker.
Is there any way to prevent apps from keeping the system awake, or should I just unintall TripAdvisor completely?
Not sure if I'm on the right track, but something is keeping the system awake and I need to find out what
OS3 with google back up turned off I get zero drain. Maybe 2-3℅ max over night. Also turned off automatic updates playstore. With just those two things off dont see drain anymore might just be lucky.
Well I think I'm back on normal drain. I uninstalled TripAdvisor, not using it except when I'm on holidays. I disabled the option to keep WiFi on even during sleep.
I used wakeblocker to block all weather/facebook entries, and I have two gmail accounts, one which is use a lot and one which I don't - so I blocked all wakelocks from syncing the account I don't use often.
Battery history confirms device is now correctly going to sleep and turning off WiFi. Automatic updates are still on.
I probably blocked too much, but I don't care anymore, I have 30% more battery every morning and that's good enough for me
crótach said:
Hi,
I'm having battery issues with OPX again, first it was a faulty battery, but now it looks like the there's something wrong with the settings. The device loses about a third of it's battery overnight, but when I look at the stats I can see that WiFi is always on and the device is always awake!
I have installed naptime as well and told it to ignore sensors (not that it matters as the device is not moving overnight) and to sleep even if connected to a charger etc. No matter what I try the device is always awake.
Is there a way to find out what is keeping it awake?
When I look at usage since last full charge there's nothing unusual there, just regular apps and single digit percentage numbers.
Thanks for your help!
Click to expand...
Click to collapse
Which ROM and recovery do you use?

Categories

Resources